Received: from mail.proteosys.com ([62.225.9.49]) by nummer-3.proteosys with Microsoft SMTPSVC(5.0.2195.5329); Sun, 6 Jul 2003 15:36:23 +0200 Received: by mail.proteosys.com (8.12.9/8.12.2) with ESMTP id h66DaKPP006736 for ; Sun, 6 Jul 2003 15:36:20 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.27]) by relay.uni-heidelberg.de (8.12.9/8.12.9) with ESMTP id h66DTomp005216; Sun, 6 Jul 2003 15:29:50 +0200 (MET DST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C343C3.97256580" Received: from listserv (listserv.uni-heidelberg.de [129.206.100.27]) by listserv.uni-heidelberg.de (8.12.2/8.12.2/SuSE Linux 0.6) with ESMTP id h66Bjwq0010120; Sun, 6 Jul 2003 15:28:04 +0200 Received: from LISTSERV.UNI-HEIDELBERG.DE by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8d) with spool id 0297 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 6 Jul 2003 15:28:04 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.12.2/8.12.2/SuSE Linux 0.6) with ESMTP id h66DS4pU010486 for ; Sun, 6 Jul 2003 15:28:04 +0200 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by relay2.uni-heidelberg.de (8.12.9/8.12.9) with ESMTP id h66DTgGl003447 for ; Sun, 6 Jul 2003 15:29:42 +0200 (MET DST) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19Z9aI-0005gF-00 for LATEX-L@listserv.uni-heidelberg.de; Sun, 06 Jul 2003 15:29:42 +0200 Received: from [80.129.9.179] (helo=istrati.mittelbach-online.de) by mrelayng.kundenserver.de with asmtp (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 19Z9aH-0003iP-00 for LATEX-L@listserv.uni-heidelberg.de; Sun, 06 Jul 2003 15:29:41 +0200 Received: (from frank@localhost) by istrati.mittelbach-online.de (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id h66DRve23159; Sun, 6 Jul 2003 15:27:57 +0200 In-Reply-To: <16134.24630.894055.174261@zarniwoop.ms25.local> References: <16134.24630.894055.174261@zarniwoop.ms25.local> Return-Path: X-Mailer: VM 6.96 under Emacs 20.7.1 X-OriginalArrivalTime: 06 Jul 2003 13:36:24.0204 (UTC) FILETIME=[97DD1CC0:01C343C3] X-Authentication-Warning: istrati.mittelbach-online.de: frank set sender to frank@mittelbach-online.de using -f X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang) X-Spam-Score: -29.9 () EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_VM,X_AUTH_WARNING Content-class: urn:content-classes:message Subject: Re: \input Date: Sun, 6 Jul 2003 14:27:57 +0100 Message-ID: A<16136.9181.487151.949600@istrati.mittelbach-online.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: \input Thread-Index: AcNDw5gIMZgR8kfrR1e2NGJ0habDsQ== From: "Frank Mittelbach" To: Reply-To: "Mailing list for the LaTeX3 project" Status: R X-Status: X-Keywords: X-UID: 4640 This is a multi-part message in MIME format. ------_=_NextPart_001_01C343C3.97256580 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Reinhard Kotucha writes: > is it possible that LaTeX3 maintains a stack which holds the \input > files? TeX3 provides a primitive \inputlineno but I'd like to have a > macro \inputfile which expands to the name of the file that is > currently read. > > It's quite similar to \@currenvir (and might share some code). for 2e we decided against that because the primitive \input syntax is = and was acceptable LaTeX syntax and in that case you can't easily determine the = file name safely. best solution would indeed be support from the underlying engine though = i'm not sure that it is a good idea to keep support for the original \TeX{} = \input snytax at all, ie i'm not sure why one would like to have both - \input standard-version - \inputfile{} can be a Makros or has space frank ------_=_NextPart_001_01C343C3.97256580 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: \input

Reinhard Kotucha writes:

 > is it possible that LaTeX3 maintains a = stack which holds the \input
 > files?  TeX3 provides a primitive = \inputlineno but I'd like to have a
 > macro \inputfile which expands to the name = of the file that is
 > currently read.
 >
 > It's quite similar to \@currenvir (and = might share some code).

for 2e we decided against that because the primitive = \input syntax is and was
acceptable LaTeX syntax and in that case you can't = easily determine the file
name safely.

best solution would indeed be support from the = underlying engine though i'm
not sure that it is a good idea to keep support for = the original \TeX{} \input
snytax at all, ie i'm not sure why one would like to = have both

- \input = <file>         = standard-version
- \inputfile{<file>}    = <file> can be a Makros or has space

frank

------_=_NextPart_001_01C343C3.97256580--