Hi Thomas, Thomas A. Schmitz wrote:
Hi,
I have a counter which I want to be incremented after every \section command and reset after every odd \section (don't ask why...). So I tried this approach:
\setuphead[section] [command={{{\determineheadnumber[section]} ^^^^ one opening brace too much
If you problem remains, try to add a \expandafter in front of \ifodd. Sometimes it is also helpful to enclose the number expression by \numexpr ... \relax (for conversion). Greets, Peter
\ifodd{\currentheadnumber[section]}\resetSlideNumber \incrementSlideNumber \else\incrementSlideNumber \fi}]
But I'm getting errors:
! Missing number, treated as zero. <to be read again> { \@@kosectioncommand ...adnumber [section]}\ifodd { \currentheadnumber [sectio...
\doplaceheadnumbertext ...ue {\??ko #1\c!command }
{\dostartattributes {\??ko...
\dodododoconstructhead ...{\finalsectionnumber }}} \writesection {#1} {#3}{#4}...
Any pointers?
Thomas _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context