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 want to use different font and size for chapters and sections in the table of contents generated by toc. How should I customize the toc?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Use the tocloft package, e.g.,

\makeatletter
\@ifpackageloaded{subfig}  % don't forget that tocloft and subfig interact (RTM)
  {\usepackage[titles,subfigure]{tocloft}}
  {\usepackage[titles]{tocloft}}
 \makeatother

Then define your customisations via commands like

\renewcommand{\cftsecpresnum}{...}
\renewcommand{\cftsecaftersnum}{...}

and

\renewcommand{\cftsecpagefont}{...}

Basically it's a case of wading through tocloft's extensive documentation then getting down to lots of experimenting to see what's possible (pretty much anything) and what you need to write to make it happen as you'd like.

share|improve this answer
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.