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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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