[NTG-context] "page i/n" in footer
Wolfgang Schuster
wolfgang.schuster.lists at gmail.com
Sun Nov 8 12:32:00 CET 2020
Sylvain Hubert schrieb am 08.11.2020 um 12:19:
> On Sun, 8 Nov 2020 at 12:07, Wolfgang Schuster
> <wolfgang.schuster.lists at gmail.com
> <mailto:wolfgang.schuster.lists at gmail.com>> wrote:
>
> Sylvain Hubert schrieb am 08.11.2020 um 11:48:
> > On Sun, 8 Nov 2020 at 10:31, Pablo Rodriguez <oinos at gmx.es
> <mailto:oinos at gmx.es>
> > <mailto:oinos at gmx.es <mailto:oinos at gmx.es>>> wrote:
> >
> > Hi Sylvain,
> >
> > \setupfootertexts[\pagenumber/\lastpagenumber]
> > \starttext
> > \dorecurse{25}{\null\page}
> > \stoptext
> >
> >
> > Indeed, \setupfooterexts is much clearer for page numbering.
> Thanks for
> > the help!.
> >
> > Btw, do you know whether there is any difference between
> \lastpagenumber
> > and \lastuserpagenumber mentioned both by Wolfgang and by the
> excursion
> > book <http://www.pragma-ade.com/general/manuals/ma-cb-en.pdf>?
>
> \defineconversionset [bodypart:pagenumber] [] [Romannumerals]
>
> \startsetups [footer]
> \starttabulate[|l|c|c|]
> \NC \bf Command \NC \bf Current page \NC \bf Last page
> \NC\NR
> \NC \tex{pagenumber} \NC \pagenumber \NC
> \lastpagenumber
> \NC\NR
> \NC \tex{userpagenumber} \NC \userpagenumber \NC
> \lastuserpagenumber \NC\NR
> \stoptabulate
> \stopsetups
>
> \setupfootertexts[\directsetup{footer}]
>
> \starttext
>
> \dorecurse{10}{\dontleavehmode\page}
> \stoptext
>
>
> Thanks, so basically \(last-)userpagenumber is a configurable
> descendent of \(last-)pagenumber if I've got the right message from
> this example?
\pagenumber and \lastpagenumber are the raw values which can be used to
calculate
the difference between both etc. while \userpagenumber and
\lastuserpagenumber
are the formatted result of these values. The latter are needed when you
apply
a conversion to the page number (e.g. roman numberals in the frontmatter).
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201108/18e7cf4c/attachment.htm>
More information about the ntg-context
mailing list