24 Mar
2011
24 Mar
'11
9:43 p.m.
Thanks, nice! I suppose the filename is also directly reachable from inside \startluacode ... \stopluacode. How?
\start-stop luacode expands its contents. So, the following should work (untested)
\startluacode thisfilename = "\thisfilename.tex" \stopluacode
No, that is not what I meant. I thought why do the detour when the filename is available from the environment of the lua core. I just found it: \inputfilename is defined as \ctxsprint{environment.inputfilename} Florian