}:\space \currentdate \quad \donefalse \ifcstok \currentproject
\currentproduct \ifcstok \currentproduct \currentcomponent \donetrue \fi
\fi \ifdone \donefalse \else \ifempty \
\page_info_add_to_box
#1->\scratchdimen \wd #1\setbox \b_page_versions \vpack to \ht #1{\vfill
\settexthoff
, \currentproduct and \currentproject to print the
name of the file.
Wolfgang
___
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
Wolfgang wrote:
You can use \currentcomponent, \currentproduct and \currentproject to print
the name of the file.
Another secret unearthed! All wikified, together with \processedfile
and \processedfiles. Sans examples, but at least the info's there.
Thank you, Wolfgang.
Cheers,
Sietse
On Fri, 14 Nov 2008, Alan STONE wrote:
Another debugging question: how do you return the filename of the file being
compiled ?
\jobname
There is also
\currentproject
\currentproduct
\currentenvironment
\currentcomponent
Aditya
=\plusone
\expandafter\stoptext
\else
\decrement\filelevel\relax
\expandafter\endinput
\fi}
\def\startproject #1 %
{\donextlevel\v!project\currentproject
\donotexecutefile\doexecutefileonce
\doexecutefileonce\doexecutefile#1\\}
\def\startproduct #1