[texhax] Stopping hyphens in table of contents and headings

Donald Arseneau asnd at triumf.ca
Tue Oct 23 15:31:17 CEST 2007

Suzanna Laycock <s.k.laycock at sheffield.ac.uk> writes:

> \hyphenpenalty=10000


Even if you set it locally, as part of the (your) document-class definition
of \section, that still leaves big gaps between the words.  Use \raggedright
in the "fonts" argument of \@startsection in the (your) documentclass; or use
a sane customizable documentclass or a package like titlesec.

(please don't leave a full reversed archive of the correspondence at the bottom
of every message.)

Donald Arseneau                          asnd at triumf.ca

More information about the texhax mailing list