[luatex] LuaMetaTeX ";" syntax in \numexpr

Hans Hagen j.hagen at xs4all.nl
Mon Mar 25 18:38:57 CET 2024


On 3/25/2024 6:22 PM, Joseph Wright wrote:
> On 25/03/2024 17:20, Hans Hagen wrote:
>> On 3/25/2024 6:05 PM, Joseph Wright wrote:
>>> Hello all,
>>>
>>> The current LuaMetaTeX docs say that \numexpr is extended to include
>>> division with truncation using ":". They don't, however, mention that
>>> ";" will be interpreted as mod. The new \numexpression includes mod
>>> functionality using "%", although it also seems to accept ";".
>>>
>>> Before I make some non-trivial macro changes to allow for this
>>> (https://github.com/latex3/latex3/issues/1518), can I check if ";" is
>>> intended to work but is simply undocumented, or if it's been left as an
>>> oversight and might therefore be dropped from the code  (in favour of
>>> "%")?
>> as luatex is frozen, what's there will stay
> 
> I was talking specifically about LuaMetaTeX :)

Ha, so now i need to check if it's even in luatex ... well ...

That said, as we use it at least once in lmtx it will stay there too 
(and we won't impose \numexpression 10 mod 3\relax on you).

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the luatex mailing list.