LaTeX forum ⇒ Text Formattingreflecting 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

Postby Sekantombi » Thu Sep 24, 2015 2:22 am

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

Postby rais » Thu Sep 24, 2015 11:28 am

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)
  1. \documentclass{report}
  2. \setcounter{secnumdepth}{0}
  3. \begin{document}
  4. \tableofcontents
  5. \chapter{foo}
  6. \section{bar}
  7. \end{document}

KR
Rainer

Sekantombi
Posts: 21
Joined: Mon Apr 21, 2008 3:50 am

Postby Sekantombi » Thu Oct 01, 2015 12:00 am

Thanks - this looks do-able -

- Sekantombi


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 3 guests