tags:

views:

25

answers:

1

Hello, I'm wondering why in my toc shown below, I have different dots style in the most detailed subsections ?

alt text

All I've used is:

\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
....
\tableofcontents

How can I change the style to be the same at all levels of depth ?

Regards

A: 

It really depends on the document class you are using; book, article etc have a preset layout for the TOC.

Since you said you are writing your Thesis, is it possible that you are using a style given by the college/university?

There is still a way to change it. You can use the package tocloft,

\usepackage{tocloft}

which has a method called \@dotsep to change the amount of space between the dots. Although I do not know if it will work in this case as you only define it once for the whole TOC and if it is relative to what you have it may just increase your dots relative to the way it is already placed.

But here is the code anyways,

\makeatletter \renewcommand{\@dotsep}{4.5} \makeatother
\tableofcontents

It must be placed before your toc command and 4.5 represents the distance.

But like I said this depends on your document class and its style class. Here is the link to the package documentation tocloft.pdf. There are more customizations available which may work for you better.

nEm
Thanks for the clue. I had to actually set something like that in my custom style file: \renewcommand{\cftsubsubsecleader}{\cftdotfill{\cftdot}}
Jarek Waliszko
Yes, there were quite a few customizations and I wasn't sure what document class you were using so I just picked the most obvious option which was dotsep but I'm glad it worked out
nEm