[Tex/LaTex] How to get non-italic acute accent in math mode

accentsitalicmath-mode

$\acute{e}$ makes an italic e with accent in math mode, how can I get the acute accent with a regular letter?

I should mention that this is for annotating a plot with matplotlib, so common tricks in LaTeX may not work, I tried \text and \mbox, both failed.

Best Answer

If you need to do it in math mode you can use $\acute{\mathrm{e}}$.

Here is a comparison of the output:

enter image description here

\documentclass{article}
\begin{document}
    $\acute{e}$ within math mode (without mathrm)\par
    $\acute{\mathrm{e}}$ within math mode (with mathrm)\par
    \'{e} outside of math mode
\end{document}