14

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}}}

2 Answers 2

14

Add dottedtoc to the options when calling classicthesis:

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

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

3
  • Perfect! Thank you egreg. For everybody else: I added the parameter to \documentclass[..., dottedtoc, ...].
    – JJD
    Commented Apr 4, 2012 at 13:52
  • 1
    @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 Commented Sep 11, 2013 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
    Commented Sep 11, 2013 at 11:39
1

For Classicthesis version 4.6, change dottedtoc=false to true in \PassOptionsToPackage{...}{classicthesis} in the classicthesis-config.tex file, where the ... represents the current options passed.

You must log in to answer this question.

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