Am 08.03.2026 um 13:01 schrieb Hraban Ramm:
Hi,
I tried to use \convertnumber in an example, it works for the title but
not in the ToC.
I suspect expansion of \recurselevel, but (as usual…) I didn’t find the
right command/place for \expanded, \expandafter or the like.
\expanded{\startchapter[title={\convertnumber{month}{\recurselevel}}]}
or
\startchapter[title={\convertnumber{month}{#1}}]
BTW, how can we make \convertnumber{words}{123} work for German or other
languages?
1. You have to change the main language.
\mainlanguage[sv]
\starttext
\dorecurse{3}{\convertnumber{word}{\recurselevel} }
\stoptext
2. You need a converter for the language in core-con.lmt.
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
___________________________________________________________________________________