Hans Hagen
6. Juni 2016 um 22:03


There is support for hvmath (a virtual unicode font is constructed then) but you need to get those files somewhere.

An alternative is to roll out your own virtual math font (take a look at the *.lfg files that have math in their name).

On the agenda for the tex gyre project is a serif math font (lato or so) but that will take a while (also awaits funding).
The font fallback mechanism is another alternative but one shouldn’t expect too much because a real sans serif math is necessary to get larger operators.

\definefontfamily     [mainface] [ss] [Latin Modern Sans]

\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:digitsnormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:digitsbold]

\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:uppercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:uppercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:uppercasebolditalic]

\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:lowercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=math:lowercasebolditalic]

\definefontfamily     [mainface] [mm] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext

    abcdefg ABCDEFG 123456

    \startformula
        {\tf abcdefg\,ABCDEFG} \quad abcdefg\,ABCDEFG \quad 123456 \quad {\bf 123456}
    \stopformula

\stoptext

Wolfgang