9

ToC: How to no-indent the second line of large entries?

I'm using the scrreprt class, typesetting a book with only 120mm of paperwidth.

lockstep
  • 250,273
Steve
  • 93
  • Are you using tocloft or tocstyle? Both are ToC-customizing packages, and they are incompatible with each other. – lockstep Sep 13 '11 at 16:46
  • I known that in tocloft, there's a \cftXindent, to controls the indentation of an entry from the left margin, and that can be changed using \setlength, but i don't know where to put that... – Steve Sep 13 '11 at 16:58

1 Answers1

8

Personally, I don't like dropping the indentation, but here you go. (1.5em is only a guess.)

\documentclass{scrreprt}

\usepackage{tocloft}
\setlength{\cftchapnumwidth}{0pt}
\renewcommand{\cftchapaftersnumb}{\hspace{1.5em}}

\begin{document}

\tableofcontents

\chapter{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut
    purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.}

\end{document}

enter image description here

lockstep
  • 250,273
  • Great!. This is exactly what i need. In fact, i keep the indentation for sections, so your solution (on chapters, i see) provides me a balanced solution. thanks a lot. – Steve Sep 13 '11 at 17:27
  • @Steve: You're welcome -- and don't forget to upvote and accept my answer. ;-) – lockstep Sep 13 '11 at 17:33