Am 14.02.2009 um 20:17 schrieb Alan Stone:

Unfortunately, it doesn't resolve the problem...


 ! Undefined control sequence.
\cleanuplabel #1->\begingroup \let :
\lettercolon \xdef \cleanlabel {#1}\endg...
\docheckformode #1#2#3->\cleanuplabel {#3}
\protect \checkedmodefalse \rawpro...
\myHeader ->\doifmodeelse {a}
                             {chapter}{high}
\doifvaluesomething ...inga {\csname #1\endcsname
}\ifx \!!stringa \empty \e...
<argument> ...ething {\??ko \v!chapter \c!header }
{\setuplayouttext [\v!hea...
\firstoftwoarguments #1#2->#1

...
l.23 ...apter #1}\dorecurse{20}{\input knuth\par}}



I had only looked at the error message and not at your example.
Passing tests to values is often a problem because you don't know
what happens in the internals and only only low level commands like
\iftrue, \ifdim ... works without problems.

The best you can do is to write:

\startmode[a]
\setuphead[chapter][header=chapter]
\stopmode

\startnotmode[a]
\setuphead[chapter][header=high]
\stopnotmode

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to