Since I also have the latest version (as of yesterday) I ran your first suggestion, Wolfgang and that compiles with the latest, but again in the order Chapter 1, Chapter 2 etc. whereas I am trying to achieve something that I admit is not usual, but the author is considering it for dramatic effect. 11 Chapters (or parts) in all, starting with 10 and ending with 0. Of course I can achieve this in a very manual way, (and therefore would have to do similarly with the TOC) but just hoped we might be able to do it another way.

On 27/9/25 17:06, Wolfgang Schuster wrote:
Am 27.09.2025 um 08:52 schrieb jbf:
It is not compiling for me. The usual kind of error message

A number should have been here; I inserted '0'. (If you can't figure out why I

needed to see a number, look up 'weird error' in the index to The TeXbook.)

Try this version (which doesn't use the new brace method for registers).

%%%% begin example
\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
%%%% end example

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
___________________________________________________________________________________

Reply via email to