this will go wrong as well: \starttext \dorecurse{15}{\ssd \input knuth {\color[red]{\pagenumber}} } \stoptext and this as well: \starttext \dorecurse{15}{\tfb \input knuth {\color[red]{\pagenumber}} % as expected } \stoptext and so does this: \setupinterlinespace[16pt] \starttext \dorecurse{15}{ \input knuth {\color[red]{\pagenumber}} % as expected } \stoptext (and there is probably a valid reason to it ;-) .F On 09/09/2024 23:27, Bruce Horrocks wrote:
On 9 Sep 2024, at 08:57,ai2472206007@yeah.net wrote:
As the title suggests, how do I get the correct page numbers?
There does seem to be an anomaly here. Simpler MWE:
\starttext \dorecurse{15}{ \input knuth %{\ssd\color[red]{\pagenumber}} % not as expected {\color[red]{\pagenumber}} % as expected } \stoptext
With the \ssd the first number at the top of the second and subsequent pages is one less than it should be. Without the \ssd then the numbers are as expected.
@Muyik: Are you able to use \pagenumber without using \ssd or similar to change the size? That might be a work-around for you. There is also \userpagenumber.
Regards, — Bruce Horrocks Hampshire, UK
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror) archive :https://github.com/contextgarden/context wiki :https://wiki.contextgarden.net ___________________________________________________________________________________