[Tex/LaTex] Hyphenation problem

hyphenation

I am having trouble with the hyphenation of a project I am writing. More precisely it will not hyphenate the word $\ast$-homomorphism. I have tried with \hyphenation{ho-mo-mor-phism}, but to no luck. Of course I suspect that it is the $\ast$- which courses the problem, but why? and how do I make the word hyphenate?

Here is an example where my problem occurs:

\documentclass[a4paper,10pt,draft]{article}

\hyphenation{ho-mo-mor-phism}

\begin{document}

I would really much like to have the---frequently
appearing---word $\ast$-homomorphism hyphenated.

\end{document}

Best Answer

The package hypenat is designed to allow for this sort of thing.

\documentclass[a4paper,10pt,draft]{article}
\usepackage{hyphenat}

\begin{document}

I would really much like to have the---frequently
appearing---word $\ast$\hyp{}homomorphism hyphenated.

\end{document}

It makes the the point after the dash breakable, whence the following word can be hyphenated.

hyphenation of homomorphism

(The hyphenation point is slightly different as I actually used the standalone class to produce this image and it did it with a different line width.)

Related Question