[NTG-context] Mixing math and text font

Wolfgang Schuster schuster.wolfgang at gmail.com
Sat Jan 4 17:44:22 CET 2014


Am 04.01.2014 um 16:04 schrieb Joshua Krämer <joshua.kraemer at gmail.com>:

> Dear list,
> 
> in my math, I would like one font (the text font) to be used for letters 
> and digits and another font (the math font) to be used for mathematical 
> symbols.  I have tried it like that:
> 
> % Example 1
> \usemodule[simplefonts][size=40pt]
> \setmathfont[termes]
> \setmainfont[latinmodernroman]
> \starttext
> 123\\$ 123 \coprod \leftrightarrow $
> \stoptext
> 
> % Example 2
> \definetypeface	[fonttest]	[rm]	[serif]	[modern]
> \definetypeface	[fonttest]	[mm]	[math]	[termes]
> \setupbodyfont[fonttest, 40pt]
> \starttext
> 123\\$ 123 \coprod \leftrightarrow $
> \stoptext
> 
> In both examples, the math font is used for the whole formula.  How can I 
> mix the fonts?

This is possible but you have to use the context suite [1] and not texlive or miktex because the context version they provide doesn’t include the necessary mechanism.

[1] http://wiki.contextgarden.net/ConTeXt_Standalone

Wolfgang


More information about the ntg-context mailing list