I have long titles for my document chapter. These titles are going beyond the right margin.
How to word wrap section and subsection headings in toc?
I have long titles for my document chapter. These titles are going beyond the right margin.
How to word wrap section and subsection headings in toc?
You could want to change the layout of the TOC page (only) in order to avoid titles split.
The geometrey package allows you to modify temporary a page margins with these commands (I just put left and right margins because it relevant for your issue but there is also top and down margin options):
\newgeometry{lmargin=1cm,rmargin=1cm}
\tableofcontents
\newpage
\restoregeometry
You should be also aware that there is a way to define short versions of titles for the TOC. In this case, long versions are printed in the body of the document but the TOC shows shorter ones.
\chapter[Short title]{My very very very long title useless which does not fit in my toc page}
breaklinksoption. – Thorsten Donig Nov 29 '13 at 18:05