Article View: comp.text.tex
Article #10266Re: LaTeX: Hyphenation Problem
From: Robin Fairbairns
Date: Fri, 14 Jun 1991 14:36
Date: Fri, 14 Jun 1991 14:36
35 lines
2099 bytes
2099 bytes
In article <1991Jun13.070121.1906@sserve.cc.adfa.oz.au>, mgb@csadfa.cs.adfa.oz.au (Michael Barlow) writes:
> Hi, I'm having a problem with hyphenation under LaTeX and wonder if
> someone could help.
>
> I'm using a number of hyphenated words like non-normalised and
> log-concatenated. These occur in the captions of a large number of
> figures and tables. When I generate a lof or lot I get a large number
> of overfull hbox errors because it doesn't want to hypenated these
> words anywhere but at the original hyphen.
>
> I've tried things like \hyphenation{nor-mal-ised}
> but of course normalised isn't the same word as non-normalised!...
> and \hyphenation{non-nor-mal-ised} won't work either as it looks for
> the word nonnormalised.
>
> I know I can go around and individually hyphenate these words but it
> would be much nicer if there was a simple, one place, fix.
This is because of the jolly rules of `proper' typesetting - don't (they
say) hyphenate a word that's already been explicitly hyphenated.
I picked up the following hack from Barbara Beeton ages ago, and include
it in all the style files I write - it needs to be inserted in the final
pass (so non-normalised goes to non\hyph normalised), to get rid of
those otherwise un-removable bad \hbox{es}. It's the `breakable hyphen'
command:
\def\hyph{-\penalty0\hskip0pt\relax}
You could play tricks mapping it to a character that's made active for
the purpose, but `-'? Mmmm...
--
Robin Fairbairns, Senior Consultant, postmaster and general dogsbody
Laser-Scan Ltd., Science Park, Milton Rd., Cambridge CB4 4FY, UK
Email: robin@lsl.co.uk --or-- rf@cl.cam.ac.uk
Technical Details
Message-ID:
<1991Jun14.143616.776@lsl.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!uunet!mcsun!ukc!lsl!robinReferences:
<1991Jun13.070121.1906@sserve.cc.adfa.oz.au>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!uunet!mcsun!ukc!lsl!robin From: robin@lsl.co.uk (Robin Fairbairns) Newsgroups: comp.text.tex,aus.tex Subject: Re: LaTeX: Hyphenation Problem Message-ID: <1991Jun14.143616.776@lsl.co.uk> Date: 14 Jun 91 14:36:16 GMT References: <1991Jun13.070121.1906@sserve.cc.adfa.oz.au> Organization: Laser-Scan Ltd., Cambridge Lines: 35