I'm using the report
style.
I'm using \subsection*
to suppress the numbers that would otherwise appear before my subsection text.
I'm generating a table of contents using setcounter{tocdepth}{2}
But the subsection numbers are appearing in the generated table of contents.
Is there a way to suppress the numbers for the subsections in the table of contents, like you can suppress them using \subsection*
rather than \subsection?
(I want the chapter and section numbers to appear for new chapters and sections, as they currently are).
\setcounter{tocdepth}{1}
? Or do you want thesubsection
's name ontoc
but not numbered there but numbered on the text?\subsection*
everywhere; just say\setcounter{secnumdepth}{1}
before\begin{document}
and use\subsection
normally. If you want the subsections in the TOC, add also\setcounter{tocdepth}{2}