Am 15.12.2011 um 14:36 schrieb Philipp A.:

Bump:

2011/12/9 Philipp A. <flying-sheep@web.de>
hi, i have the following setup:

\usemodule[simplefonts]
\setmainfont[Cambria]
\setsansfont[Ubuntu]
\setmonofont[Envy Code R][regularfont=envycoder]
\setmathfont[Cambria]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$}
\stoptext

why is the math in the header typeset in computer modern instead of ubuntu and how do i fix it?

PS: preferrably it should be bold, too. there is a wiki page, “Bold Math in Section Titles” but it doesn’t explain how to do it with simplefonts.

There is no way for me to fix this because it’s a context bug.  You can see the effect with the following example, when you load LM before Pagella the heading use LM Math but when you load Pagella before LM Palatino math is used for the heading.

\setupbodyfont[modern]
\setupbodyfont[pagella]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$} $y=x^2$
\stoptext

Wolfgang