I want my subscript to be upright, so T and not as in $T$
. How do I do it?
\documentclass{article}
\begin{document}
How can I get the subscript in $\Pr_T$ as T and not as in $T$?
\end{document}
subscripts
I want my subscript to be upright, so T and not as in $T$
. How do I do it?
\documentclass{article}
\begin{document}
How can I get the subscript in $\Pr_T$ as T and not as in $T$?
\end{document}
Best Answer
Normally the effect is obtained using
\mathrm
using theamsmath
package. I wouldn't recommend\text
.In fact,
\mathrm
is the correct way since it uses the upright font for the mathematical environment, while\text
resorts using the current text font, which can cause the\text
part to be e.g. in italics if the current text is set in italic.See for example this:
With result:
It's clear that the correct way to always obtain mathematical roman is
\mathrm
. Also, the\text
command is conceived to typeset some text in the equations, strings such as "as given by" or "as you can see in".From the documentation of
amsmath