[NTG-context] Use date of the tex file in the document

Florian Wobbe Florian.Wobbe at awi.de
Thu Mar 24 22:43:50 CET 2011

>> 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}


More information about the ntg-context mailing list