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 a study report. I would like to customize the table of contents. Here is a screen shot of another TOC that looks like what I am trying to accomplish:

Table of contents example

I prefer to have the page numbers on the right side and dots inbetween, like in the screen shot of the TOC. - I found the definition of the classicthesis style in FrontBackmatter/Contents.tex. However, I cannot see how to customize it?!

\refstepcounter{dummy}
\pdfbookmark[1]{\contentsname}{tableofcontents}
\setcounter{tocdepth}{2} % <-- 2 includes up to subsections in the ToC
\setcounter{secnumdepth}{3} % <-- 3 numbers up to subsubsections
\manualmark
\markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}
\tableofcontents
\automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

Add dottedtoc to the options when calling classicthesis:

\usepackage[...,dottedtoc]{classicthesis}

where ... stands for the present options you're using.

share|improve this answer
    
Perfect! Thank you egreg. For everybody else: I added the parameter to \documentclass[..., dottedtoc, ...]. –  JJD Apr 4 '12 at 13:52
    
@JJD I added the option to documentclass. Now the page numbers are aligned right like I want them to! But there are still no dots in between, even if I try tex.stackexchange.com/a/7352/1660 –  wrongusername Sep 11 '13 at 5:43
    
@wrongusername I may depend on the version of classicthesis you are using. I saw that the CHANGES file has some notes about using the option dottedtoc. Please check this. I used version 4.0. –  JJD Sep 11 '13 at 11:39
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.