Hi,
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.
General ⇒ Get Preface and Summary into ToC
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Get Preface and Summary into ToC
Hi,
\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
Stefan
\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}
LaTeX.org admin
Re: Get Preface and Summary into ToC
Thank you. That works.