I need to format my table of contents so that it has a series of dots between chapter titles and the page each chapter appears on. Currently only the subsections in my table of contents have these dots.
Because I'm required to use a pre-made class file (which I can alter, to a small extent), I think I'm not able to use the package tocloft without massive modification, as this package seems to override much of the page formatting the required class file specifies. (For instance it changes line spacing, doesn't put the toc on a new page, leads to bold chapter titles having bold lines of dots, and doesn't add dots after the "References" entry.) The formatting of my toc is ok aside from the said issue, so if possible I want to make as few changes as possible.
The relevant code for the table of contents in the class file, as far as I can see, is:
Code: Select all
\newcommand{\th@ToCpage}{%
\if@shortToC%
\@THshortChaptertrue%
\typeout{Making Short ToC...}%
\fi%
\@thInHeadingfalse%
\thispagestyle{plain}%
{\pagestyle{plain}%
\doublespacing%
\tableofcontents}%
}
If it would be helpful for me to paste more, there's plenty.
Thanks...
Also, someone had a similar problem but they were using the amsbook class, but I don't know how compatible the answer is, as it doesn't work for me. http://www.latex-community.org/forum/vi ... =47&t=6636.
In case anyone else needs these dots after chapter titles, but doesn't have other formatting constraints, a command is:
Code: Select all
\usepackage{tocloft}
\renewcommand{\cftchapdotsep}{\cftdotsep}