[NTG-context] [pagenumbers in pdf]

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Sat Feb 13 13:28:21 CET 2021


Floris van Manen schrieb am 13.02.2021 um 13:10:
> When I generate a serie of TEXpages, those pages end up with the same 
> page number in the pdf.
> 1, 1, 1
> 
> \starttext
> \def\blz{\begingroup
> \startTEXpage
> 1 2 3
> \stopTEXpage
> \endgroup}
> \blz
> \blz
> \blz
> \stoptext
> 
> 
> If I insert a \strut at the start,
> I get pagenumbering 1, 2, 3, 1
> 
> 
> \starttext
> \def\blz{\begingroup
> \startTEXpage
> 1 2 3
> \stopTEXpage
> \endgroup}
> \strut
> \blz
> \blz
> \blz
> \stoptext
> 
> 
> As in most software, there is a probable reason for that :-)
> But how to get the pages numbered 1, 2, 3 without an empty page at the 
> start?

You need pagestate=start:

\starttext

\dorecurse{3}
   {\startTEXpage[pagestate=start]
    Page #1
    \stopTEXpage}

\stoptext

Wolfgang


More information about the ntg-context mailing list