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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to