I noticed that the look of the underscore _
differs greatly from the look of \textunderscore
How can I redefine \textunderscore
to look like the standard underscore of the set font? I want to avoid changing the catcode, so redefining it seems to be the best option to me.
\documentclass{minimal}
\catcode`\_11%
\begin{document}
{\ttfamily
\textunderscore _
}
\end{document}
\usepackage[T1]{fontenc}
before\catcode
_11%, the two underscore characters turn out to be the same. Likewise, if you omit
\catcode\_11%
and type\ttfamily \textunderscore \_
, both characters turn out be the same again, but now of the lighter, OT1 variety – Mico Feb 27 at 16:48