ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: how to define a new math symbol
Date: Wed, 25 Oct 2006 10:40:10 +0200	[thread overview]
Message-ID: <453F22EA.5010305@elvenkind.com> (raw)
In-Reply-To: <20061025081804.95085.qmail@web51812.mail.yahoo.com>



M.J. Kallen wrote:
> Taco,
> 
> 
> I'm not sure I understand your question. I'm using TexLive on a linux
> system. I do not use any other fonts other than CM.

That last bit of information is crucial, because there is a difference
between font handling between CM/Lm and commercial fonts.

I've been skyping with Hans and he came up with the code below.
You can use the font files from the LaTeX zip, you just have to
make sure that pdftex can find the (map) file, of course.


Cheers, taco

% test-prodint.tex

\definefontsynonym [MathGamma]  [prodint]

\definefamilysynonym [default]  [xop]   [mc]

\startmathcollection [default]

\definemathsymbol [prodi]  [op]  [xop] [80]  %80 prodinttext
\definemathsymbol [Prodi]  [op]  [xop] [82]  %82 prodintdisplay
\definemathsymbol [PRODI]  [op]  [xop] [84]  %84 prodintbig

\stopmathcollection

\loadmapfile[prodint]


\starttypescript [math] [modern,computer-modern,latin-modern,ams] [size]
   \definebodyfont 
[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [mc=prodint]
\stoptypescript

\definetypeface [modern] [mm] [math]  [modern]
                 [computer-modern][encoding=default]

\setupbodyfont[reset,modern,10pt]

\enablemathcollection[prodint]

\starttext

$\prodi$

\stoptext

  reply	other threads:[~2006-10-25  8:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-25  8:18 M.J. Kallen
2006-10-25  8:40 ` Taco Hoekwater [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-25  9:35 M.J. Kallen
2006-10-24  9:43 MJK
2006-10-24 15:31 ` Taco Hoekwater

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=453F22EA.5010305@elvenkind.com \
    --to=taco@elvenkind.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).