I tried writing the LaTeX formula $\overleftarrow{\underline{U}}$
, but it renders in italics which is not what I am looking for.
2 Answers
If you dont want to add anything to your preamble
$\overleftarrow{\underline{\textrm{U}}}$
BTW, Text in math mode is defaulted to italics in latex