Bug#335537: marked as forwarded (tetex-extra: float.sty: \listof broken under amsart.cls)
Your message dated Tue, 25 Oct 2005 15:46:07 +0200
with message-id <87d5ltyajk.fsf@alhambra.kuesterei.ch>
has caused the Debian Bug report #335537,
regarding tetex-extra: float.sty: \listof broken under amsart.cls
to be marked as having been forwarded to the upstream software
author(s) Anselm Lingnau <anselm@anselms.net>, latex-bugs@latex-project.org.
(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 335537-forwarded) by bugs.debian.org; 25 Oct 2005 13:46:17 +0000
>From frank@kuesterei.ch Tue Oct 25 06:46:17 2005
Return-path: <frank@kuesterei.ch>
Received: from idmailgate1.unizh.ch [130.60.127.100]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EUP84-00016m-00; Tue, 25 Oct 2005 06:46:16 -0700
Received: from localhost.localdomain ([130.60.169.166])
by idmailgate1.unizh.ch (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id j9PDk89B020982;
Tue, 25 Oct 2005 15:46:12 +0200
Received: from localhost
([127.0.0.1] helo=localhost.localdomain ident=frank)
by localhost.localdomain with esmtp (Exim 4.50)
id 1EUP7w-0003uF-33; Tue, 25 Oct 2005 15:46:08 +0200
To: Anselm Lingnau <anselm@anselms.net>, latex-bugs@latex-project.org
Cc: 335537-forwarded@bugs.debian.org, Braun Gabor <braung@renyi.hu>
Subject: float.sty and amsart.cls do not cooperate
Reply-To: 335537@bugs.debian.org
X-Attribution: fant
X-Ehrenamt: http://www.langau.de
In-Reply-To: <[🔎] 20051024143557.GA22262@renyi.hu> (Braun Gabor's message of
"Mon, 24 Oct 2005 16:35:57 +0200")
References: <[🔎] 20051024143557.GA22262@renyi.hu>
From: =?iso-8859-1?q?Frank_K=FCster?= <frank@debian.org>
Date: Tue, 25 Oct 2005 15:46:07 +0200
Message-ID: <87d5ltyajk.fsf@alhambra.kuesterei.ch>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: by amavisd-new
Delivered-To: 335537-forwarded@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
Hi Anselm, hi Braun, please apologize the ugly latexbug format.=20=20
LaTeX2e bug report.
Template generated by latexbug.tex on 2005/10/25
Reports may be submitted by email to latex-bugs@latex-project.org
Please use the subject line:
Subject: float.sty and amsart.cls do not cooperate
To follow up an existing report, include the bug reference, e.g.
"latex/1234: ", preceding the subject text.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>Category: amslatex
>Synopsis: float.sty and amsart.cls do not cooperate
>Confidential: no
>Release: LaTeX2e <2003/12/01>
>Originator: < 335537@bugs.debian.org > ( < Debian teTeX maintainers (Fra=
nk K=FCster > )
>Organization:=20
>Environment:
Hyphenation: Babel <v3.8d> and hyphenation patterns for american, french, =
german, ngerman, bahasa, basque, bulgarian, catalan, croatian, czech, danis=
h, dutch, esperanto, estonian, finnish, greek, icelandic, irish, italian, l=
atin, magyar, norsk, polish, portuges, romanian, russian, serbian, slovak, =
slovene, spanish, swedish, turkish, ukrainian, nohyphenation, loaded.
\@TeXversion: undefined (Standard setting for TeX3.141 and later)
\@currdir: macro:->./
\input@path: undefined (Standard setting)
>Unformatted:
*** Initex configuration files
fonttext.cfg
2004/02/04 v2.3a LaTeX Kernel (Uncustomised text font setup)
fonttext.ltx
2004/02/04 v2.3a LaTeX Kernel (Text font setup)
omlenc.def
2004/02/22 v1.99f Standard LaTeX file
t1enc.def
2004/02/22 v1.99f Standard LaTeX file
ot1enc.def
2004/02/22 v1.99f Standard LaTeX file
omsenc.def
2004/02/22 v1.99f Standard LaTeX file
t1cmr.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmr.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmss.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmtt.fd
1999/05/25 v2.5h Standard LaTeX font definitions
fontmath.cfg
2004/02/04 v2.3a LaTeX Kernel (Uncustomised math font setup)
fontmath.ltx
2004/02/04 v2.3a LaTeX Kernel (Math font setup)
omlcmm.fd
1999/05/25 v2.5h Standard LaTeX font definitions
omscmsy.fd
1999/05/25 v2.5h Standard LaTeX font definitions
omxcmex.fd
1999/05/25 v2.5h Standard LaTeX font definitions
ucmr.fd
1999/05/25 v2.5h Standard LaTeX font definitions
preload.cfg
2004/02/04 v2.3a LaTeX Kernel (Uncustomised preload font setup)
preload.ltx
1998/08/17 v2.1g LaTeX Kernel (Font Preloading)
hyphen.cfg
2004/11/20 v3.8d Babel language switching mechanism
***
>Description:
Description of bug:
The included minimal input file produces an error; with article.cls
there is no problem. The error message is:
! Missing } inserted.
<inserted text>=20
}
l.5 \listof{float}{List of floats}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
?=20
Braun Gabor, who submitted this to the Debian Bugtracking system (see
http://bugs.debian.org/335537) suggested the following patch:
The following patch seems to work but is not perfect, because in the
list of floats one has dots between the name and page number, while
for table of contents, list of figures and tables amsart does not
put dots.
--- /usr/share/texmf/tex/latex/amscls/amsart.cls 2000-10-26 21:29:04.000000=
000 +0200
+++ amsart.cls 2005-10-24 16:15:45.622874360 +0200
@@ -1045,7 +1045,8 @@
\newswitch{lof}
\newswitch{lot}
\newcommand\contentsnamefont{\scshape}
-\def\@starttoc#1#2{\begingroup
+\newcommand\@dotsep{4.5}
+\def\ams@starttoc#1#2{\begingroup
\setTrue{#1}%
\par\removelastskip\vskip\z@skip
\@startsection{}\@M\z@{\linespacing\@plus\linespacing}%
@@ -1066,10 +1067,10 @@
\def\listfigurename{List of Figures}
\def\listtablename{List of Tables}
\def\tableofcontents{%
- \@starttoc{toc}\contentsname
+ \ams@starttoc{toc}\contentsname
}
-\def\listoffigures{\@starttoc{lof}\listfigurename}
-\def\listoftables{\@starttoc{lot}\listtablename}
+\def\listoffigures{\ams@starttoc{lof}\listfigurename}
+\def\listoftables{\ams@starttoc{lot}\listtablename}
\AtBeginDocument{%
\@for\@tempa:=3D-1,0,1,2,3\do{%
\@ifundefined{r@tocindent\@tempa}{%
The idea behind the patch is:
1) I guess that the major problem is that amsart.cls redefines
\@starttoc to have 2 mandatory arguments instead of 1.
Fix: use a new macro instead of \@starttoc.
(I used \ams@starttoc.)
2) float.sty and amsart.cls formats list of floats differently.
In particular float.sty seems to depend on \@dotsep being=20
defined. This is why I define \@dotsep.
Thank you, Frank
>How-To-Repeat:
Sample file which indicates the problem:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
\documentclass[12pt,a4paper]{amsart}
\usepackage{float}
\newfloat{float}{htb}{fl}
\begin{document}
\listof{float}{List of floats}
\begin{float}
=20=20
\caption{Empty float}
\label{fl:empty}
\end{float}
\end{document}
The log file from running LaTeX on the sample:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
see http://bugs.debian.org/335537=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
End of LaTeX2e bug report.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--=20
Frank K=FCster
Inst. f. Biochemie der Univ. Z=FCrich
Debian Developer
Reply to: