[luatex] Inline Lua scripts

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Thu Sep 19 11:10:23 CEST 2013


Dirk Laurie <dirk.laurie at gmail.com> wrote:

> 2013/9/18 Patrick Gundlach <patrick at gundla.ch>:
> 
> > http://tex.stackexchange.com/a/33102/243
> 
> The top line there says: use
> 
> \directlua{  require("myfile")  }
> 
> which also needs separate files.
> 
> One solution to the problem of keeping the code in one file would
> be to modify verbatim.sty so that it also has
> 
> \begin{verbatimoutput}{myfile.lua}
> \end{verbatim}
> 
> This is the sort of thing that someone has surely already done.

for example, by the latex team, as part of the latex 2e (first released
in 1994) -- \begin{filecontents}

i thought (in my simple way) that one couldn't use musix* with latex.
or maybe i had forgotten how this thread started...

robin

who's just done the last thing needed for the ctan installation of
lilyglyphs.sty, that allows lilypond glyphs and code fragments in
xelatex or lualatex.

/fx: washes mouth out with soap...


More information about the luatex mailing list