From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78450 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \define a command with square-bracket arguments Date: Thu, 27 Sep 2012 18:55:39 +0200 Message-ID: References: <20120927181651.0fbd2251@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1348764947 18809 80.91.229.3 (27 Sep 2012 16:55:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2012 16:55:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 27 18:55:52 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1THHNO-00021k-Ju for gctc-ntg-context-518@m.gmane.org; Thu, 27 Sep 2012 18:55:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D5FC10214; Thu, 27 Sep 2012 18:55:45 +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 PvvvgOhSq0SS; Thu, 27 Sep 2012 18:55:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DB1FF101E7; Thu, 27 Sep 2012 18:55:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 04708101E7 for ; Thu, 27 Sep 2012 18:55:43 +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 LtL9J8m3ppMf for ; Thu, 27 Sep 2012 18:55:42 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 62280101E5 for ; Thu, 27 Sep 2012 18:55:42 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8RGtfU8026257 for ; Thu, 27 Sep 2012 18:55:41 +0200 Original-Received: by bkcjm1 with SMTP id jm1so2565816bkc.14 for ; Thu, 27 Sep 2012 09:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=qf+/rRRtqOnrEmZsc/r4W2fF/V1Bl1mo3B2tBG4re80=; b=od7fPG1cGBTXgwQIOM6h524pB7DEMmP6SgttxubJ5NY2qVr4H2MAGoSm2scOj2bIFJ v93/G6ab1zoKy/m469K+pW//DynQETk/xRHj1mtWdvwLhtVy6Bf6TnHJe91b2QuJ5ck1 BVYkaRDyfgQK/tWyyKz3V/CKocmrltNEIqrYp8oD9odXllk2ITqMYLhX8Y3o3am2Lp3k td9udRo1MassbFpnHCKDknE5f++S3L5GUBCzeKJv7Psjash0bF/NmK0N9Vx/UYPKOYVX +J/wm6MnijRoR+YCLx1GawN9p24/j3iIe9riglX1gowmIGm68205k13SnULB920mwUf7 2XkA== Original-Received: by 10.204.152.137 with SMTP id g9mr2492998bkw.106.1348764941134; Thu, 27 Sep 2012 09:55:41 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbe57b4.pool.mediaWays.net. [77.190.87.180]) by mx.google.com with ESMTPS id t27sm5191819bkv.10.2012.09.27.09.55.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 09:55:40 -0700 (PDT) In-Reply-To: <20120927181651.0fbd2251@homerow> X-Mailer: Apple Mail (2.1498) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TI4gTFOA - 6694e4c4584a - 20120927 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78450 Archived-At: Am 27.09.2012 um 18:16 schrieb Marco Patzer : > Question for the others: What's the difference of \dodoubleargument > and \dodoubleempty? I expected \dodoubleargument to throw an error > since the arguments are supposed to be mandatory. In MkIV Hans didn=92t add this check and in MkII he disabled is for command with three or less argument but even then you get only a message in the log when your command has no argument (i.e. a command with four argument complains only when it has zero argument but doesn=92t complain when it has one to four arguments). Even though there is no difference between the \*empty and \*argument commands I would use both because you can see in the source that a command with \*argument has mandatory arguments while the argument for a \*empty command are optional. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________