% Give sensible contents name for use with tocloft
\def\contentsname{Contents}
\def\cfttoctitlefont{\Huge\sl\hfill}
\def\cftaftertoctitle{\hfill}
%
% this is from the tocloft manual
\renewcommand{\@tocrmarg}{2.55em plus1fil}
%\renewcommand{\@tocrmarg}{-2.5em}% default is +2.55em Cranking this to -2.5 seemed to make no diff
%
\setlength\cftbeforechapskip{2pt}
\setlength\cftpartindent{-38pt}% put part number into left margin
\setlength\cftpartnumwidth{38pt}% align part heading with left marg
% making chapindent match the sum of partindent and partnumwidth might look nice
\setlength\cftchapindent{0pt}% which is what is done here
\setlength\cftchapnumwidth{22pt}
\cftsetpnumwidth{27pt}
\cftsetrmarg{47pt}% this should be larger than  \cftsetpnumwidth
%
% Sat 10/5/03: make parts be just bold, not large
%\newcommand{\cftpartfont}{\large\bfseries}
\renewcommand{\cftpartfont}{\bfseries}
\renewcommand{\cftpartpagefont}{\bfseries}
%
% This makes some vertical space after Parts
\renewcommand{\cftpartafterpnum}{\rule[-4mm]{0mm}{0mm}}
% switch on dots in parts
\renewcommand{\cftpartdotsep}{\cftdotsep}
% switch on dots in chapters
\renewcommand{\cftchapdotsep}{\cftdotsep}
%
% These change the font for chapters to nothing
\renewcommand{\cftchapfont}{}
\renewcommand{\cftchappagefont}{}
%
% This changes the font for the chapter dots from bf to nothing
\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
% switch off dots
% \renewcommand{\cftdotsep}{\cftnodots}
%
% To switch off all numbers in the toc, (but not the part numbers!)
%\renewcommand{\numberline}[1]{%
%  \hb@xt@\@tempdima{\@cftbsnum \@cftasnum\hfil}\@cftasnumb}
% end
