From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15510 Path: main.gmane.org!not-for-mail From: "Patrick Gundlach" Newsgroups: gmane.comp.tex.context Subject: Re: filename Date: 23 Jun 2004 13:36:29 +0200 Organization: chaos Sender: ntg-context-admin@ntg.nl Message-ID: 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 X-Trace: sea.gmane.org 1087990765 15796 80.91.224.253 (23 Jun 2004 11:39:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2004 11:39:25 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Jun 23 13:39:16 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 1Bd660-0003SP-00 for ; Wed, 23 Jun 2004 13:39:16 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id A8F7B10B98; Wed, 23 Jun 2004 13:39:12 +0200 (MEST) Original-Received: from lilly.ping.de (lilly.ping.de [83.97.42.2]) by ref.ntg.nl (Postfix) with SMTP id 687D610B81 for ; Wed, 23 Jun 2004 13:36:25 +0200 (MEST) Original-Received: (qmail 32301 invoked from network); 23 Jun 2004 11:36:07 -0000 Original-Received: (ofmipd 83.97.40.131); 23 Jun 2004 11:35:45 -0000 Original-Received: from schnee.local (localhost [127.0.0.1]) by schnee.local (8.12.9/8.12.9) with ESMTP id i5NBaUeu003448 for ; Wed, 23 Jun 2004 13:36:30 +0200 (CEST) Original-Received: (from pg@localhost) by schnee.local (8.12.9/8.12.2/Submit) id i5NBaUnE003447; Wed, 23 Jun 2004 13:36:30 +0200 (CEST) Original-To: ntg-context@ntg.nl X-Authentication-Warning: schnee.local: pg set sender to patrick@gundla.ch using -f X-Lieblings-Musik: the_capricorns In-Reply-To: <40D7066B.5020305@wxs.nl> (Hans Hagen's message of "Mon, 21 Jun 2004 18:01:47 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) 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:15510 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15510 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