From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27315 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: syntax for numbercommand and \gobbleoneargument Date: Thu, 20 Apr 2006 21:53:53 +0200 (CEST) Message-ID: References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145562893 22681 80.91.229.2 (20 Apr 2006 19:54:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 19:54:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 20 21:54:51 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWfEm-0004jX-5f for gctc-ntg-context-518@m.gmane.org; Thu, 20 Apr 2006 21:54:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DF73D127A5; Thu, 20 Apr 2006 21:54:47 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22141-01-3; Thu, 20 Apr 2006 21:54:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E03C127A0; Thu, 20 Apr 2006 21:54:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0D334127A0 for ; Thu, 20 Apr 2006 21:54:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22141-01-2 for ; Thu, 20 Apr 2006 21:54:41 +0200 (CEST) Original-Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.67]) by ronja.ntg.nl (Postfix) with SMTP id ED8AB1279A for ; Thu, 20 Apr 2006 21:54:40 +0200 (CEST) Original-Received: from gaston.pm (unknown [84.7.233.32]) by smtp.cegetel.net (Postfix) with ESMTP id EA11E1A45C6 for ; Thu, 20 Apr 2006 21:54:37 +0200 (CEST) Original-Received: by gaston.pm (Postfix, from userid 500) id 6AB4913C113; Thu, 20 Apr 2006 21:53:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.pm (Postfix) with ESMTP id 0FC47148182 for ; Thu, 20 Apr 2006 21:53:54 +0200 (CEST) X-X-Sender: peter@gaston.pm Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27315 Archived-At: On Thu, 20 Apr 2006, Sanjoy Mahajan wrote: > This minimal file [case 1]: > > \setuphead[chapter][numbercommand={\gobbleoneargument} > ] > \starttext > \chapter{One} > \stoptext > > fails. Whereas if the first two lines are replaced by [case 2]: > > \setuphead[chapter][numbercommand={\gobbleoneargument}, > ] > > or [case 3]: > > \setuphead[chapter][numbercommand={\gobbleoneargument}] > > then it's fine. Is this a bug or a feature of TeX's tricky spacing > rules? And how can I think about ConTeXt's parsing in way that the > difference between cases 1 and 2,3 is obvious? A newline is treated in general as a space, so you have unwanted space in case 1. case 2 shows just a ConTeXt feature: space after a "," in an option list is gobbled. case 3 is the normal way to write \setup-commands If you really want a newline as in case 1, then consider case 4: \setuphead[chapter][numbercommand={\gobbleoneargument}% ] Cheers, Peter -- http://pmrb.free.fr/contact/