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.

1
  • 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. Feb 21, 2013 at 23:56

1 Answer 1

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

1
  • @Sego You're welcome! I'm glad I could help. Feb 22, 2013 at 0:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .