Text Formatting ⇒ reflecting un-numbered sections in ToC
-
- Posts: 21
- Joined: Mon Apr 21, 2008 3:50 am
reflecting un-numbered sections in ToC
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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
- Sekantombi