Hi I need to know how to split \section{mylongtitle} onto two lines for my \tableofcontents ? - The \tableofcontents for \section{mylongtitle} runs off the right hand side of page at the moment. The piece of work is due in later today, so I'ld appreciate prompt replies!
The exact title would help. My suggestion is to either re-word your heading so there's a space in a better place or insert an optional hyphen. To do the latter, type my\-long\-word\-that\-has\-optional\-hyphens\-everywhere.
\section[The Elastic Differential Equation, SLE, EP,\\ and Method of separation of variables]{The Elastic Differential Equation, SLE, EP,\\ and Method of separation of variables}
LaTeX twice
In toc this will give you
Section #. The Elastic Differential Equation, SLE, EP,
and Method of separation of variables .... page #