![](https://secure.gravatar.com/avatar/5705290add533907ed4869f7e9f586c3.jpg?s=120&d=mm&r=g)
24 Mar
2011
24 Mar
'11
3: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