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]}
      \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

Reply via email to