Bruce Horrocks schrieb am 09.09.2024 um 23:27:
On 9 Sep 2024, at 08:57, ai2472206...@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.

You can't use page counters in running text without problems because you're working against the way how TeX constructs pages.

The only reliable way are multipass solutions like the pagestate or reference mechanism.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to