Hello, Could someone be so kind to tell me why I cannot set Times as math font? The line \definetypeface [myFont] [mm] [math,boldmath] [myfont] [default] [encoding=t2a] seems to do nothing; other code works well. \loadmapfile[t2a-monotype-timesttf.map] \usetypescriptfile[type-buy] \usetypescript[serif][fallback] \starttypescript [serif] [myfont] [t2a] \definefontsynonym [Serif] [t2a-TINRPSMT] [encoding=t2a] \definefontsynonym [SerifBold] [t2a-TINRPSBM] [encoding=t2a] \definefontsynonym [SerifItalic] [t2a-TINRPSIM] [encoding=t2a] \definefontsynonym [SerifBoldItalic] [t2a-TINRPSBI] [encoding=t2a] \stoptypescript \definetypeface [myFont] [rm] [serif] [myfont] [default] [encoding=t2a] \definetypeface [myFont] [mm] [math,boldmath] [myfont] [default] [encoding=t2a] \definetypeface [myFont] [tt] [mono] [typewriter][default][encoding=t2a] \setupbodyfont[myFont,12pt] \starttext Uniform distribution (over an interval) means that every number from that interval is equally probable. The probability density function is given as $ f(x) = \left\{ {\matrix{ {{1 \over {b - a}}} & {for\,x \in (a;b)} \cr 0 & {otherwise} \cr } } \right. $ \stoptext -- Best, Vyatcheslav
On 4/1/07, Vyatcheslav Yatskovsky wrote:
Hello,
Could someone be so kind to tell me why I cannot set Times as math font?
The line \definetypeface [myFont] [mm] [math,boldmath] [myfont] [default] [encoding=t2a] seems to do nothing; other code works well.
You probably didn't define any math typescripts for "myfont" (well, you don't need to since zou can use existing typescripts). If you want to get math in Times, simply use \definetypeface [myFont] [mm] [math,boldmath] [times] [default] [encoding=default] You probably don't need cyrillic encoding or any other special font for math in Times. The remaining code works because you defined the following lines for Serif, but not for Math: \starttypescript [serif] [myfont] [t2a] \definefontsynonym [Serif] [t2a-TINRPSMT] [encoding=t2a] Mojca
participants (2)
-
Mojca Miklavec
-
Vyatcheslav Yatskovsky