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