This is used to make variables and units appear in roman (non-italic) text.
For example, the unit kilogram should be rendered as
The former, the correct representation, is rendered by \mathrm{kg}
, while the latter, the incorrect representation, is rendered by simply kg
.
Community content is available under CC-BY-SA unless otherwise noted.