https://worldbuilding.stackexchange.com/a/31762/885
So what's the right way to put units inside of TeX blocks? I remember a font directive but not what the word was. And it's a kludge anyway — was a proper unit macro notation ever added?
https://worldbuilding.stackexchange.com/a/31762/885
So what's the right way to put units inside of TeX blocks? I remember a font directive but not what the word was. And it's a kludge anyway — was a proper unit macro notation ever added?
\text{}
.This MathJaX code:
1 \times 10^{23} kg
produces this output:
$ 1 \times 10^{23} kg $
By wrapping the kg
in \text{ }
, we get:
1 \times 10^{23} \text{ kg}
which produces
$ 1 \times 10^{23} \text{ kg} $
text
forces it to be an actual space character in that font.
$\endgroup$
– JDługosz
Jan 4 '16 at 12:50
1 \times 10^{23} ~ \text{kg}
: $ 1 \times 10^{23} ~ \text{kg} $
$\endgroup$
– user
Jan 4 '16 at 15:30