From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55977 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: defining commands Date: Sat, 06 Feb 2010 16:29:39 +0100 Message-ID: <4B6D98F3.28475.14AA38E@wwl.musensturm.de> References: 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: ger.gmane.org 1265470112 14753 80.91.229.12 (6 Feb 2010 15:28:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2010 15:28:32 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 06 16:28:29 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from [195.12.62.10] (helo=balder.ntg.nl) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NdmaD-0005wA-HB for gctc-ntg-context-518@m.gmane.org; Sat, 06 Feb 2010 16:28:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96CCEC9C73; Sat, 6 Feb 2010 16:29:50 +0100 (CET) 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 V7SHNpA4jcbl; Sat, 6 Feb 2010 16:29:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF15DC9BF4; Sat, 6 Feb 2010 16:29:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EEB51C9BF4 for ; Sat, 6 Feb 2010 16:29:46 +0100 (CET) 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 zWoDtJ+vDqMx for ; Sat, 6 Feb 2010 16:29:35 +0100 (CET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by balder.ntg.nl (Postfix) with ESMTP id BCAECC9BD1 for ; Sat, 6 Feb 2010 16:29:35 +0100 (CET) Original-Received: from [192.168.178.23] (p4FC79241.dip0.t-ipconnect.de [79.199.146.65]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0M3M80-1NvJQi2bse-00rW4c; Sat, 06 Feb 2010 16:28:13 +0100 Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (4.41, DE v4.41 R1) Content-description: Mail message body X-Provags-ID: V01U2FsdGVkX1+eLj0dXOgw5TX2iNiOz3P1jfUYK53Jbr2EiCo U4Zh62gcwJdx3KBFTsZQXhgXmLvScEVojn7S1rMS7ctvlSHtdW WTVt3jWID+ESPoplzkpQQ== 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:55977 Archived-At: Hallo, > >> btw, i'm sure that you've seen > >> > >> \starttexdefinition blabla #1 #2 > >> > >> which like setups ignores spaces so one can have readable > macros > > i was the one who requested the parameterless version > > > > \starttexdefinition commandonly I experimented a little with this: ---------------------------------------- \starttexdefinition BIS #1 #2 [#1 \ldots\ #2] \stoptexdefinition \starttext \BIS1 23 \BIS{10}{20}30 \BIS {10}{20}30 \BIS{10} {20}30 \BIS{10}{20} 30 \BIS {10} {20}30 \BIS{10} {20} 30 \BIS {10} {20} 30 \stoptext ---------------------------------------- and get this: ---------------------------------------- [1 ... 2]3 [102030 ... ][102030 ... ][10 ... 20]30 [1020 ... 3]0 [10 ... 20]30 [10 ... 20] 30 [10 ... 20] 30 ---------------------------------------- So it seems, that the first blank between command and #1 is optional. But the second between #1 and #2 is NEEDED. A last blank after #2 is not needed and not eaten. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________