[texhax] Stopping hyphens in table of contents and headings

Pierre MacKay pierre.mackay at comcast.net
Tue Oct 23 20:22:48 CEST 2007


Andy Farnell wrote:

>On 23 Oct 2007 06:31:17 -0700
>Donald Arseneau <asnd at triumf.ca> wrote:
>
>  
>
>>Suzanna Laycock <s.k.laycock at sheffield.ac.uk> writes:
>>
>>    
>>
>>>\hyphenpenalty=10000
>>>      
>>>
>>NO!!!!!  
>>    
>>
Never play with penalties unless you are convinced you understand how 
they work.  It is all laid out in the TeXbook, but it is not a simple 
matter, and penalties interact with one another.  Simple, one-off 
changes, like the ones associated with Plain TeX \break, are OK, and all 
the more so when it is Don Knuth who set them up, but otherwise, a 
general policy of hands off for penalties is a good idea. 

\lefthyphenmin=1000 is a simple, transparent integer.  It does not 
interact with anything but the hyphenation pass, and it simply makes it 
impossible to hyphenate any word imaginable.  It is not originally my 
idea, and I wish I could remember the name of the unsung genius who 
thought of it. 

Pierre MacKay


More information about the texhax mailing list