ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: bold and nonbold math
Date: Wed, 19 Aug 2009 09:15:40 +0200	[thread overview]
Message-ID: <4A8BA69C.6060204@wxs.nl> (raw)
In-Reply-To: <D91E8689-062F-460F-A67A-CAAE1DC83A68@uva.nl>

Hans van der Meer wrote:
> Working on typescripts for Y&Y's LucidaBright (which are type1 fonts) 
> for MKIV (hoping to maintain compatibilty with MKII), the following code 
> produces all math in bold, even the first x+y.
>   \usetypescript[luc]\setupbodyfont[luci]\starttext $x+y$ -- $\bfmath 
> x+y$ \stoptext
> 
> I studied the new manual chapter on typescripts as well as have worked 
> in analogy with existent typescripts in the current ConTeXt base. I 
> certainly am missing an important clue here.

the most important clue is that mkii and mkiv are different

(1) instead of many families we only use two, see type-siz.mkiv, where 
you can find lines like:

   \definebodyfont [12pt] [mm] [mr=LMMathRoman12-Regular sa 1, 
mb=LMMathRoman12-Bold sa 1]

(2) there is a distinction between bold alphabets (see unicode math) and 
a complete switch to bold; so, \bf cum suis deal with alphabets, while 
\mb switches to the bold math family

(3) we use either opentype math fonts or virtual ones, i.e. if you use 
lucida, which is traditional, we need an entry in math-vfu.lua, and in 
the beta that is the case (but not for bold)

(4) no math vectors are used in mkiv, only unicode

(5) as loading and switching comes a price, we need to enable it with
\enableboldmath before loading fonts

so, although most things on the outside are the same in mkii/mkiv there 
are some fundamental differences

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      parent reply	other threads:[~2009-08-19  7:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-18 15:18 Hans van der Meer
2009-08-18 16:50 ` Wolfgang Schuster
2009-08-19 10:06   ` Hans van der Meer
2009-08-19  7:15 ` Hans Hagen [this message]

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=4A8BA69C.6060204@wxs.nl \
    --to=pragma@wxs.nl \
    --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).