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?

Reply via email to