[luatex] lualibs.lua and table.serialize

Herbert Voss Herbert.Voss at fu-berlin.de
Fri Mar 6 16:37:32 CET 2020



Am 06.03.20 um 13:42 schrieb Ulrike Fischer:
> Am Fri, 6 Mar 2020 11:27:28 +0100 schrieb Herbert Voss:
>
>> Hello all,
>>
>> years ago this worked:
>>
>> \catcode`\_=12
>> \directlua{
>> require("lualibs")
>> tex.print(table.serialize(node.fields(29)))}
>> \bye
> I doubt that it worked, I get the omega in plain even with texlive
> 2014.

in 2013 it was without the omega
>
> You need to change the catcode of the line feed:
>
> \catcode`\_=12
> \catcode10=10
> \directlua{
> require("lualibs")
> tex.print(table.serialize(node.fields(29)))}
> \bye

There should be _no need_ for \catcode10!

tex.print(table.fastserialize(node.fields(29)))

works, but then there is no space between the items which is useful
for usig it in a text.
> Or use lualatex.
>

that makes no difference.

Herbert


More information about the luatex mailing list.