28

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?

2
  • 1
    Use the starred version \subsection*{title}. Jun 8, 2012 at 0:25
  • 9
    be aware that, while \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. Jun 8, 2012 at 16:43

1 Answer 1

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}

enter image description here

2
  • 1
    What if I want it to not suppress the numbering while hiding it from the TOC? Aug 15, 2023 at 15:56
  • \setcounter{tocdepth}{1}
    – JoudaBouda
    Nov 25, 2023 at 1:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .