ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: filename
Date: Mon, 21 Jun 2004 18:01:47 +0200	[thread overview]
Message-ID: <40D7066B.5020305@wxs.nl> (raw)
In-Reply-To: <m2smcooqyw.fsf@levana.de>

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
-----------------------------------------------------------------

  reply	other threads:[~2004-06-21 16:01 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   ` Hans Hagen [this message]
2004-06-22 11:42     ` filename 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

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=40D7066B.5020305@wxs.nl \
    --to=pragma@wxs.nl \
    --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).