Hi,
recently I saw a difference between context 2026.01.08 23:24 and afterwards.
with the following mwe I get from Version: 2026.02.10 16:31
\lastpage (or \lastrealpagenumber) one increment to high (even with one page of
output \lastrealpagenumber reports 2)
\setupfootertexts[page \realpagenumber\ of \lastrealpagenumber]
\setuppagenumbering[location=,]
\starttext
hallo
\stoptext
in Version 2026.01.08 23:24 same works fine.
Maybe this is because of the modification in strc-pag.mkxl from line 237 (I
cannot judge if there are any side effects):
% \protected\def\strc_pagenumbers_decrement_counters % only at the end
% {\strc_counters_decrement\s!realpage
% \strc_counters_decrement\s!userpage
% \strc_counters_decrement\s!subpage}
\protected\def\strc_pagenumbers_decrement_counters % only at the end
{\ifcase\insertonlycount\else
\strc_counters_decrement\s!realpage
\strc_counters_decrement\s!userpage
\strc_counters_decrement\s!subpage
\fi}
if I rollback to the old \strc_pagenumbers_decrement_counters code \lastpage
works as expected.
Or did I miss something from Version 2026.02.10 16:31 and newer?
Thanks for your help!
Andreas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________