ConTeXt doesn’t use the same style switches as LaTeX.11. Oktober 2016 um 21:52Dear list members:
I would like to set up Tex Gyre Adventor sans serif font as my math font (even if it doesn't have
math symbols). I have two questions related to this problem.
1. In latex I can specify math font versions, define a specific font as math serif / normal, another as math
sans serif etc. (http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml). Is this possible
in context, and if yes, how?
1. sf is not a valid argument for the second argument of \definefontfamily2. If I specify Tex Gyre Adventor as default math font in context, I get compile error.
Here is a MWE, file name is mathfont.tex:
--------
\definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
\definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
\setupbodyfont[mathfont,10pt]
\starttext
Normal text.
\math{Inline math expression.}
Normal text.
\stoptext
--------