[texhax] Preserving dash when hyphenating compound words

Aleksandar Zec zealeksanman at gmail.com
Sat Jul 31 12:13:15 CEST 2010


Hello all,

Please take this small example into consideration:

------------------------------------------------------
\documentclass{article}
\usepackage{hyphenat}
\begin{document}
\noindent\fbox{%
\begin{minipage}{2cm}%
straw\hyp{}chopper\\
\hspace*{1.1cm}straw\hyp{}chopper
\end{minipage}%
}
\end{document}
------------------------------------------------------

According to the hyphenation rules I have to follow (examples are in
English for the sake of simplicity), the first line is hyphenated
correctly. However, in the second case, it should look like this:

straw-
-chopper

(the original dash is preserved at the beginning of next line). How
should one achieve this?

Thank you very much in advance,
Alex


More information about the texhax mailing list