[texhax] hyphenation ...

Ian.Collier at comlab.ox.ac.uk Ian.Collier at comlab.ox.ac.uk
Wed Nov 17 11:29:24 CET 2004

Robin.Fairbairns at cl.cam.ac.uk writes:
>there donald arseneau highlights the words ("essentially always") in
>the texbook that were niggling at me when i was trying to recall the
>problem with this use of \pretolerance.
>that post has a paragraph with \pretolerance=10000 and lots of nice

That's interesting, thanks.  It turns out that the two flaws with this
approach are: (a) it doesn't use \emergencystretch, and (b) if a line
is totally impossible (i.e., too long) to set without hyhpenation then
it will go ahead and hyphenate it anyway (together with the rest of the

So the solution should be:
 \hyphenpenalty=10000      %% or any of the other ways
 \exhyphenpenalty=10000    %% to turn hyphenation off
 \emergencystretch=10pt    % it may be necessary to experiment with this value.

The OP in this thread wasn't told to use \emergencystretch, and it isn't
in the FAQ either.  It's what helps TeX to stop setting overfull lines
without using the rather wild spacing that can sometimes happen with
---- Ian Collier : imc at comlab.ox.ac.uk : WWW page below
------ http://users.comlab.ox.ac.uk/ian.collier/imc.shtml

More information about the texhax mailing list