LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Sun, 6 Jul 2003 15:27:57 +0200
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Subject: Re: \input
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=us-ascii
From: Frank Mittelbach <[log in to unmask]>
Parts/Attachments: text/plain (22 lines)
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