[Tex/LaTex] Customize TOC (colors) of classicthesis

classicthesiscolortable of contents

I am using classicthesis as a template for my thesis. The thing is that I want to put a different color for the chapters on the table of contents.
Example:

CONTENTS

1 Introduction (on color red)

1.1 Motive

1.2 Anything

Thanks! I hope you can help me.

Best Answer

Since classicthesis internally uses the tocloft package, you can redefine \cftchapfont and \cftchappagefont to add the desired color; a little example:

\documentclass{scrbook}
\usepackage{xcolor}
\usepackage{classicthesis}

\renewcommand\cftchapfont{\normalfont\color{red}}
\renewcommand\cftchappagefont{\normalfont\color{red}}

\begin{document}

\tableofcontents
\chapter{Introduction}
\section{Test Section}
\subsection{Test Subsection}
\chapter{Another Chapter}
\section{Test Section}

\end{document}

An image of the resulting ToC:

enter image description here

Related Question