I must be having a bad day since I can't find the answer to this simple question on the wiki. I'm sure it's me but... How do I test if I am on an odd or even page? I need the equivalent of: PSUEDO COMMAND \doifoddpageelse{what to do on oddpage)(what to do on even page} This is _not_ in a header, BTW -- Bill Meahan K8QN "The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails." -- William Arthur Ward This message is digitally signed with an X.509 certificate to prove it is from me and has not been altered since it was sent.
Am 12.06.2012 um 18:49 schrieb Bill Meahan:
I must be having a bad day since I can't find the answer to this simple question on the wiki. I'm sure it's me but...
How do I test if I am on an odd or even page? I need the equivalent of: PSUEDO COMMAND \doifoddpageelse{what to do on oddpage)(what to do on even page}
This is _not_ in a header, BTW
\define\MyCommand {\signalrightpage\doifrightpageelse{{\tttf RIGHT PAGE!}}{{\tttf LEFT Page!}}} \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{10}{\MyCommand\page} \stoptext Wolfgang
On 06/12/2012 12:53, Wolfgang Schuster wrote:
\define\MyCommand {\signalrightpage\doifrightpageelse{{\tttf RIGHT PAGE!}}{{\tttf LEFT Page!}}}
\setuppagenumbering[alternative=doublesided]
\starttext \dorecurse{10}{\MyCommand\page} \stoptext
Wolfgang
Many thanks, Wolfgang! -- Bill Meahan K8QN "The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails." -- William Arthur Ward This message is digitally signed with an X.509 certificate to prove it is from me and has not been altered since it was sent.
participants (2)
-
Bill Meahan
-
Wolfgang Schuster