tags:

views:

69

answers:

1

Hi!

Is it possible to tune LaTeX to break automatically long (sub)section titles in the Table of Contents?

+3  A: 

You can manually set the title that appears in the TOC like this:

\section[Lorem ipsum]{Lorem ipsum dolor sit amet}

That way the "long title" appears on the section itself, and the "short title" appears in the TOC. I haven't tried it, but it might be possible to use the same number of words in the square brackets but insert manual line-breaks with \\.

Etaoin
Use \newline instead of \\: some document classes, such as memoir, will lay out \\ badly in the document body's section heads.
Charles Stewart