ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* syntax for numbercommand and \gobbleoneargument
@ 2006-04-20 19:09 Sanjoy Mahajan
  2006-04-20 19:53 ` Peter Münster
  2006-04-20 20:55 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Sanjoy Mahajan @ 2006-04-20 19:09 UTC (permalink / raw)


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 ---
<inserted text> 
                \par 
<to be read again> 
                   }
\@@kochapternumbercommand ->{\gobbleoneargument }
                                                  
<argument> ...{\??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}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-20 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 19:09 syntax for numbercommand and \gobbleoneargument Sanjoy Mahajan
2006-04-20 19:53 ` Peter Münster
2006-04-20 20:42   ` Sanjoy Mahajan
2006-04-20 20:55 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).