I've got longer phrases separated with hyphens that I'd like to typeset in typewriter font. I'd like latex to break the lines to avoid them from overflowing:
\documentclass{article}
\begin{document}
Normal font breaks the line:
a-very-long-text-in-typewriter-font-separated-by-hyphens-that-should-break-the-line.
But typewriter font does not:
\texttt{a-very-long-text-in-typewriter-font-separated-by-hyphens-that-should-break-the-line.}
\end{document}
Just to be clear, I don't want latex to add more hyphens, I just want it to break the line at the existing ones.
