[luatex] Documentation of tex.print

Jérôme LAURENS jerome.laurens at u-bourgogne.fr
Mon May 2 15:26:41 CEST 2022


luatex.pdf v 1.15 p 24, reads

"The most simple use of these is tex.print(<string> s)"

Next examples on the same page read

"tex.print(tex.count[10]+5)"
and
"tex.print(math.pi)"
Both arguments are not strings: this is an unrelated and undocumented usage of "tex.print" that would deserve a note in the appropriate section

According to the documentation p201, next instruction

\directlua{tex.print({‘1’, 2, ‘3'})}

should stop printing at 2 because it is not a string.
Actually it prints all the elements of the table, at least in luatex 1.13.2



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


More information about the luatex mailing list.