[texhax] Hyphenation problem
Philip TAYLOR
P.Taylor at Rhul.Ac.Uk
Fri Jun 4 18:10:15 CEST 2004
The problem is the explicit hyphen, after which
TeX will not hyphenate further. I would suggest
defining macros which generate "3-pentanone"
(visually) but which in practice generate
"3-\hskip 0 pt \relax pentanone"
which should be hyphenatable ...
\def \ThreeP {3-pentanone}
\def \threeP {3-\hskip 0 pt \relax pentanone}
\showhyphens {\ThreeP}
\showhyphens {\threeP}
\hyphenation {pent-a-none}
\showhyphens {\ThreeP}
\showhyphens {\threeP}
\end
Philip TAYLOR
--------
John Simmie wrote:
> We need to hyphenate 'words' which already contain a hyphen as in
> the name for a particular chemical
> 3-pentanone
> but putting \hyphenation{3-pent-a-none} in the preamble does not work
> as a global solution and neither does \hyphenation{pent-a-none}
> I cannot find a solution in the usual places .... any notions?
> Thanks, John
>
> Dr. John M. Simmie
> Chemistry Department & Environmental Change Institute
> National University of Ireland, Galway::Ireland
More information about the texhax
mailing list