Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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
add comment

1 Answer

up vote 2 down vote accepted

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

share|improve this answer
    
Thank you! Gonzalo Medina. –  Sego Feb 22 '13 at 0:08
    
@Sego You're welcome! I'm glad I could help. –  Gonzalo Medina Feb 22 '13 at 0:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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