[NTG-context] ordinaldaynumber not working in latest beta

Wolfgang Schuster schuster.wolfgang at gmail.com
Fri May 15 14:46:26 CEST 2015


> Am 15.05.2015 um 14:28 schrieb Christoph Reller <christoph.reller at gmail.com>:
> 
> Hi,
> 
> The \ordinaldaynumber{...} stopped working for me. Is this a bug?
> 
> Cheers,
> Christoph Reller
> 
> \starttext
> \ordinaldaynumber{5}
> \stoptext
> 
> ! You can't use `\numexpr' in vertical mode
> 
> <recently read> \numexpr 
>          
> \ordinaldaynumber #1->\clf_ordinal \numexpr 
>                                             #1\relax {\currentlanguage }

The Lua function for the command (core-con.lua) expects a wrong value.

implement {
    name      = "ordinal",
    actions   = ctxordinal,
-   arguments = { "string", "string" }
+   arguments = { "integer", "string" }
}

Wolfgang



More information about the ntg-context mailing list