Despite following many suggestions on the net, I have the following issue. I am using TeXnicCenter and MiKTeX. [I have posted the same on Latex Community Forum]. I have not used/tried the tocloft
package yet. I am currently using the thesis2
class.
Objective: In my table of contents, I want a text "Chapter" without the dotted lines and the page number. Eg.,
============================================
Table of Contents
Acknowledgments ................ ii
Abstract ........................ v
Chapter
1 Introduction .................. 1
1.1 Network Design .............. 1
1.1.1 Steiner Tree Problems ..... 2
============================================
Trial-1: When I do \addcontentsline{toc}{chapter}{\protect Chapter}
, it adds the required text (Chapter) to toc. But, the dotted lines and page number is present.
Trial-2: The same happens when I do \addcontentsline{toc}{chapter}{\protect \numberline{}Chapter}
.
Q1) Also, I want only one-line spacing between "Chapter" and "1 Introduction". Currently, I get 2 line-spacing (like between Acknowledgments and Abstract). How do I get rid of that 2 line spacing and make it 1-line spacing?
Best Answer
Use
\addtocontents
instead of\addcontentsline
, and add positive and negative vertical space as appropriate. (Note: I used thethesis2
class file available here.)