Pablo Rodriguez schrieb am 15.06.2020 um 14:52:
Dear list,
I have the following number with wrong annotation placement and wrong page number, which would be both on the second page:
\setupinteraction[state=start] \definelayer[pgnumber] \setupbackgrounds[page][background=pgnumber] \starttext \placelist[section][alternative=d] \dorecurse{16}{\section{Section}} \pagenumber/\lastpagenumber \setlayer[pgnumber] {\comment{\pagenumber}} \stoptext
Could anyone confirm the issue?
\pagenumber is only reliable headers/footer texts or page backgrounds, for everything else you need a multi pass mechanism (save the page number in the first run and provide it in the second). \setuppapersize[A6] \definepagestate[pagenumber] \starttext \subject{\tex{pagenumber}} \dorecurse{50}{\twodigits{\recurselevel}: \pagenumber\par} \page \subject{\tex{pagestaterealpage}} \dorecurse{50} {\twodigits{\recurselevel}: \setpagestate[pagenumber]% \pagestaterealpage{pagenumber}{\recurselevel}\par} \stoptext Wolfgang