Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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
add comment

1 Answer

up vote 4 down vote accepted

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

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.