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

Aditya Mahajan adityam at umich.edu
Thu Mar 24 18:47:04 CET 2011

On Thu, 24 Mar 2011, Florian Wobbe wrote:

>> \def\getdate
>>  {\dosingleempty\dogetdate}
>> \def\dogetdate[#1]%
>>  {\ctalua{context(modification_date("\jobname.tex", "#1"))}}
> How would you automatically find out the filename which the macro is called from? For instance if the file with the macro is included in a master document.


So, if you want the name of the file in which this macro is defined in, 
then something like this should work:


\def.....{...."\thisfilename.tex", ...}


More information about the ntg-context mailing list