I want to add the word "Part" before my entries in the toc.
I read here that I could use \renewcommand\cftpartpresnum{Part~}. I have tried adding making some modifications to the partpresnum and partleader command but it did not work.
I am using the classicthesis style, which defines the toc like this for parts: (The full style file can be seen here)
\ifthenelse{\boolean{@parts}}%
{%
\renewcommand{\thepart}{\roman{part}}%
\renewcommand{\cftpartpresnum}{\scshape}% \MakeTextLowercase
% \renewcommand{\cftpartaftersnum}{\cftchapaftersnum}%
% \renewcommand{\cftpartaftersnumb}{\quad}%
% \setlength{\cftpartnumwidth}{\cftpartnumwidth}
\renewcommand{\cftpartfont}{\color{Maroon}\normalfont}%
\renewcommand{\cftpartpagefont}{\normalfont}%
\ifthenelse{\boolean{@dottedtoc}}{\relax}%
{%
\renewcommand{\cftpartleader}{\hspace{1.5em}}%
\renewcommand{\cftpartafterpnum}{\cftparfillskip}%
}%
\setlength{\cftbeforepartskip}{1em}%
\setlength{\cftbeforechapskip}{.1em}%
\setlength{\beforebibskip}{\cftbeforepartskip}%
}{\relax}
% chapters
\ifthenelse{\boolean{@nochapters}}%
{\relax}%
{%
\renewcommand{\cftchappresnum}{\scshape\MakeTextLowercase}%
\renewcommand{\cftchapfont}{\normalfont}%
\renewcommand{\cftchappagefont}{\normalfont}%
\ifthenelse{\boolean{@dottedtoc}}{\relax}%
{%
\renewcommand{\cftchapleader}{\hspace{1.5em}}%
\renewcommand{\cftchapafterpnum}{\cftparfillskip}%
}
%\setlength{\cftbeforechapskip}{.1em}%
}
... see style file for full code.
Any suggestions? Am I trying to make changes in the right place even?
The following is a reduced example. I tried using only a portion of the style file, but I couldn't get that working.
\documentclass[parskip=half,10pt,twoside]{scrbook}
\usepackage{classicthesis}
\begin{document}
\tableofcontents
\part{First test part}
\chapter{Test chapter}
\chapter{Test chapter}
\part{Second test part}
\chapter{Test chapter}
\chapter{Test chapter}
\end{document}


\documentclass{...}and ending with\end{document}. As such, your example is something 'cut out' and users have to apply their chrystal ball in order to guess what comes before and after it ;-) – Jul 02 '14 at 10:54