This has probably been answered somewhere, but I can't find it from some searching. I sometimes want to write something like Leb
for lebesgue measure, and I would like it to be non-italicized, so I usually use \text{Leb}
in math mode, but this has the annoyance that it changes inside of an italicized (ams) theorem environment. I usually just hack this and write \text{\emph{Leb}}
but clearly this is not ideal.
Is there a replacement for \text
that won't inherit this italicizing? Alternatively, is there a more clever hack, in which I can make my macro detect if its going to be italicized and then automatically put in the \emph
hack? Clearly the first would be ideal, but the second would also be acceptable.
\text{\textrm{Leb}}
or\text{\textnormal{Leb}}
? It always set "Leb" is roman (i.e. normal) font. The\emph
hack is kind of ugly. It only works because an\emph
inside a\emph
is set in roman font again.\textrm
one does not work for me, but the text normal does. Thanks for the tip!