Am I missing something, or is it simply not possible to underline text within a verbatim environment?
\begin{verbatim}
I want to underline the following word: word
\end{verbatim}
I guess I could ask the same question with regard to bold or italic print, but in those cases I can see that this is not what you can do with an ordinary typewriter. But any typewriter has an underscore and I can use it to underscore text. Can the verbatim environment not do that?
\underline
or of course simply\texttt{I want to underline the following word: \underline{word}}
\`
,$
,&
, etc.?listings
package