![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Peter Münster schrieb am 30.05.2024 um 13:59:
Hi,
It seems, that you cannot use self defined conversions in \date:
\defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self defined conversion in date: \date[d=1][day:mytest] (not OK) \stoptext
Is this a bug, or a feature?
How could one use self defined conversions in \date please?
The \date mechanism can only use conversions which are defined on the Lua side but your custom conversion is only available on the TeX side. You can however set the "X-" prefix as normal string in the output of \date and use a predefined conversion. \starttext \date[d=1][X-,day:r] \date[d=1][X-,day:romannumerals] \stoptext Wolfgang