Hello Hans,

>>Well, I don't think you can do this. You can only get the name of the
>>main TeX file by using \jobname, but thats all. (Hopefully I didn't
>>miss some secret.) Different approach: put some info in your file with
>>a macro like \define\thisfile{/path/to/test.tex}. Or you can put some RCS
>>information in your file for example.
>>  
> of course you missed a few secret:
>
> \inputfilename
> \outputfilename
> \jobfilesuffix

> don't look at the code, some catcode mess is involved

OK, I didn't. But the above still gives me the name of the main file
only:

\starttext
\startlines
\inputfilename
\outputfilename
\jobfilesuffix
\stoplines
\input included
\readfile{included}{}{}
\stoptext

and in included.tex:
Included file:
\startlines
\inputfilename
\outputfilename
\jobfilesuffix
\stoplines

gives me:

test.tex
test
tex

Included file:
test.tex
test
tex

Included file:
test.tex
test
tex


Patrick
-- 
texshow-web:  http://members.ping.de:8061
ConTeXt wiki: http://members.ping.de:8062
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to