Am 10.03.2011 um 15:48 schrieb Steffen Wolfrum:

> Sure, but why does TeX write "1.2 one"? The second part "one" is correct ... 
> Why can't both parts be synchronized (correctly of course!)??

It’s because \headnumber is macro expansion which happens when TeX collects
material for the page and \getmarking use TeX’s mark mechanism which is
meant for elements which are added after the page is finished.

Here is a example which shows a problem with expansion:

\setuplayout[lines=10]
\def\foo{foo}
\appendtoks\gdef\foo{bar}\to\everyaftershipout
\starttext
\dorecurse{20}{\foo\par}
\stoptext

What you can do is to create a new mark with \definemarking where
you set \headnumber and which you then use in the header.

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

Reply via email to