
On 8 Feb 2025, at 21:38, Pablo Rodriguez via ntg-context
wrote: Dear list,
I would like to have chapters in bodypart to list two numbers, the previous to the current page and the current page, such as in:
14 · 15 24·25 50 · 51 100 · 101
I tried the following command, but I cannot get the previous to the current page number:
\setuplist[chapter] [pagecommand={\the\numexpr\currentlistentrypagenumber-1\ ·}]
What am I missing here?
The obvious arithmetic order doesn't work for reasons that aren't obvious to me. :-( Try this: \def\doPageNumber#1{\the\numexpr -1 + #1\relax\ · #1} \setupcombinedlist[content][list={chapter}] \setuplist[chapter][pagecommand=\doPageNumber] \starttext \completecontent \page \doloopoverlist {one,two,three,four,five} {\chapter{Title \recursestring} \input tufte \page } \stoptext (I'll leave Hans or Wolfgang to explain why the chapter title doesn't work but that's not an issue for you.) — Bruce Horrocks Hampshire, UK