25.1.1 \@dottedtocline



Used internally by LaTeX to format an entry line in the table of contents, list of figures, or list of tables. Authors do not directly enter \@dottedtocline commands.

This command is typically used by \l@section, \l@subsection, etc., to format the content lines. For example, the article.cls file contains these definitions:


In this example, \@dottedcline appears to have been given only three arguments. But tracing the internal code shows that it picks up the final text and pagenumber arguments in the synopsis from a call to \contentsline (see \contentsline).

Between the box for the title text of a section and the right margin box, these \@dottedtocline commands insert leaders, that is, evenly-spaced dots. The dot-to-dot space is given by the command \@dotsep. By default it is 4.5 (it is in math units, aka. mu, which are 1/18 em. Change it using \renewcommand, as in \renewcommand{\@dotsep}{3.5}.

In the standard book class, LaTeX does not use dotted leaders for the Part and Chapter table entries, and in the standard article class it does not use dotted leaders for Section entries.

Unofficial LaTeX2e reference manual