## LaTeX forum ⇒ Text Formatting ⇒ reflecting un-numbered sections in ToC Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Sekantombi
Posts: 21
Joined: Mon Apr 21, 2008 3:50 am

### reflecting un-numbered sections in ToC

Dear Colleagues -

How do you arrange things so that you have un-numbered sections in LaTeX and still have them reflected in the ToC?

Of course, would still like to have numbered chapters ...

Many thanks -

-Sekantombi

Tags:

rais
Posts: 146
Joined: Sun Nov 16, 2014 8:51 pm
Sekantombi wrote:How do you arrange things so that you have un-numbered sections in LaTeX and still have them reflected in the ToC?

Of course, would still like to have numbered chapters ...

you could set the secnumdepth counter to zero (nothing below chapter will be numbered in text)
\documentclass{report}\setcounter{secnumdepth}{0}\begin{document}\tableofcontents\chapter{foo}\section{bar}\end{document}

KR
Rainer

Sekantombi
Posts: 21
Joined: Mon Apr 21, 2008 3:50 am
Thanks - this looks do-able -

- Sekantombi