[texhax] Hyphenation in the age of web names

Philip Taylor (Webmaster) P.Taylor at Rhul.Ac.Uk
Tue Oct 30 18:26:08 CET 2007

1) As it occurs "hundreds of times", you must already
be representing it within your document using a control
word.  Re-define the control word as follows :

     \def \sau {script.\-aculo.\-us}

Example :

     \hsize = 1 in
     \def \sau {script.\-aculo.\-us}
     {\sau} {\sau} {\sau} {\sau} {\sau} {\sau} {\sau} {\sau} {\sau}
     {\sau} {\sau} {\sau} {\sau} {\sau} {\sau} {\sau} {\sau} {\sau}
     {\sau} {\sau} {\sau} {\sau}

Steve Peter wrote:

> I'm typesetting a book about the JavaScript library script.aculo.us.  
> As you might imagine, the name occurs frequently, often at the end of  
> the line, but TeX won't hyphenate it. I can't suggest anything to TeX  
> globally via \hyphenation, since the name contains periods. Are there  
> any known work-arounds to this? I would hate to have to enter \- by  
> hand hundreds of times. (No, I can't change the name, and I'm not the  
> author of the book, so I can't reduce the number of times it is  
> mentioned.)

More information about the texhax mailing list