How to know in which page I'm?
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? Thanks in advance, Xan. PS: Please, CCme
On Mon, Aug 20 2012, Xan wrote:
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?
\signalrightpage\doifrightpageelse{odd page}{even page} -- Peter
Am 20.08.2012 um 22:41 schrieb Xan
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
On Mon, 20 Aug 2012 23:09:11 +0200
Wolfgang Schuster
Am 20.08.2012 um 22:41 schrieb Xan
: 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 -- John Culleton
Am 21.08.2012 um 01:56 schrieb john Culleton
On Mon, 20 Aug 2012 23:09:11 +0200 Wolfgang Schuster
wrote: Am 20.08.2012 um 22:41 schrieb Xan
: 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
Al 20/08/12 23:09, En/na Wolfgang Schuster ha escrit:
Am 20.08.2012 um 22:41 schrieb Xan
: 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 Thank yoy very much, Wolfgang.
Xan.
participants (4)
-
john Culleton
-
Peter Münster
-
Wolfgang Schuster
-
Xan