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]}
Hi Peter,
thanks for the help! The additional { must have been a fluke with
copy/paste; wasn't in my file. By sheer stubbornness, I tried until I
found something that works:
command={{\determineheadnumber[section]}\ifodd\currentheadnumber
\resetSlideNumber\incrementSlideNumber
\determineheadnumber[section]
Thanks for mentioning that command, which I'd been looking for. I
couldn't quite get it to work, but reading the code near its
definition helped me solve another problem. Each chapter has a
section for exercises, and each exercise is a subsection with a short
So after \determineheadnumber[something], \currentheadnumber appears
to have that value and doesn't take an argument.
Thanks, that information answers the question I just sent to the list.
-Sanjoy
`Never underestimate the evil of which men of power are capable.'
--Bertrand Russell,
Thomas A. Schmitz wrote:
Hi Peter,
thanks for the help! The additional { must have been a fluke with
copy/paste; wasn't in my file. By sheer stubbornness, I tried until I
found something that works:
command={{\determineheadnumber[section]}\ifodd\currentheadnumber
Fascinating, but... The slidenumber needs to be reset according to
the criterion whether we're starting an odd or an even section.
If anybody's wondering why I want such a bizarre setup: this is the
manuscript of my course for the entire term. Every class consists of
two lectures = two