The easiest way is to use the
titletoc package with an appropriate option.
Code: Select all
\documentclass[11pt,english]{book}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[dotinlabels]{titletoc}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\blinddocument
\end{document}
As alternative you can use the
tocloft package. But this solution needs explicit redefinitions for every heading level.
Code: Select all
\documentclass[11pt,english]{book}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{tocloft}
\usepackage{blindtext}
\renewcommand{\cftchapaftersnum}{.}
\renewcommand{\cftsecaftersnum}{.}
\renewcommand{\cftsubsecaftersnum}{.}
%\renewcommand{\cftsubsubsecaftersnum}{.}
\begin{document}
\tableofcontents
\blinddocument
\end{document}
The
blindtext package in both cases is only for creating dummy text, thus is not part of the solution.