Bruce Horrocks schrieb am 09.09.2024 um 23:27:
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.
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