ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vyatcheslav Yatskovsky <yatskovsky@gmail.com>
To: "ntg-context-request@ntg.nl" <ntg-context@ntg.nl>
Subject: Times as math font
Date: Sun, 1 Apr 2007 23:21:30 +0300	[thread overview]
Message-ID: <1275093624.20070401232130@gmail.com> (raw)


[-- 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

             reply	other threads:[~2007-04-01 20:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-01 20:21 Vyatcheslav Yatskovsky [this message]
2007-04-03 23:27 ` Mojca Miklavec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1275093624.20070401232130@gmail.com \
    --to=yatskovsky@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).