# [texhax] hyphenation ...

Wed Nov 17 15:38:03 CET 2004

```On Nov 17, 2004, at 5:29 AM, Ian.Collier at comlab.ox.ac.uk wrote:

> 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
> paragraph).
>
> So the solution should be:
>  \hyphenpenalty=10000      %% or any of the other ways
>  \exhyphenpenalty=10000    %% to turn hyphenation off

One question --- why is it better to set this as a penalty as opposed
to just setting the hyphenchar to -1? Or does doing so alter this?

William

--