That works - I mean it compiles, but in the order: Chapter 1, Chapter 2
etc. Maybe I have not explained the situation I am trying to achieve
sufficiently. I am after Chapter 10, Chapter 9... through to Chapter 0
(though we might do it with parts instead of Chapters, but for the
moment let's just get the reverse to work)
On 27/9/25 17:06, Wolfgang Schuster wrote:
\define[1]\ReverseChapterNumber
{\the\numexpr\somenamedheadnumber{chapter}{last}-\somenamedheadnumber{chapter}{current}\relax}
\setuphead
[chapter]
[numbercommand=\ReverseChapterNumber,conversion=A]
\starttext
\dorecurse{11}{\chapter{Chapter \VerboseNumber{#1}}}
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________