* filename
@ 2004-06-21 13:51 Thomas Lohmann
2004-06-21 15:44 ` filename Patrick Gundlach
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Lohmann @ 2004-06-21 13:51 UTC (permalink / raw)
Hello everybody,
I'm looking for a comand to insert the current filename and or path like
inserting the current date with \currentdate. Any help?
Thanks
Thomas Lohmann
--
Dr. Thomas Lohmann
Daimlerstr. 28
68526 Ladenburg
Tel.: 06203 924277
Fax: 01212 5 11720241
Mobil: 0174 6179456
Email: lohmannt@web.de
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: filename
2004-06-21 13:51 filename Thomas Lohmann
@ 2004-06-21 15:44 ` Patrick Gundlach
2004-06-21 16:01 ` filename Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Patrick Gundlach @ 2004-06-21 15:44 UTC (permalink / raw)
Hello Thomas,
> I'm looking for a comand to insert the current filename and or path like
> inserting the current date with \currentdate. Any help?
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.
Patrick
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: filename
2004-06-21 15:44 ` filename Patrick Gundlach
@ 2004-06-21 16:01 ` Hans Hagen
2004-06-22 11:42 ` Thomas Lohmann
2004-06-23 11:36 ` filename Patrick Gundlach
0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2004-06-21 16:01 UTC (permalink / raw)
Patrick Gundlach wrote:
>Hello Thomas,
>
>
>
>>I'm looking for a comand to insert the current filename and or path like
>>inserting the current date with \currentdate. Any help?
>>
>>
>
>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
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: filename
2004-06-21 16:01 ` filename Hans Hagen
@ 2004-06-22 11:42 ` Thomas Lohmann
2004-06-23 11:36 ` filename Patrick Gundlach
1 sibling, 0 replies; 8+ messages in thread
From: Thomas Lohmann @ 2004-06-22 11:42 UTC (permalink / raw)
Many thanks,
Greetings
Thomas Lohmann
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: filename
2004-06-21 16:01 ` filename Hans Hagen
2004-06-22 11:42 ` Thomas Lohmann
@ 2004-06-23 11:36 ` Patrick Gundlach
2004-06-23 16:09 ` filename Hans Hagen
1 sibling, 1 reply; 8+ messages in thread
From: Patrick Gundlach @ 2004-06-23 11:36 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: filename
2004-06-23 11:36 ` filename Patrick Gundlach
@ 2004-06-23 16:09 ` Hans Hagen
2004-06-23 16:37 ` filename Patrick Gundlach
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2004-06-23 16:09 UTC (permalink / raw)
Patrick Gundlach wrote:
>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:
>
>
there is also \currentfile
>\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
>
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: filename
2004-06-23 16:09 ` filename Hans Hagen
@ 2004-06-23 16:37 ` Patrick Gundlach
2004-06-24 7:54 ` filename Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Patrick Gundlach @ 2004-06-23 16:37 UTC (permalink / raw)
Hello Hans,
> there is also \currentfile
\starttext
\currentfile
\stoptext
-> undefined cs \currentfile
Patrick
--
texshow-web: http://members.ping.de:8061
ConTeXt wiki: http://members.ping.de:8062
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: filename
2004-06-23 16:37 ` filename Patrick Gundlach
@ 2004-06-24 7:54 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2004-06-24 7:54 UTC (permalink / raw)
Patrick Gundlach wrote:
>Hello Hans,
>
>
>
>
>>there is also \currentfile
>>
>>
>
>\starttext
>
>
\component somefile
>\currentfile
>
>
now should report something; i'll add a default:
\def\currentfile{\inputfilename}
>\stoptext
>
>-> undefined cs \currentfile
>
>Patrick
>
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-06-24 7:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-21 13:51 filename Thomas Lohmann
2004-06-21 15:44 ` filename Patrick Gundlach
2004-06-21 16:01 ` filename Hans Hagen
2004-06-22 11:42 ` Thomas Lohmann
2004-06-23 11:36 ` filename Patrick Gundlach
2004-06-23 16:09 ` filename Hans Hagen
2004-06-23 16:37 ` filename Patrick Gundlach
2004-06-24 7:54 ` filename Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).