How do I get a sub \subsection{title} I choose not not appear in the ToC and not interfere with the counting of the other \subsection's?
Asked
Active
Viewed 4.8k times
28
Werner
- 603,163
MathOverview
- 2,921
1 Answers
24
You can use the starred version of the sectioning command; this suppresses the numbering, the inclusion in the ToC and the updating of marks for possible header/footers:
\documentclass{article}
\begin{document}
\tableofcontents
\section{Test section}
\subsection{Test subsection one}
\subsection*{Unnumbered subsection}
\subsection{Test subsection two}
\end{document}

Gonzalo Medina
- 505,128
-
1What if I want it to not suppress the numbering while hiding it from the TOC? – Undertherainbow Aug 15 '23 at 15:56
-
\subsection*{title}. – Gonzalo Medina Jun 08 '12 at 00:25\subsection*always suppresses the numbering, whether or not it also suppresses an entry from the toc depends on what document class you're using. ams classes include starred (sub)sections in the toc, and other tactics are needed. see the question fix-for-amsart-cls-tableofcontents-bug-regarding-starred-sections for details. – barbara beeton Jun 08 '12 at 16:43