[Tex/LaTex] Table of Contents: Customize space between dots before page number

koma-scriptpage-numberingspacingtable of contents

I am writing a small KOMA-Script scrartcl document with multiple sections. In the table of contents, LaTeX fills the current line with dots between the end of the section name and the page number. Is there any way to customize this behavior? I would like to reduce the space between the single dots (i.e. use more dots in the same space).

Best Answer

For dotted TOC lines, standard LaTeX and also KOMA-Script use the internal macro \@dotsep which specifies that space in mu. Its original value is 4.5.

You could adjust it this way:

\makeatletter
\renewcommand*{\@dotsep}{1}
\makeatother