I have a section somewhat like this...I'm replacing the code with something
much simpler, but its basically doing a similar thing, running conditionals to
check which content to place:
\section{Brave Rabbits}
\ifnum\somenumber>3 Print this content about rabbits. \else
Print this stuff about pigeons instead. \fi
Basically the content inside that section can change, either being about
rabbits or about pigeons. I need the section title to follow that change, the
problem is the section title appears before this code, so defining some
variable in the later code won't affect the rendeiring of the section title.
Is there a way I can tell the section title to change as well to match what
content is inside that section?
\section{\thissectiontitle}
\ifnum\somenumber>3 Print this content about rabbits.
\define\thissectiontitle{Brave Rabbits} \else Print this stuff
about pigeons instead. \define\thissectiontitle{Hungry Pigeons} \fi
--Joel
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________