I tested the code, and it works on my system (TeXLive 2007). Do you use exactly the same code?
I got it! For some reason, I still had \tableofcontents{} instead of just \tableofcontents.
Thanks a bunch phi ... I never would have figured this one out on my own. It's great to learn new tricks like ...
Search found 6 matches
- Wed Nov 19, 2008 10:31 pm
- Forum: General
- Topic: Adding "Chapter" and "Appendix" to ToC
- Replies: 15
- Views: 13220
- Wed Nov 19, 2008 9:04 pm
- Forum: General
- Topic: Adding "Chapter" and "Appendix" to ToC
- Replies: 15
- Views: 13220
Adding "Chapter" and "Appendix" to ToC
phi ...
I tried that, and now my ToC looks like:
1:_____Introduction
2:_____Chapter Name
.
.
.
A:_____Appendix Name
with large spaces between the number and chapter name, and nothing before the number.
EDIT: In the .toc file, I note that it adds
\renewcommand *\cftchappresnum {Chapter ...
I tried that, and now my ToC looks like:
1:_____Introduction
2:_____Chapter Name
.
.
.
A:_____Appendix Name
with large spaces between the number and chapter name, and nothing before the number.
EDIT: In the .toc file, I note that it adds
\renewcommand *\cftchappresnum {Chapter ...
- Tue Nov 18, 2008 10:32 pm
- Forum: General
- Topic: Adding "Chapter" and "Appendix" to ToC
- Replies: 15
- Views: 13220
Re: Adding "Chapter" and "Appendix" to ToC
phi ...
I tried that, and while it seemed like a great idea, it did not work. Still have "Chapter A" in the ToC.
I tried that, and while it seemed like a great idea, it did not work. Still have "Chapter A" in the ToC.
- Tue Nov 18, 2008 4:36 pm
- Forum: General
- Topic: Adding "Chapter" and "Appendix" to ToC
- Replies: 15
- Views: 13220
Adding "Chapter" and "Appendix" to ToC
Ok, I found this thread very useful. I used the following code:
\usepackage{tocloft}
\renewcommand{\cftchapfont}{\bfseries}
\renewcommand{\cftchappagefont}{\bfseries}
\renewcommand{\cftchappresnum}{Chapter }
\renewcommand{\cftchapaftersnum}{:}
\renewcommand{\cftchapnumwidth}{6em}
\begin ...
\usepackage{tocloft}
\renewcommand{\cftchapfont}{\bfseries}
\renewcommand{\cftchappagefont}{\bfseries}
\renewcommand{\cftchappresnum}{Chapter }
\renewcommand{\cftchapaftersnum}{:}
\renewcommand{\cftchapnumwidth}{6em}
\begin ...
- Tue Nov 18, 2008 3:39 pm
- Forum: General
- Topic: Adding "Chapter" and "Appendix" to ToC
- Replies: 15
- Views: 13220
Re: Adding "Chapter" and "Appendix" to ToC
Great! For some reason I had assumed tocloft was an addon. I'll give it a try and see what happens.
- Mon Nov 17, 2008 10:37 pm
- Forum: General
- Topic: Adding "Chapter" and "Appendix" to ToC
- Replies: 15
- Views: 13220
Adding "Chapter" and "Appendix" to ToC
Hello, I have just joined and I'm having trouble finding a solution to my problem.
For my Master's Thesis, I am apparently required to have the words "Chapter" and "Appendix" before the respective number and letter on the Table of Contents. For example "Chapter 1 - Introduction" instead of "1 ...
For my Master's Thesis, I am apparently required to have the words "Chapter" and "Appendix" before the respective number and letter on the Table of Contents. For example "Chapter 1 - Introduction" instead of "1 ...