I want to use MathJax with a regular font, not italic. I tried to load different STIX fonts, but the symbols rendered with MathJax are always converted to italic.
I've checked STIX font FAQ page and it is supposed to have a regular version, but I can't figure out how to use it with Mathjax.
So if you want non-italicized text in math using \text that appears in a theorem/axiom/etc, you may have to re-emphasize it by surrounding it in \emph . This additional \emph acts to turn off italics in order to "emphasize" text that's sitting in default italics.
MathJax uses the STIX fonts for including mathematics in web pages.
Oblique type is a form of type that slants slightly to the right, used for the same purposes as italic type. Unlike italic type, however, it does not use different glyph shapes; it uses the same glyphs as roman type, except slanted.
There is currently no method for switching fonts after MathJax has loaded. Similarly, page users cannot change the font configuration at this time except by installing their preferred fonts locally.
The use of italics is actually an important part of proper mathematical typesetting, so I would recommend that you not override that. Is there some important reason you are trying to do so?
You don't mention which input format you are using, but if it is TeX, you can use \mathrm{...}
around your mathematics to get upright variables rather than italic ones. If you are using MathML, then use <math mathvariant="normal">...</math>
to get upright letters. Personally, I find the result ugly, but people's tastes differ.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With