On 10/09/2024 06:32, ai2472206...@yeah.net wrote:
I changed the command, and now I get the correct page number with this command, \ but how should he do the calculation?
this gives an interesting result with a colorful mix of page numbers, although it is not obvious to me as why. \setupinterlinespace[18pt] \definepagestate[test][delay=yes] \starttext \dorecurse{15}{ {\ssd\color[red]{\setpagestate[test]\pagestaterealpage{test}{#1}}} \input knuth {\ssd\color[green]{\setpagestate[test]\pagestaterealpage{test}{#1}}} } \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________