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).
Best Answer
Don't use
\subsection*
everywhere, if you never want subsections to be numbered. Instead, addExample with
article
, but withreport
orbook
(or most of the other classes)