From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68930 Path: news.gmane.org!not-for-mail From: Paul Menzel Newsgroups: gmane.comp.tex.context Subject: Re: [solved] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert ->\Udelimiter`.) Date: Sun, 05 Jun 2011 12:15:55 +0200 Message-ID: <1307268955.28001.4.camel@mattotaupa> References: <1307220033.4456.44.camel@mattotaupa> <1307268662.28001.2.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0600890335==" X-Trace: dough.gmane.org 1307268979 24673 80.91.229.12 (5 Jun 2011 10:16:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2011 10:16:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 05 12:16:14 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 1QTANS-0004nY-LY for gctc-ntg-context-518@m.gmane.org; Sun, 05 Jun 2011 12:16:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D6B7CAD95; Sun, 5 Jun 2011 12:16:14 +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 zyCjijgkBisX; Sun, 5 Jun 2011 12:16:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77334CAD8E; Sun, 5 Jun 2011 12:16:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1DD93CAD8E for ; Sun, 5 Jun 2011 12:16:10 +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 99tCGxI-uWRx for ; Sun, 5 Jun 2011 12:15:58 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 6944DCAD8D for ; Sun, 5 Jun 2011 12:15:58 +0200 (CEST) Original-Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p55AFvRE008664 for ; Sun, 5 Jun 2011 12:15:57 +0200 Original-Received: from f053037033.adsl.alicedsl.de ([78.53.37.33] helo=[192.168.178.21]) by mail.gw90.de with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1QTANs-0001yt-Vt for ntg-context@ntg.nl; Sun, 05 Jun 2011 10:16:41 +0000 In-Reply-To: <1307268662.28001.2.camel@mattotaupa> X-Mailer: Evolution 2.32.3 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=188.40.100.199; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08EQafVzg - 8ab3949601be - 20110605 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:68930 Archived-At: --===============0600890335== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-zmkBpjMs1Kgxk5OMjLin" --=-zmkBpjMs1Kgxk5OMjLin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear ConTeXt folks, Am Sonntag, den 05.06.2011, 12:11 +0200 schrieb Paul Menzel: > Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian: >=20 > > I think the error comes from your way of using \define: you use > > \define\abs[1]{\lvert #1 \rvert} > > instead of > > \define[1]\abs{\lvert#1\rvert} > >=20 > > the following works fine for me: > >=20 > > \starttext > >=20 > > %\define[1]\abs{|#1|} % this works > >=20 > > \define[1]\abs{\lvert#1\rvert} % this works too > >=20 > > $\abs{-1} =3D 1$ > > \stoptext >=20 > thank you very much for the solution. I took my definition from the Wiki > [1]. >=20 > Could the developers please clarify the correct syntax so that it can be > updated in the source or the Wiki. I am sorry. I messed up and confused the LaTeX syntax (?) (`texdoc amsldoc`) and the one in the Wiki. I am sorry for the noise. Thanks, Paul > [1] http://wiki.contextgarden.net/Reference/en/define --=-zmkBpjMs1Kgxk5OMjLin Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk3rV1sACgkQPX1aK2wOHVgXnQCghuGbzWN226JKMGjB2jPQHo/q pvYAmwZFqhTpIQysKtZHcdnq2HswCYWD =sZOy -----END PGP SIGNATURE----- --=-zmkBpjMs1Kgxk5OMjLin-- --===============0600890335== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0600890335==--