[OS X TeX] Hyphenation
Morten Høgholm
morten.hoegholm at latex-project.org
Sun Mar 27 08:48:14 EST 2005
On Sun, 27 Mar 2005 12:59:48 +0200, Hans van Maanen <hans at vanmaanen.org>
wrote:
> In the Dutch language macro dutch.dtx, we can use "- to hyphenate a
> word while still enabling the rest of the word to be hyphenated, so that
> common Dutch words like diphosphate-phosphohydrolase do not result in
> underfull boxes.
Is diphosphate-phosphohydrolase really a common word in Dutch? I would
never have guessed ;-)
> I would like to use this as standard behaviour, so that every - in my
> text will be understood as "- and has full hyphenation. I'm sure it's
> just a \renewcommand somewhere, but I don't know how to do this.
Well, almost \renewcommand but at a somewhat different level.
\documentclass{article}
% Must come before the fontenc package!
\DeclareFontFamily{T1}{cmr}{\hyphenchar\font=127}
% Also make the same change for other font families
% where this is needed.
\usepackage[T1]{fontenc}
% For demonstration purposes.
\setlength\textwidth{3in}
\begin{document}
This allows words like diphosphate-phosphohydrolase to hyphenate
automatically but only with the T1-encoding.
\end{document}
--
Morten
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list