At 10:24 AM 3/21/2003 +0100, Patrick Gundlach wrote:
Hans Hagen
writes: Hello,
Sorry, cut and paste error (I added the comma on line 21). The underlying error is still there
in that case i need a minimal file showing the problem
I am not Guy Worthington, but I had a (non successful) look at it and this is my testing file:
================================================== \setuphead[chapter] [alternative=command, command=\ContentsHead]
\def\ContentsHead#1#2% {\framed [width=\hsize]{\doifelsenothing{#1}{a}{b}}}
\starttext \chapter {Berend} \stoptext ==================================================
Ah, this is beause \ContentsHead gets a truckload of rubish passed (add \showargument{#1} and you see what i mean) and this confuses tex when testing things (if..else in argument); even if i would solve this, other *user) code could mess up things; this is why we have (inside a head): \doifmodeelse{*sectionnumber} or alternatively: \doiftextelse for content testing (btw, sorry that i didn't yet answer your question about the numbering) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------