From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15529 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: filename Date: Wed, 23 Jun 2004 18:09:11 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40D9AB27.4000200@wxs.nl> References: <200406211551.53467.lohmannt@web.de> <40D7066B.5020305@wxs.nl> 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 1088007310 31709 80.91.224.253 (23 Jun 2004 16:15:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2004 16:15:10 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Jun 23 18:15:02 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 1BdAOs-0001Ae-00 for ; Wed, 23 Jun 2004 18:15:02 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4A92B10B3D; Wed, 23 Jun 2004 18:14:59 +0200 (MEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 67DD810B2F for ; Wed, 23 Jun 2004 18:09:13 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i5NG99j6007313 for ; Wed, 23 Jun 2004 18:09:09 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 5418818574; Wed, 23 Jun 2004 18:09:12 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 5904A14B56 for ; Wed, 23 Jun 2004 16:09:11 +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:15529 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15529 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 -----------------------------------------------------------------