LyX ⇒ Show unnumbered Chapters in the ToC
Show unnumbered Chapters in the ToC
I am finishing my PhD thesis and I have a little problem: I don't want to number the Introduction and the conclusions. But if don't do it, they do not appear on the table of content.
How can I make appear these unnumbered chapters in the table of content?
I am using LyX 2.0.0 and an example is attached.
Thank you in advance for any help you can give
Hélie
- Attachments
-
- example.zip
- (870 Bytes) Downloaded 235 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Show unnumbered Chapters in the ToC
Code: Select all
\documentclass{article}
\begin{document}
\tableofcontents
\section*{Without number}\addcontentsline{toc}{section}{Ohne Nummer}
\section{With number}
\newcommand*\sectotoc[1]{\section*{#1}\addcontentsline{toc}{section}{#1}}
\sectotoc{Again without number}
\end{document}
Re: Show unnumbered Chapters in the ToC
In Lyx, you just have to insert the code in an ERT \addcontentsline{toc}{chapter}{General Introduction}