I'm writing a pretty long document, and at some point this happened with the table of contents:
I would like to be able to force a line break between 'complex' and 'space', either directly or by imposing suitable limits on line lengths or the separation between the lines and the numbers, or any such relevant lengths.
A minimal working example is below,
\documentclass[pdftex,11pt,twoside,a4paper]{report}
\usepackage[a4paper, left=3cm, right=3cm, top=3cm, bottom=2cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{lmodern} % load a font with all the characters
\usepackage[colorlinks,linkcolor=blue,final]{hyperref}
\usepackage{tocloft}
\usepackage{lipsum}
%%% Headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{14pt}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{Electron dynamics in complex space and complex time}
\fancyhead[LO]{\nouppercase{\leftmark}}
\fancyhead[RO]{\thepage}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\begin{document}
\tableofcontents
\setcounter{page}{100}
\chapter{Quantum orbits as trajectories through complex time and complex space}
\lipsum[1-16]
\end{document}
including the headers in use in the document; obviously all of the non-lipsum packages are necessary in the larger document. How can I fix this ugliness?


\chapter[Quantum orbits as trajectories]{Quantum orbits .... long title}??? Such long titles appear in the headers too, unless you would usememoirwhere you can specify the header title too, in addition to the ToC entry and the heading title – Sep 07 '16 at 17:51fontencpackage. What I want works, it's just LaTeX trying to bully me into thinking it knows better, even though it demonstrably knows better than what it is saying now that it thinks it knows better. – E.P. Sep 07 '16 at 18:23