From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68929 Path: news.gmane.org!not-for-mail From: Paul Menzel Newsgroups: gmane.comp.tex.context Subject: \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:11:02 +0200 Message-ID: <1307268662.28001.2.camel@mattotaupa> 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: multipart/mixed; boundary="===============0747389903==" X-Trace: dough.gmane.org 1307268696 23309 80.91.229.12 (5 Jun 2011 10:11:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2011 10:11:36 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 05 12:11:28 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 1QTAIn-0003Oe-R3 for gctc-ntg-context-518@m.gmane.org; Sun, 05 Jun 2011 12:11:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2006FCAD8E; Sun, 5 Jun 2011 12:11:24 +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 q2owsrPcyC9h; Sun, 5 Jun 2011 12:11:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64446CAD73; Sun, 5 Jun 2011 12:11:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4953CAD73 for ; Sun, 5 Jun 2011 12:11:20 +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 AtRFPA-ME1i3 for ; Sun, 5 Jun 2011 12:11:06 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 2BE4ACAD5D for ; Sun, 5 Jun 2011 12:11:06 +0200 (CEST) Original-Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p55AB4ia026440 for ; Sun, 5 Jun 2011 12:11:05 +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 1QTAJ9-0001bg-H6 for ntg-context@ntg.nl; Sun, 05 Jun 2011 10:11:47 +0000 In-Reply-To: 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: 0eEQab4HI - 4b5fc0bfe691 - 20110605 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:68929 Archived-At: --===============0747389903== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-0yIYWiPNKsRJxOaWABPS" --=-0yIYWiPNKsRJxOaWABPS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Otared, Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian: > 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 thank you very much for the solution. I took my definition from the Wiki [1]. Could the developers please clarify the correct syntax so that it can be updated in the source or the Wiki. Thanks, Paul [1] http://wiki.contextgarden.net/Reference/en/define --=-0yIYWiPNKsRJxOaWABPS 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) iEYEABECAAYFAk3rVikACgkQPX1aK2wOHViRWgCfQXvBc07Wkc3gRGeu4SElEaup ZzcAmQF1AOb7mbO5cJovIv7FulpnUfwZ =A6JW -----END PGP SIGNATURE----- --=-0yIYWiPNKsRJxOaWABPS-- --===============0747389903== 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 ___________________________________________________________________________________ --===============0747389903==--