Tags

, , ,

Get rid of dots in the LaTeX table of contents (toc):

\makeatletter
        \renewcommand{\@dotsep}{10000}
\makeatother

 

Control horizontal spacing in the TOC entries:

\makeatletter
     \renewcommand*\l@section{\@dottedtocline{1}{0em}{1.8em}}
     \renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.0em}}
     \renewcommand*\l@subsubsection{\@dottedtocline{3}{4.3em}{3.0em}}
\makeatother

The first argument (with 1, 2, and 3) indicates section (1), subsection (2) or subsubsection (3). The second argument indicates the indent from the left and the third the separation between the number and the text.

Note: Put these in the “preamble” of your LaTeX source code.

Advertisements