[luatex] invoking a lua script in TeX
Bob Tennent
rdt at cs.queensu.ca
Tue Apr 12 13:33:24 CEST 2011
Dirk:
I've added
\ifx\undefined\directlua \else \directlua {
musixflx = kpse.find_file("musixflx.lua")
dofile(musixflx)}%
\fi%
to the definition of \endmuflex and it basically works. But when I add
an assignment to the lua code as follows:
\ifx\undefined\directlua \else \directlua {
name_of_file = \jobname
musixflx = kpse.find_file("musixflx.lua")
dofile(musixflx)}%
\fi%
it no longer works. According to "Writing Lua in TeX" at the luatex
wiki, I need to set \endlinechar=10 or \catcode`\^^M=12 but where?
Bob
More information about the luatex
mailing list