[Dev-luatex] Can \directlua be nested?
taco at elvenkind.com
Thu Jan 31 13:07:06 CET 2008
Jonathan Sauer wrote:
> can \directlua be nested, i.e.
> to call Lua function 'foo'?
\directlua is never called recursively, even though it sometimes
looks like it is. The example above is syntactically wrong, but
this works (ignoring \catcode issues):
however, executation is serialized. The output of tex.print is
not seen until the end of the outer \directlua is reached.
Luatex's tex engine actually sees something like this:
which is fine, as it does not recurse.
Best wishes, Taco
More information about the dev-luatex