[NTG-context] two additional pagenumber series

Hans Hagen j.hagen at xs4all.nl
Wed Apr 29 15:36:18 CEST 2020


On 4/29/2020 2:00 PM, Pablo Rodriguez wrote:
> Dear list,
> 
> for one of the documents I share with others, I need to add five
> pagenumber series.
> 
> I’m already using realpage, userpage and subpage. I have just tried to
> use \definecounter, but it doesn’t work.
> 
>      \setuppapersize[A9]
>      \definecounter[ncounter]
>          [way=bychapter]
>      \starttext
>      \rawcountervalue[ncounter]\page
>      \incrementcounter[ncounter][1]
>      \page
>      \lastcountervalue[ncounter]
>      \chapter{}
>      \lastcountervalue[ncounter]
>      \stoptext
> 
> I don’t know how to link any page increment to the defined counter.
> Although method is page, this seems to be related to a different issue.
> 
> My question is: how could I get new pagenumber series using \definecounter?
\setuppapersize[A8]

\setupheadertexts[]
\setupcounter[subpage][way=bychapter]

\starttext
     \chapter{what}
     \rawsubcountervalue[subpage][1]\page
     \rawsubcountervalue[subpage][1]\page
     \rawsubcountervalue[subpage][1]\page
     \chapter{what}
     \rawsubcountervalue[subpage][1]\page
     \rawsubcountervalue[subpage][1]\page
     \rawsubcountervalue[subpage][1]\page
\stoptext

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list