[texhax] Stopping hyphens in table of contents and headings

Martin Schröder martin at oneiros.de
Tue Oct 23 00:01:11 CEST 2007


2007/10/22, Suzanna Laycock <s.k.laycock at sheffield.ac.uk>:
> Basically some words are being hyphenated in the chapter and section
> headings and the ToC.

Ideas:
- use \mbox to disable single hyphenation points
- use the optional argument of sectioning commands to disable
hyphenation in the toc
- if you use babel (untested):
\begin{hypenrules}{nohyphenation}
\tableofcontents
\end{hyphenrules}
  see the LaTeX companion 2nd ed., p.545
- use koma-script, which does ragged sections automatically (and is
much better then the standard classes)

Best
   Martin


More information about the texhax mailing list