[NTG-context] \pm set too low in MkIV?

Otared Kavian otared at gmail.com
Wed May 7 11:38:26 CEST 2014


On 7 mai 2014, at 10:46, Mikael P. Sundqvist <mickep at gmail.com> wrote:

> […]
> 
> I guess one could do this for the other signs one don't like in TeX
> Gyre Pagella Math…

Hi,

This is a good trick to know, especially if one combines \pm and \mp as in the counter-example given by Hans: 

% Start example
\definefallbackfamily[mainface][math][Asana Math]
[range={00B1-00B1}]

\definefontfamily[mainface][serif][Tex Gyre Pagella]
\definefontfamily[mainface][math][Tex Gyre Pagella Math]

\starttext
   \switchtobodyfont[pagella] Hello $ x \pm 2 = a \mp 2 $\par
   \switchtobodyfont[asana] Hello  $ x \pm 2 = a \mp 2 $\par
   \switchtobodyfont[mainface] Hello  $ x \pm 2 = a \mp 2 $\par
\stoptext
% Stop example

The sample with 
	   \switchtobodyfont[asana] Hello  $ x \pm 2 = a \mp 2 $\par
looks quite fine.

Best regards: OK


More information about the ntg-context mailing list