0

When I use \section*{Introduction} it hides the section from the table of context, but it also removes the numbering (i.e. it shows Introduction instead of 1. Introduction). How do I keep the numbering while removing the section from the table fo context?

1 Answer 1

1

The tocdepth counter controls what is shown in the ToC.

% sectocprob.tex SE 572919
\documentclass{report}
\setcounter{tocdepth}{0} % only chapters and above in ToC
\begin{document}
\tableofcontents
\chapter{A chapter}
\section{A section}
\end{document}

You must log in to answer this question.

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