Henri Menke <mailto:[email protected]>
5. August 2016 um 17:03
Dear list,

how can I switch to another typeface for the, say, roman font only? When I use \definefontfamily to do so it switches *all* the fonts, including math, to the one loaded (example below). This leads to very undesirable effects, such as math is no longer set in italics.

Cheers, Henri

---

\definefontfamily[main][rm][Linux Libertine O]
\setupbodyfont[main]
\starttext
foo $bar$
\stoptext
You have to set the math font (and sans serif or mono when you use them) as well because you’re switching to a new collection of fonts when you change the bodyfont.

\definetypeface [main] [rm] [serif] [libertine] [default]
\definetypeface [main] [mm] [math]  [modern]    [default]

\setupbodyfont[main]

\starttext
foo $bar$
\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
___________________________________________________________________________________

Reply via email to