[NTG-context] Fonts, typescripts and math ??

Aditya Mahajan adityam at umich.edu
Sun Feb 25 21:50:07 CET 2007


On Sun, 25 Feb 2007, w.neimeijer at hccnet.nl wrote:

> Hi,
>
> The following used to work
>
> \usetypescript[modern][default]
> \usetypescript[times][ec]

You do not need the above two lines.

> \definetypeface[MyFace][rm][serif][times][default][encoding=ec]
> \definetypeface[MyFace][mm][math][modern][default][encoding=ec]
> \setupbodyfont[MyFace,10pt]
> \starttext
> $\dot{x}, \ddot{y}$. $\bar{z}, \Delta z$.
> \showmathcharacters
> \stoptext
>
> but now some math characters i.e \Delta are showing up us ` in the text.
> Also the \bar{z} renders as a bar through the z instead of above.
> I thought I understood the font selection mechanism, but now I am confused.
> I am using the latest Context (ConTeXt  ver: 2007.02.20 12:00 MKII  fmt:
> 2007.2.23  int: english/english) and also installed the latest
> Latin-Modern
> stuff as stated in the release notes.

I get the same error. Something is wrong with the default math 
encoding. The following works

\definetypeface[MyFace][mm][math][modern][modern][encoding=ec]
\setupbodyfont[MyFace,10pt]
\starttext \showmathcharacters \stoptext

If I change the first line to 
\definetypeface[MyFace][mm][math][modern][default][encoding=ec]

\Gamma \Delta and lot of other characters are missing. So, as a 
temporary fix, change to modern math encoding.

Aditya


More information about the ntg-context mailing list