[Tex/LaTex] Customizing Table of Contents Formatting

table of contentstitlesectocloft

For the most part, the default formatting for the ToC, LoF, and LoT is fine. But I need to add an extra line (university's requirements for my thesis) between each numbered entry. In order to do this, I used the titletoc package and added the extra line with the following code:

\titlecontents{table}
[7.25em]
{\contentslabel[\thecontentslabel.]{4em}}
{\hspace*{-4pt}}
{}
{\titlerule*[0.5em]{.}\hspace*{0.0em}\contentspage}[\vspace{1em}]

However, when I do this the first line in the ToC, LoF, or LoT is slightly off. That is, the first line is either a little to the left (negative space) or a little to the right (positive space) of the other following lines in a multi-line caption. I would like the first line to be perfectly flush with the following lines like it was before I used titletoc. I tried adjusting the hspace but it is never just right.

Any ideas how I can get around this?

WARNING: I cannot use tocloft as it breaks my university's LaTeX template.

Thanks in advance.

Best Answer

Using the title option of the tocloft package does not break my university's template. This option uses the normal LaTeX mechanisms for creating the titles as is stated in the package's documentation. After finding/trying that, I was able to format my thesis to the exact specifications.

\setlength{\cftbeforefigskip}{1em}
\setlength{\cftbeforetabskip}{1em}
\renewcommand{\cftfigaftersnum}{.}
\renewcommand{\cfttabaftersnum}{.}
\setlength{\cftchapindent}{\cfttabindent}
\setlength{\cftsecindent}{2\cftchapindent}
\setlength{\cftsubsecindent}{2\cftchapindent}
\setlength{\cftsecnumwidth}{\cftsubsecnumwidth}
\renewcommand{\cftchapfont}{\normalfont}
\renewcommand{\cftchappagefont}{\normalfont}