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
Text Formatting ⇒ reflecting un-numbered sections in ToC
NEW: TikZ book now 40% off at Amazon.com for a short time.

reflecting un-numbered sections in ToC
you could set the secnumdepth counter to zero (nothing below chapter will be numbered in text)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 ...
Code: Select all
\documentclass{report}
\setcounter{secnumdepth}{0}
\begin{document}
\tableofcontents
\chapter{foo}
\section{bar}
\end{document}
Rainer
-
- Posts: 21
- Joined: Mon Apr 21, 2008 3:50 am
Re: reflecting un-numbered sections in ToC
Thanks - this looks do-able -
- Sekantombi
- Sekantombi