Hi all, Hans,
here is a bug that remains with the new structure code after Hans
fixed many things two weeks ago. I want a counter that is reset at
every odd chapter. This works as expected in mkii (and used to work in
mkiv), but complains about a "Missing number, treated as zero" and
fails to compile in current beta:
\setupcolors[state=start]
\setuphead
[section]
[command={{\determineheadnumber[section]}\ifodd\currentheadnumber
\resetSlideNumber\incrementSlideNumber \else\incrementSlideNumber \fi},
expansion=yes]
\definelabel[SlideNumber][headstyle=normal,way=bytext]
\define\SLN{\color[red]{ [\nextSlideNumber]}}
\starttext
\section{One}
should be 2: \SLN
\section{Two}
should be 4: \SLN
\section{Three}
should be 2 again: \SLN
\section{Four}
should be 4 again: \SLN
\stoptext
Even if you comment out the command=... line, you'll see that labels
in mkiv still don't quite do what they should.
All best
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________