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