I'm having a problem that I've had before and I'm tired of hacking my way through it and hope that there is some supported solution. I'll go ahead and create a document for example:
\documentclass {article}
\begin{document}
\section {Introduction}
In the introduction of the document, you will find plenty of verbatim \verb|texts
that| have an hard time wrapping.
\end{document}
So, the problem here is that the \verb
environment doesn't wrap well (unlike the example I posted above where I put in the return to aid in viewing). There is an overfull hbox error.
How can I make the \verb
command wrap and justify with its surroundings better? I would expect LaTeX to just increase or decrease the spacing around the \verb
command. Is it just too much smooshing or stretching for LaTeX to agree to do it? Thanks in advance for any help.
[EDIT]
After reading When should one use \verb and when \texttt I think that \texttt
may be the right way to go here. This considerably covers the question above, but the question still stands: What about \verb
?
[EDIT] Also see the related question about \texttt{}
\texttt overfull hbox problem