ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Using stylistic sets in math
Date: Sat, 17 Jul 2010 08:07:53 +0200	[thread overview]
Message-ID: <4C4148B9.8000802@elvenkind.com> (raw)
In-Reply-To: <20100717055617.GA9403@khaled-laptop>

On 07/17/2010 07:56 AM, Khaled Hosny wrote:
> On Sat, Jul 17, 2010 at 07:43:46AM +0200, Taco Hoekwater wrote:
>> On 07/17/2010 05:49 AM, Khaled Hosny wrote:
>>>
>>> I'm not a big fan of private use area myself, it just makes things more
>>> unportable. The approach I used is mapping the new characters to the
>>> closest matching existing ones, so calligraphic is mapped to script,
>>> sans serif Greek is mapped to serif and so on. What I want is a way to
>>> use different font for specific parts in the equation, for example a
>>> \mathaltcal or \mathsfbfgreek etc that could have a different feature
>>> than the main math font.
>>
>> You could use stylistic alternate sets, it should be easy to support
>> those in context (it may even work out of the box).
>
> With which feature tag?
>
> Stylistic set (ss01-ss20) already work, but I can only enable it for
> formula wide, I just don't know how to define a new font in math mode.

You just have to set them up, then the \mathaltcal macro becomes
something like:

   \def\mathaltcal#1{\addff{ss09}#1\subff{ss09}}

Best wishes,
Taco
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2010-07-17  6:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-15 19:24 Khaled Hosny
2010-07-15 19:45 ` Hans Hagen
2010-07-17  3:49   ` Khaled Hosny
2010-07-17  5:43     ` Taco Hoekwater
2010-07-17  5:56       ` Khaled Hosny
2010-07-17  6:07         ` Taco Hoekwater [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=4C4148B9.8000802@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).