From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27310 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: syntax for numbercommand and \gobbleoneargument Date: Thu, 20 Apr 2006 15:09:30 -0400 Message-ID: Reply-To: mailing list for ConTeXt users 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 1145560189 13235 80.91.229.2 (20 Apr 2006 19:09:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 19:09:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 20 21:09:46 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 1FWeXB-0004k4-FH for gctc-ntg-context-518@m.gmane.org; Thu, 20 Apr 2006 21:09:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E9D3127A5; Thu, 20 Apr 2006 21:09:44 +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 32325-03; Thu, 20 Apr 2006 21:09:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E82F9127A1; Thu, 20 Apr 2006 21:09:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CA2B127A1 for ; Thu, 20 Apr 2006 21:09:39 +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 28146-08 for ; Thu, 20 Apr 2006 21:09:38 +0200 (CEST) Original-Received: from smtpauth08.mail.atl.earthlink.net (smtpauth08.mail.atl.earthlink.net [209.86.89.68]) by ronja.ntg.nl (Postfix) with SMTP id 2C0F11279F for ; Thu, 20 Apr 2006 21:09:37 +0200 (CEST) Original-Received: from [24.41.6.91] (helo=approximate.corpus.cam.ac.uk) by smtpauth08.mail.atl.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1FWeX3-0005mk-0f; Thu, 20 Apr 2006 15:09:37 -0400 Original-Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 4.60) (envelope-from ) id 1FWeWw-0007CY-Ni; Thu, 20 Apr 2006 15:09:31 -0400 Original-To: ntg-context@ntg.nl X-Mailer: MH-E 7.93; nmh 1.1; GNU Emacs 21.4.1 X-ELNK-Trace: dcd19350f30646cc26f3bd1b5f75c9f474bf435c0eb9d4789de090ecffd5a97565b0373bde510f0fd6ff2a6281a80a65350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.6.91 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:27310 Archived-At: 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? The error is (with tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4), context : ver: 2006.04.17 23:14): ERROR: Argument of \gobbleoneargument has an extra }. --- TeX said --- \par } \@@kochapternumbercommand ->{\gobbleoneargument } ...{\??ko \v!chapter \c!numbercommand } {\setstrut \begstrut \exec... \@@ko::normal ...numbercontent \setbox 0\hbox {{#1 }\hskip \numberheaddistanc... \doplaceheadnumbertext ...utes \dostopattributes } }\fi \endheadplacement {#1... ... l.4 \chapter{One}