On 10/16/18 4:25 PM, Procházka Lukáš Ing. wrote: > Hello, > > I need to check whether even or odd page is to be printed. I'm starting with > the following simple code: > > ---- > \def\T{\ifodd\pagenumber ODD\else EVEN\fi} > > \starttext > \dorecurse{2}{\T\page} > \startTEXpage[width=50mm,height=150mm]\stopTEXpage > \dorecurse{2}{\T\page} > \stoptext > ----
Hi Lukáš, both makeups and fitting pages aren’t numbered by default. Either you add this to the preamble: \setupfittingpage[TEXpage][pagestate=start] or you add the option "pagestate=start" to \startTEXpage. I hope it helps, Pablo > Why "user defined page" #3 is skipped in page numbering, so headers shown are: > 1 - 2 - (nothing) - 3 - 4 and "ODD"/"EVEN" and text is "ODD" - "EVEN" - > (nothing) - "ODD" - "EVEN" > instead of: > 1 - 2 - (nothing) - 4 - 5 and "ODD"/"EVEN" and text be "ODD" - "EVEN" - > (nothing) - "EVEN" - "ODD"? > > TIA. > > Best regards, > > Lukas > > > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > -- http://www.ousia.tk ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________