General\section* appears in table of contents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mt226
Posts: 2
Joined: Sun May 23, 2010 12:39 pm

\section* appears in table of contents

Post by mt226 »

The code

Code: Select all

\documentclass[12pt,twoside]{amsbook}
\begin{document}
\tableofcontents
\section*{Sec 1}
\section{Sec 2}
\end{document}
produces Sec 1 unnumbered, as it should, but includes it in the table of contents, which seems to be the opposite of the documented behavior. What' wrong?

mt

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

\section* appears in table of contents

Post by Stefan Kottwitz »

Hi mt,

inclusion of starred headings in the table of contents is AMS style.
Regarding this, have a look at this topic on TeX.SX.

Stefan
LaTeX.org admin
Post Reply