[luatex] [EXT] Documentation of tex.print

luigi scarso luigi.scarso at gmail.com
Mon May 2 17:00:57 CEST 2022


On Mon, May 2, 2022 at 4:11 PM Jérôme LAURENS <jerome.laurens at u-bourgogne.fr>
wrote:

> According to the documentation you pointed out, a unique argument can be
> either a string or a table, but nothing about a single number
>
> Notice that the undocumented tex.print(<number>n) prints the number n
> whereas tex.print(<number>n, nil) prints nothing, which is expected despite
> it may feel "a little" out of bounds...
>
>
Numbers are converted to string --  this is quite common in Lua when there
is something to print -- but in this case the catcode regime can be
confusing.
I will add a note.


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20220502/b8111294/attachment.html>


More information about the luatex mailing list.