3

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.

  • What exactly should receive color: just the chapter titles? the titles and chapter numbers? the tiles, chapter number and page numbers? Which document class are you using? Which options for classicthesis are you using? Please add that information to your question. – Gonzalo Medina Feb 21 '13 at 23:56
4

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

  • @Sego You're welcome! I'm glad I could help. – Gonzalo Medina Feb 22 '13 at 0:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.