From Fabrice.Popineau at supelec.fr Thu Jul 19 00:39:14 2001 From: Fabrice.Popineau at supelec.fr (Fabrice Popineau) Date: Fri Feb 18 15:06:19 2005 Subject: [tex-pretest] \jobname Message-ID: Before I spend time on it, does anybody knows why : D:\tmp>tex "&latex" "\input foo.tex" produces foo.dvi and D:\tmp>tex "&latex" "\renewcommand\encodingdefault{T1}\selectfont\input foo.tex" produces texput.dvi? Shouldn't jobname be set accordingly to the first filename \input? -- Fabrice From David.Kastrup at neuroinformatik.ruhr-uni-bochum.de Thu Jul 19 12:32:23 2001 From: David.Kastrup at neuroinformatik.ruhr-uni-bochum.de (David Kastrup) Date: Fri Feb 18 15:06:19 2005 Subject: [tex-pretest] Re: \jobname In-Reply-To: (message from Fabrice Popineau on 19 Jul 2001 00:39:14 +0200) References: Message-ID: <200107191032.f6JAWNi08155@kumpel.neuroinformatik.ruhr-uni-bochum.de> From: Fabrice Popineau Date: 19 Jul 2001 00:39:14 +0200 Before I spend time on it, does anybody knows why : D:\tmp>tex "&latex" "\input foo.tex" produces foo.dvi and D:\tmp>tex "&latex" "\renewcommand\encodingdefault{T1}\selectfont\input foo.tex" produces texput.dvi? Shouldn't jobname be set accordingly to the first filename \input? Yes, unless something forces it to be determined at an earlier point of time. In this case, \selectfont produces diagnostic output that goes to the log file. The log file has to be opened, and it is named \jobname.log. David Kastrup Phone: +49-234-32-25570 Email: dak@neuroinformatik.ruhr-uni-bochum.de Fax: +49-234-32-14209 Institut f?r Neuroinformatik, Universit?tsstr. 150, 44780 Bochum, Germany From Fabrice.Popineau at supelec.fr Thu Jul 19 13:39:29 2001 From: Fabrice.Popineau at supelec.fr (Fabrice Popineau) Date: Fri Feb 18 15:06:19 2005 Subject: [tex-pretest] Re: \jobname In-Reply-To: <200107191032.f6JAWNi08155@kumpel.neuroinformatik.ruhr-uni-bochum.de> (David Kastrup's message of "Thu, 19 Jul 2001 12:32:23 +0200 (MEST)") References: <200107191032.f6JAWNi08155@kumpel.neuroinformatik.ruhr-uni-bochum.de> Message-ID: * David Kastrup writes: > Yes, unless something forces it to be determined at an earlier point > of time. In this case, \selectfont produces diagnostic output that > goes to the log file. The log file has to be opened, and it is > named \jobname.log. Thanks for the explanation (and sorry for the question!) Fabrice From raichle at Informatik.Uni-Stuttgart.DE Thu Jul 19 13:52:34 2001 From: raichle at Informatik.Uni-Stuttgart.DE (Bernd Raichle) Date: Fri Feb 18 15:06:19 2005 Subject: [tex-pretest] Re: \jobname In-Reply-To: <200107191032.f6JAWNi08155@kumpel.neuroinformatik.ruhr-uni-bochum.de> References: <200107191032.f6JAWNi08155@kumpel.neuroinformatik.ruhr-uni-bochum.de> Message-ID: <15190.51714.199649.314877@informatik.uni-stuttgart.de> On Thursday, 19 July 2001 12:32:23 +0200, David Kastrup writes: > From: Fabrice Popineau > Date: 19 Jul 2001 00:39:14 +0200 [... \jobname problem ...] > > Yes, unless something forces it to be determined at an earlier point > of time. In this case, \selectfont produces diagnostic output that > goes to the log file. The log file has to be opened, and it is named > \jobname.log. The primitive \newfont used by \selectfont opens the log file if it is not opened yet to be sure that error messages can occur later on. When opening the log file, the job name gets fixed---if their was no input file name until now, it gets fixed to "texput" (cf. tex.web: |open_log_file|, |new_font|). The same occurs if \selectfont produces output to the log file. -bernd