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...


> Le 2 mai 2022 à 15:50, Philip Taylor (Hellenic Institute) 
> <[email protected]> a écrit :
> 
> On 02/05/2022 14:26, Jérôme LAURENS wrote:
>> 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
> "Undocumented" ?  Does 10.3.14.1 not read 
> 
>> 10.3.14.1 print
>> tex.print(<string> s, ...)
>> tex.print(<number> n, <string> s, ...)
>> tex.print(<table> t)
>> tex.print(<number> n, <table> t)
> -- 
> Philip Taylor
> 

Reply via email to