Bug#175794: marked as forwarded (pslatex don't like options of latex)
Your message dated Tue, 06 Apr 2004 17:46:04 +0200
with message-id <87wu4tds8z.fsf@alhambra.bioz.unibas.ch>
has caused the Debian Bug report #175794,
regarding pslatex don't like options of latex
to be marked as having been forwarded to the upstream software
author(s) david@dcarlisle.demon.co.uk.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
---------------------------------------
Received: (at 175794-forwarded) by bugs.debian.org; 6 Apr 2004 17:24:38 +0000
>From frank@kuesterei.ch Tue Apr 06 10:24:38 2004
Return-path: <frank@kuesterei.ch>
Received: from moutng.kundenserver.de [212.227.126.185]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BAuJS-00015O-00; Tue, 06 Apr 2004 10:24:38 -0700
Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de)
by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
id 1BAuJM-0002pB-00; Tue, 06 Apr 2004 19:24:32 +0200
Received: from [82.194.101.114] (helo=alhambra.bioz.unibas.ch)
by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
id 1BAuJM-0002v3-00; Tue, 06 Apr 2004 19:24:32 +0200
Received: from localhost ([127.0.0.1] helo=alhambra.bioz.unibas.ch)
by alhambra.bioz.unibas.ch with esmtp (Exim 3.35 #1 (Debian))
id 1BAsm4-0000LE-00; Tue, 06 Apr 2004 17:46:04 +0200
To: david@dcarlisle.demon.co.uk
Cc: 175794-forwarded@bugs.debian.org, Juhapekka Tolvanen
<juhtolv@cc.jyu.fi>, Thomas Esser <te@dbs.uni-hannover.de>
Subject: Re: pslatex don't like options of latex
From: frank@kuesterei.ch (=?iso-8859-1?q?Frank_K=FCster?=)
In-Reply-To: <20030108073910.A2219@verso.st.jyu.fi> (Juhapekka Tolvanen's
message of "Wed, 8 Jan 2003 07:39:10 +0200")
References: <20030108073910.A2219@verso.st.jyu.fi>
Date: Tue, 06 Apr 2004 17:46:04 +0200
Message-ID: <87wu4tds8z.fsf@alhambra.bioz.unibas.ch>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:3fc7da83a58b7314ee3070631872032d
Delivered-To: 175794-forwarded@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
X-CrossAssassin-Scores: 1
Dear David,
in the Debian Bugtracking system we have a bug report against your
pslatex script. Here comes the original report, below is my comment and a
patch.
Juhapekka Tolvanen <juhtolv@cc.jyu.fi> wrote:
> Package: tetex-bin
> Version: 1.0.7+20021025-8
>
> It is okay to say:
>
> latex -file-line-error-style 0055.02.cmss.tex
>
> But if I say:
>
> pslatex -file-line-error-style 0055.02.cmss.tex
>
> I get:
>
> *************************************
> * Using LaTeX, with pslatex package *
> *************************************
>
> This is TeX, Version 3.14159 (Web2C 7.3.9)
> LaTeX2e <2001/06/01>
> Babel <v3.7h> and hyphenation patterns for american, french, german,
> ngerman, f
> innish, nohyphenation, loaded.
> ! I can't find file `-file-line-error-style'.
> <*> ...put\fi} \PSLATEXTMP -file-line-error-style
> 0055.02.cmss.tex
> Please type another input file name:
This is because the script calls (essentially)
latex \
"\AtBeginDocument{\RequirePackage{pslatex}}"\
[...etc.pp.]
\input "$@"
The following patch fixes this. However, I am not sure with regard to
portability (is [ -n .. ] or [ .. ] the better choice? Thomas, can you
check?
--- tetex-bin-CVS/texk/tetex/pslatex.orig Tue Apr 6 17:35:40 2004
+++ tetex-bin-CVS/texk/tetex/pslatex Tue Apr 6 17:41:52 2004
@@ -13,6 +13,18 @@
# hack around a bug in zsh:
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
+# we want to be able to use Options to latex:
+
+while [ "$*" ]; do
+ case $1 in
+ -*)
+ latexoptions="$latexoptions $1"
+ shift;;
+ *)
+ break;;
+ esac
+done
+
echo
echo "*************************************"
echo "* Using LaTeX, with pslatex package *"
@@ -22,7 +34,7 @@
# messing around with \PSLATEXTMP is for AUCTeX which calls
# documents via latex \nonstopmode \input{file}
-latex \
+latex $latexoptions \
"\AtBeginDocument{\RequirePackage{pslatex}}"\
"\def\PSLATEXTMP{\futurelet\PSLATEXTMP\PSLATEXTMPB}"\
"\def\PSLATEXTMPB{\ifx\PSLATEXTMP\nonstopmode\else\input\fi}"\
Regards, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: