HowTo Word Break Type-Writer in LaTeX

By default LaTeX does not insert word breaks in type writer fonts, because the font has no dedicated character for hyphenations. But you can set the ‘-‘ as the corresponding character:

% line breaks in tt fonts
\renewcommand{\ttfamily}{\origttfamily \hyphenchar\font=`\-}

Leave a Reply

Your email address will not be published. Required fields are marked *