Is it possible to typeset text properly inside math without amsmath
?
Typically I typeset short text using mathrm
, or text
(amsmath) within equation:
$M_\mathrm{effective mass}$
$M_\text{effective mass}$
\mathrm
works most of the time but is not a real text environment (for example the spaces are ignored as in math mode). On the other hand \text
depends on amsmath
.
The question is, is possible to create the same result as with text
but without using amsmath
?
Best Answer
To have a functionality similar to
amsmath
's\text
, but without loading any of the AMS-family packages, you can simply copy into your preamble a modification of the code for\text
fromamstext.sty
: