Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MathJax font without italic

Tags:

fonts

mathjax

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.

like image 484
andreu Avatar asked Mar 27 '14 00:03

andreu


People also ask

How do I make italics not in LaTeX?

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.

What font does MathJax use?

MathJax uses the STIX fonts for including mathematics in web pages.

What is the opposite of italic type?

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.

How do you change the font on MathJax?

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.


1 Answers

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.

like image 193
Davide Cervone Avatar answered Oct 06 '22 22:10

Davide Cervone