Re: [NTG-context] How to know in which page I'm?

2012-08-21 Thread Wolfgang Schuster

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
___


Re: [NTG-context] How to know in which page I'm?

2012-08-21 Thread Xan

Al 20/08/12 23:09, En/na Wolfgang Schuster ha escrit:

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

Thank yoy very much, Wolfgang.

Xan.
___
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
___


[NTG-context] How to know in which page I'm?

2012-08-20 Thread 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?

Thanks in advance,
Xan.

PS: Please, CCme
___
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
___


Re: [NTG-context] How to know in which page I'm?

2012-08-20 Thread Peter Münster
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
___
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
___


Re: [NTG-context] How to know in which page I'm?

2012-08-20 Thread Wolfgang Schuster

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
___
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
___


Re: [NTG-context] How to know in which page I'm?

2012-08-20 Thread john Culleton
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
-- 
John Culleton
___
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
___