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
\usepackage{fontpackage}but rather the simpler:
\renewcommand{\rmdefault}{texfontname}
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.
\documentclass[a5paper]{article} \usepackage{geometry} \usepackage[T1]{fontenc} \usepackage[german]{babel} \usepackage[symbolgreek]{mathastext} \MathastextSymbolScale{0.92} %%\usepackage{tpslifonts} \renewcommand{\rmdefault}{lcmss} \Mathastext[slitex] \usepackage{palatino} \Mathastext[palatino] \usepackage{newcent} \Mathastext[schoolbook] \usepackage{times} \Mathastext[times] \usepackage[variablett,nomath]{lmodern} \MTfamily{\ttdefault} \Mathastext[lmvtt] \MTseries{bx} \Mathastext[lmvttbold] \MTseries{\seriesdefault} \MTfamily{\familydefault} %%\usepackage{baskervald} \renewcommand{\rmdefault}{ybv} \Mathastext[baskervald] %%\usepackage[lf]{electrum} \renewcommand{\rmdefault}{yes} \Mathastext[electrum] %%\usepackage{fourier} \renewcommand{\rmdefault}{futs} \Mathastext[fourier] \usepackage{aurical} \renewcommand{\rmdefault}{AuriocusKalligraphicus} \Mathastext[auriocus] \usepackage[default]{comfortaa} \Mathastext[comfortaa] \renewcommand{\familydefault}{\rmdefault} \usepackage[scaled]{helvet} \renewcommand{\rmdefault}{phv} \Mathastext[helvetica] \usepackage[default]{frcursive} \Mathastext[frcursive] \linespread{1.2}