From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68925 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.comp.tex.context Subject: Re: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert ->\Udelimiter`. Date: Sat, 04 Jun 2011 22:51:41 +0200 Message-ID: <87y61hl3qa.fsf@micropit.couberia.bzh> References: <1307220033.4456.44.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307220725 21950 80.91.229.12 (4 Jun 2011 20:52:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2011 20:52:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 04 22:52:01 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QSxpB-0003FS-5g for gctc-ntg-context-518@m.gmane.org; Sat, 04 Jun 2011 22:52:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E89ECAD95; Sat, 4 Jun 2011 22:52:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9-PaBMIGarJs; Sat, 4 Jun 2011 22:51:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5824CAD82; Sat, 4 Jun 2011 22:51:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8FECFCAD82 for ; Sat, 4 Jun 2011 22:51:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 466Z0FHz6WTL for ; Sat, 4 Jun 2011 22:51:44 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id CE29CCAD5D for ; Sat, 4 Jun 2011 22:51:44 +0200 (CEST) Original-Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p54KphRr003718 for ; Sat, 4 Jun 2011 22:51:44 +0200 Original-Received: from micropit.couberia.bzh ([90.32.137.95]) by mwinf5d19 with ME id rwri1g00323gUPu03wriZL; Sat, 04 Jun 2011 22:51:43 +0200 Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id E293E16065D; Sat, 4 Jun 2011 22:51:41 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <1307220033.4456.44.camel@mattotaupa> (Paul Menzel's message of "Sat, 04 Jun 2011 22:40:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.132; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cEPUPHJ4 - 1522b58cf527 - 20110604 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:68925 Archived-At: On Sat, Jun 04 2011, Paul Menzel wrote: > I want to define `\abs` as the command for the absolute value. The > following minimal example is also attached. > > \define\abs[1]{\lvert #1 \rvert} Don't ask me why "\define" doesn't work (certainly related to expansion), but "\def" does the job: \def\abs#1{\lvert #1 \rvert} -- Peter ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________