How can I add the word "Part" to the part entry and "Chapter" to chapter entries in the ToC?
\documentclass[chapterprefix]{scrbook}
\usepackage[english]{babel}
\begin{document}
\tableofcontents
\part{This is a part}
\chapter{This is a chapter}
\section{This is a section}
\end{document}
Best Answer
Do not forget to run LaTeX at least three times when you are using the
tocindentauto
option from thetocstyle
package (see p. 3 of the manual):