[texhax] Hyphenation problem

Morten Høgholm moho01ab at student.cbs.dk
Fri Jun 4 17:46:42 CEST 2004


On Fri, 04 Jun 2004 11:11:31 -0400, Karl Berry <karl at freefriends.org>  
wrote:

>     but  putting \hyphenation{3-pent-a-none} in the preamble does not  
> work
>
> Use 3-pent\-a\-none in the text.  (Or make a macro that inserts it.)

The most reliable method is probably to use the babel approach. Here's a  
LaTeX solution:

\documentclass[a4paper]{article}
\usepackage[irish]{babel}
\makeatletter
\initiate at active@char{"}
\addto\extrasirish{\languageshorthands{irish}}
\addto\extrasirish{\bbl at activate{"}}
\addto\noextrasirish{\bbl at deactivate{"}}
\declare at shorthand{irish}{"-}{\nobreak-\bbl at allowhyphens}
\makeatother

\hyphenation{pent-a-none}

\begin{document}

\noindent Some text without particular meaning leading up to the
breakpoint: 3"-pentanone is hyphenated correctly.

\end{document}
-- 
Morten Høgholm



More information about the texhax mailing list