Pablo,
Thanks, even though I use LMTX, only this form works:
[\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]
Thanks
Jeroen
Op ma 4 sep 2023 om 18:43 schreef Pablo Rodriguez <[email protected]>:
> On 9/4/23 18:09, Jeroen wrote:
> > The following MWE shows pagenumbering starting at the second page with
> > page number 1. With the totalnumberofpages we end up with one page too
> > many. Is there a way to reduce this with 1?
>
> Hi Jeroen,
>
> this might do the work (LMTX only):
>
> [\pagenumber{} of \the\numexpr{\totalnumberofpages - 1}]
>
> For MkIV, you would need:
>
> [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]
>
> Just in case it helps,
>
> Pablo
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________