General ⇒ Get Preface and Summary into ToC
Get Preface and Summary into ToC
I'm writing a report with automated generation of ToC, but the preface and summary are not in the ToC Preface and summary are both started using \section*{}, the other sections using \section{}. What could be going wrong?
Thank you.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Get Preface and Summary into ToC
\section* does not produce entries for the table of contents. You could use \section, or produce the contents entries yourself, by \addcontentsline or \addtocontents, for example
Code: Select all
\cleardoublepage
\addcontentsline{toc}{section}{Preface}
\section*{Preface}