General ⇒ Add "Chapter" to ToC entries except for Appendix
Add "Chapter" to ToC entries except for Appendix
Adding the word Chapter to each chapter heading in the table of contents has appeared numerous times, and this one worked,
http://www.latex-community.org/forum/vi ... 968&p=7608
except that I don't want chapters in my appendix renamed 'chapters' but still keep the appendix heading. In the end, I want my TOC to look like this
Chapter 1 Introduction
1.1
1.2
Chapter 2 Conclusion
Appendix A
A.1
A.2
Is this possible? (btw, I'm using Lyx and have been adding code as ERT)
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
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Add "Chapter" to ToC entries except for Appendix
Code: Select all
\renewcommand{\cftchappresnum}{Chapter }
\renewcommand{\cftchapaftersnum}{:}
\renewcommand{\cftchapnumwidth}{6em}
If that doesn't work, try posting an example so we can tinker with it ourselves.