[luatex] Inline Lua scripts

Dirk Laurie dirk.laurie at gmail.com
Wed Sep 18 16:03:21 CEST 2013


AFAICS, LuaLaTeX offers no

\begin{lua}
  Lua code to be read verbatim
\end{lua}

There is \directlua, which however allows TeX macros inside the code,
reorganizes whitespace and in general requires one to keep a cool
TeX head inside the Lua code.

So the workaround seems to be
\directlua{dofile"filename"}

which requires separate named files for such scripts.

Am I missing something?


More information about the luatex mailing list