[luatex] Changing catcodes in \directlua

Manuel Pégourié-Gonnard mpg at elzevir.fr
Tue Jul 6 16:35:12 CEST 2010


Le 06/07/2010 16:05, Steve Hafner a écrit :
> tex.print([[$\int f(x)\,dx$]]) %thanks Manuel for pointing out [[ ]]

For the record, it was Luigi.

Fwiw, I don't like [[...]]: it doesn't work if your string contains ]]. Sure,
you could use [===[ ... ]===], but the problem remains if your string contains
]===], etc. \luaescapstring, otoh, is guaranteed to always work, which sounds
very appealing to the control freak inside me :-)

Manuel.


More information about the luatex mailing list