Back to the to examples page.

This is the part of the preamble setting up the mathastext math versions for the special example.

As some packages set up math fonts or math symbols, they interfere with mathastext, and it turned out to be necessary in some instances to not use

but rather the simpler:

The texfontname can be found from looking at what mathastext writes to the log file of a first pass done with loading the font package. Determining which font packages interfere too much with mathastext is a bit of a trial and error process, although advanced LaTeX users can just examine fontpackage.sty to get an a priori opinion.

Inside the source, the \MTversion{name_of_version} command allows to change simultaneously text and math fonts, and one can use also the \MTversion[text]{math} form to use distinct fonts for text and math.