# [Tex/LaTex] Underscores in words (text)

characterstypewriter

How can I produce the text Word_one_two in LaTeX?

I tried:

Samp\_Dist\_Corr


But, it doesn't quite look right. Also, I want it in the typewriter font, so actually, I'm doing:

\texttt{Samp\_Dist\_Corr}


I find it looks a bit like the underscore is merging in to the bottom of the "D", but maybe it's just because of the typewriter D?

You may prefer the character from the tt font:

\documentclass{article}

\begin{document}

\texttt{Samp\_Dist\_Corr}

\verb|Samp_Dist_Corr|

\texttt{Samp\char_Dist\char_Corr}

\end{document}


Or probably better add \usepackage[T1]{fontenc} then all the above forms will use the character from the font.