* On an odd page? @ 2012-06-12 16:49 Bill Meahan 2012-06-12 16:53 ` Wolfgang Schuster 0 siblings, 1 reply; 3+ messages in thread From: Bill Meahan @ 2012-06-12 16:49 UTC (permalink / raw) To: ConTeXt Mailing List [-- Attachment #1.1: Type: text/plain, Size: 612 bytes --] 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. [-- Attachment #1.2: S/MIME Cryptographic Signature --] [-- Type: application/pkcs7-signature, Size: 4920 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: On an odd page? 2012-06-12 16:49 On an odd page? Bill Meahan @ 2012-06-12 16:53 ` Wolfgang Schuster 2012-06-12 17:03 ` Bill Meahan 0 siblings, 1 reply; 3+ messages in thread From: Wolfgang Schuster @ 2012-06-12 16:53 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: On an odd page? 2012-06-12 16:53 ` Wolfgang Schuster @ 2012-06-12 17:03 ` Bill Meahan 0 siblings, 0 replies; 3+ messages in thread From: Bill Meahan @ 2012-06-12 17:03 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 615 bytes --] 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. [-- Attachment #1.2: S/MIME Cryptographic Signature --] [-- Type: application/pkcs7-signature, Size: 4920 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-12 17:03 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-06-12 16:49 On an odd page? Bill Meahan 2012-06-12 16:53 ` Wolfgang Schuster 2012-06-12 17:03 ` Bill Meahan
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).