ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* using headnumber
@ 2006-04-20 14:22 Thomas A. Schmitz
  2006-04-20 15:14 ` Peter Rolf
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas A. Schmitz @ 2006-04-20 14:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-04-20 21:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 14:22 using headnumber Thomas A. Schmitz
2006-04-20 15:14 ` Peter Rolf
2006-04-20 16:15   ` Thomas A. Schmitz
2006-04-20 17:06     ` Sanjoy Mahajan
2006-04-20 20:44     ` Hans Hagen
2006-04-20 21:46       ` Thomas A. Schmitz
2006-04-20 16:54   ` Sanjoy Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).