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?
1 Answer
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}
-
1What if I want it to not suppress the numbering while hiding it from the TOC? Aug 15 at 15:56
-
\subsection*{title}
.\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.