Am 21.08.2012 um 01:56 schrieb john Culleton <j...@wexfordpress.com>:

> On Mon, 20 Aug 2012 23:09:11 +0200
> Wolfgang Schuster <wolfgang.schus...@gmail.com> wrote:
> 
>> 
>> Am 20.08.2012 um 22:41 schrieb Xan <dxpubl...@telefonica.net>:
>> 
>>> Hi,
>>> 
>>> I want to print a message depending if the page is even or odd. In
>>> pseudocode:
>>> 
>>> \if \inpage.\iseven {
>>> This page is even
>>> }
>>> \else {
>>> This page is odd
>>> }
>>> 
>>> How can I do that in ConTeXt?
>> 
>> http://www.ntg.nl/pipermail/ntg-context/2012/067632.html
>> 
>> Wolfgang
> 
> 
> Will the plain text way still work?
> \ifodd\pageno foo \else bar \fi

This works only correct when used used in the page header or footer texts which 
are added after the page is finished and then you can use context’s 
\doifoddpageelse command. When used in the running text the test can fail when 
you have a text which ends at the top of the page which was processed by tex 
when it was on the previous page and the output was moved to the next page 
because there wasn’t enough space.

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
___________________________________________________________________________________

Reply via email to