ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Times as math font
@ 2007-04-01 20:21 Vyatcheslav Yatskovsky
  2007-04-03 23:27 ` Mojca Miklavec
  0 siblings, 1 reply; 2+ messages in thread
From: Vyatcheslav Yatskovsky @ 2007-04-01 20:21 UTC (permalink / raw)
  To: ntg-context-request@ntg.nl


[-- Attachment #1.1: Type: text/plain, Size: 1314 bytes --]

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                      

[-- Attachment #1.2: Type: text/html, Size: 4367 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-03 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-01 20:21 Times as math font Vyatcheslav Yatskovsky
2007-04-03 23:27 ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).