ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Patrick Gundlach" <pg@levana.de>
Subject: Re: filename
Date: 23 Jun 2004 13:36:29 +0200	[thread overview]
Message-ID: <m2zn6uh5fm.fsf@levana.de> (raw)
In-Reply-To: <40D7066B.5020305@wxs.nl> (Hans Hagen's message of "Mon, 21 Jun 2004 18:01:47 +0200")

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

  parent reply	other threads:[~2004-06-23 11:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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     ` Patrick Gundlach [this message]
2004-06-23 16:09       ` Hans Hagen
2004-06-23 16:37         ` filename Patrick Gundlach
2004-06-24  7:54           ` filename Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zn6uh5fm.fsf@levana.de \
    --to=pg@levana.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).