Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breaking long section titles in table of contents

Tags:

latex

Is it possible to tune LaTeX to break automatically long (sub-) section titles in the table of contents?

like image 943
V.Shevchishin Avatar asked May 16 '10 23:05

V.Shevchishin


1 Answers

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 \\.

like image 99
Etaoin Avatar answered Sep 21 '22 04:09

Etaoin