Ah, silly error on my part. Thank you. Why did I doubt you🙂
Julian
On 27/9/25 17:45, Wolfgang Schuster wrote:
Am 27.09.2025 um 09:26 schrieb jbf:
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}
It *does* count backwards, just ensure the blank line in the
definition above isn't there.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________