Received: from mail.proteosys.com ([62.225.9.49]) by nummer-3.proteosys with Microsoft SMTPSVC(5.0.2195.5329); Fri, 16 Aug 2002 19:46:14 +0200 Received: by mail.proteosys.com (8.12.2/8.12.2) with ESMTP id g7GHkCVP004395 for ; Fri, 16 Aug 2002 19:46:13 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.27]) by relay2.uni-heidelberg.de (8.12.4/8.12.4) with ESMTP id g7GHYrdV010940; Fri, 16 Aug 2002 19:34:54 +0200 (MET DST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2454C.D0A37700" 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 g7G6llBs023872; Fri, 16 Aug 2002 19:33:56 +0200 Received: from LISTSERV.UNI-HEIDELBERG.DE by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8d) with spool id 4910 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 16 Aug 2002 19:33:56 +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 g7GHXuxk031217 for ; Fri, 16 Aug 2002 19:33:56 +0200 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.170]) by relay2.uni-heidelberg.de (8.12.4/8.12.4) with ESMTP id g7GHYBdV010859 for ; Fri, 16 Aug 2002 19:34:11 +0200 (MET DST) Received: from [212.227.126.155] (helo=mrelayng1.kundenserver.de) by moutng0.kundenserver.de with esmtp (Exim 3.35 #2) id 17fkzE-0004RB-00 for LATEX-L@listserv.uni-heidelberg.de; Fri, 16 Aug 2002 19:34:12 +0200 Received: from [80.129.4.207] (helo=istrati.mittelbach-online.de) by mrelayng1.kundenserver.de with asmtp (Exim 3.35 #2) id 17fkzE-0008Cm-00 for LATEX-L@listserv.uni-heidelberg.de; Fri, 16 Aug 2002 19:34:12 +0200 Received: (from frank@localhost) by istrati.mittelbach-online.de (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id g7GHWWb16297; Fri, 16 Aug 2002 19:32:32 +0200 In-Reply-To: References: <5.1.0.14.0.20020806111131.04d8ddc8@w3k.org> Return-Path: X-Mailer: VM 6.96 under Emacs 20.7.1 X-OriginalArrivalTime: 16 Aug 2002 17:46:14.0698 (UTC) FILETIME=[D10DF8A0:01C2454C] X-Authentication-Warning: istrati.mittelbach-online.de: frank set sender to frank@mittelbach-online.de using -f X-Scanned-By: MIMEDefang 2.6 (www dot roaringpenguin dot com slash mimedefang) Content-class: urn:content-classes:message Subject: Re: LaTeX Error: which file? Date: Fri, 16 Aug 2002 18:32:32 +0100 Message-ID: A<15709.14128.606651.17869@istrati.mittelbach-online.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: LaTeX Error: which file? Thread-Index: AcJFTNFBI+13Z+k4RTeAGJkj95M3Fg== From: "Frank Mittelbach" To: Reply-To: "Mailing list for the LaTeX3 project" Status: R X-Status: X-Keywords: X-UID: 4361 This is a multi-part message in MIME format. ------_=_NextPart_001_01C2454C.D0A37700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Donald Arseneau writes: > Julius Smith writes: > > > In any case, I believe my original suggestion remains a needed > > improvement. To summarize that, after "input line 21", LaTeX = should have > > printed "in file matlab1.tex". > > Yes, it should. The best way to handle this request is to post > a bug report by "latex latexbug" and following instructions. > > LaTeX doesn't keep track of the input file name, but it would > be helpful for this and several other purposes to do so. it would indeed be helpful and as Michael pointed out in proto-type code = we actually implemented such stuff. However the problem with 2e is that officially it supports the plain TeX syntax for input, ie \input foo and that is simply not something you can easily reimplement and = automatically capture the current input file from (on all platforms) in contrast to, = say \input{foo} which would do this for free. For that reason we refrained from putting something like that into 2e in = 1994. It would however not be that difficult to built a package that provides, = say, \currentfilename containing the current file name in all cases except = plain \input and then additionally redefine \begin and \end to output it in = case of error. Any takers? Donald? afternoon excerise? frank ------_=_NextPart_001_01C2454C.D0A37700 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: LaTeX Error: which file?

Donald Arseneau writes:
 > Julius Smith <jos@W3K.ORG> = writes:
 >
 > > In any case, I believe my original = suggestion remains a needed
 > > improvement.  To summarize that, = after "input line 21", LaTeX should have
 > > printed "in file = matlab1.tex".
 >
 > Yes, it should.  The best way to = handle this request is to post
 > a bug report by "latex latexbug" = and following instructions.
 >
 > LaTeX doesn't keep track of the input file = name, but it would
 > be helpful for this and several other = purposes to do so.

it would indeed be helpful and as Michael pointed out = in proto-type code we
actually implemented such stuff. However the problem = with 2e is that
officially it supports the plain TeX syntax for = input, ie

\input foo

and that is simply not something you can easily = reimplement and automatically
capture the current input file from (on all = platforms) in contrast to, say

\input{foo}

which would do this for free.

For that reason we refrained from putting something = like that into 2e in 1994.

It would however not be that difficult to built a = package that provides, say,
\currentfilename containing the current file name in = all cases except plain
\input and then additionally redefine \begin and \end = to output it in case of
error.

Any takers? Donald? afternoon excerise?

frank

------_=_NextPart_001_01C2454C.D0A37700--