[texhax] Obsolete \centerline command used in amsbook class

Ari Meir Brodsky ari.brodsky at utoronto.ca
Wed Sep 12 22:37:19 CEST 2012


The l2tabu document
(http://mirror.ctan.org/info/l2tabu/english/l2tabuen.pdf, section 2.1.3)
declares the \centerline command to be an obsolete TeX command that should
not be used in LaTeX.  However, the \chapter command of amsbook.cls uses
\centerline.  The following minimal example generates an error (where we use
the "nag" package to detect obsolete commands from l2tabu):

--------------------
\RequirePackage[l2tabu, abort]{nag}
\documentclass{amsbook}
\begin{document}

\chapter{Testing Nag with amsbook}
\end{document}
--------------------------

Is this a bug in amsbook?  Should it be corrected?

-Ari

-----------------------
Ari M. Brodsky
ari.brodsky at utoronto.ca




More information about the texhax mailing list