# Customize TOC (page numbers) of classicthesis

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:

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

Add `dottedtoc` to the options when calling `classicthesis`:
``````\usepackage[...,dottedtoc]{classicthesis}
where `...` stands for the present options you're using.
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