I'd like to typeset an equation (in a beamer slide, inside a tikzpicture) in non-italics.
Using the various options recommended (\text, \mbox, \mathrm) works for most part of the equation but not for the \int (integral) symbol. Is there a way to also have this symbol "upright"?
Here follows a minimal example:
\documentclass{beamer} %
\usepackage{tikz}
\begin{document}
\begin{frame}{Example}
\begin{center}
\begin{tikzpicture}
\path
node {
$\int f(x) dx$
}
++(0,-2)
node {
$\mathrm{\int f(x) dx}$
};
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}
Thanks for your help!
\intup f(x) dxwith\mathrm{\intup f(x) dx}and see if you like it. Since it compiles with no errors, I advice you set roman fonts (mathrm) as default: http://tex.stackexchange.com/questions/15058/use-mathrm-by-default. – MattAllegro Nov 16 '15 at 17:47