Compiling with pdflatex.
I want to increase the numwidth in TOC of part entry in article class to make titles of parts aligned to one line.
The minimal example:
Code: Select all
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{tocloft}
\setlength{\cftpartnumwidth}{4em}
\cftsetindents{part}{0em}{4em}
\begin{document}
\tableofcontents
\part{Part1}
\part{Part2}
\part{Part3}
\part{Part4}
\part{Part5}
\part{Part6}
\end{document}
Code: Select all
\setlength{\cftpartnumwidth}{4em}
\cftsetindents{part}{0em}{4em}
While reading tocloft documentation it is stated:
However while reading tocloft.sty I see no difference between definitions of \renewcommand*{\l@part}[2] and \renewcommand*{\l@section}[2] .There is no explicit numwidth for a part; instead a gap of 1em is put between the number and the title text.
All modifications to tocloft.sty concerning partnumwidth fail to deliver.
Any ideas? I will be grateful for help!