I'm using the document class hausarbeit-jura (a document class for jura student papers).
The number of my 8th section (roman numbering "VIII") overlaps with the title of the section in the table of contents.
I already had a look at Overlapping numbers and titles in toc but when I add \addtolength{\cftsecnumwidth}{10pt}
to my document I get the error message:
Undefined control sequence \addtolength{\cftsecnumwidth}{10pt}
Missing number, treated as zero \section
Illegal unit of measure (pt inserted) \section
Minimal working example:
\documentclass[12pt,utf8,headline,headlinetitlepageleft,nosuperscriptedition]{hausarbeit-jura}
\begin{document}
\tableofcontents
\addtolength{\cftsecnumwidth}{10pt}
\section{TEXT}
\section{TEXT}
\section{TEXT}
\section{TEXT}
\section{TEXT}
\section{TEXT}
\section{TEXT}
\section{TEXT}
\section{TEXT}
\end{document}
Any ideas how to fix this? Thanks to everyone in advance! :-)
\cftsecnumwidth
you need another package (tocloft
iirc). – TeXnician Jun 3 '18 at 14:10tocloft
. You can use\AtBeginDocument{\sectionnumwidth=2cm}
somewhere in your preamble. Same should be true for other levels. – Skillmon Jun 3 '18 at 15:43