My document has three "parts" (using the \part
command), and chapters, and sections. When I generate my table of contents (\tableofcontents
), all the chapters and lower have dots between the name of the chapter/section/etc. and the page number. However, the parts do not have dots.
How do I fix this?
Here is the code in my cls that pertains to the table of contents, please advise how to make it so that parts also have dots.
\renewcommand\contentsname{Table of Contents}
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus 0.2em \@minus 0.2em
\setlength\@tempdima{1.5em}
\begingroup
\leftskip \z@ \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent \z@
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak
\leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}
\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\let\thesis@tableofcontents=\tableofcontents
\def\tableofcontents{{\singlespacing\thesis@tableofcontents}}
The document class uiucthesis2009
is used and this class based on book
:
\LoadClass{book}