3

I am using the following to suppress the numbering of \sections:

\makeatletter
\renewcommand\@seccntformat[1]{}
\makeatother

But in my \tableofcontents, the section numbers still appear. Is there a way to remove them?

1
  • do you want section numbers suppressed everywhere, or only in the toc? (if everywhere, david's answer is good. if toc only, things get a bit more complicated.) May 15 '13 at 20:34
6

don't do that, instead do

\setcounter{secnumdepth}{0}

this counter controls the level at which LaTeX numbers headings.

1
  • @David Carlisle, I implemented this with success as well. However, beside each section title in the body of the text, "0." appears. Is there any way to remove this?
    – Francesco
    Sep 11 '17 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.