From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15465 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: filename Date: Mon, 21 Jun 2004 18:01:47 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40D7066B.5020305@wxs.nl> References: <200406211551.53467.lohmannt@web.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1087833881 3603 80.91.224.253 (21 Jun 2004 16:04:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2004 16:04:41 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jun 21 18:04:15 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcRHK-0004G0-00 for ; Mon, 21 Jun 2004 18:04:14 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 1185310B7A; Mon, 21 Jun 2004 18:04:11 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 2667F10B32 for ; Mon, 21 Jun 2004 18:01:51 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i5LG1krQ014062 for ; Mon, 21 Jun 2004 18:01:46 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 868AD1A968; Mon, 21 Jun 2004 18:01:48 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 708C9179EA for ; Mon, 21 Jun 2004 16:01:47 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15465 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15465 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 -----------------------------------------------------------------