Am 15.12.2011 um 14:36 schrieb Philipp A.:
> Bump:
>
> 2011/12/9 Philipp A. <[email protected]>
> 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___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________