From: "Hans Åberg" <haberg-1@telia.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Choosing STIX stylistic sets
Date: Sat, 15 Apr 2017 10:18:41 +0200 [thread overview]
Message-ID: <648F2406-D930-42BA-94A1-03946F32D6C1@telia.com> (raw)
In-Reply-To: <1544aa52-46fa-d386-e83a-eace9873256a@wxs.nl>
> On 15 Apr 2017, at 00:22, Hans Hagen <pragma@wxs.nl> wrote:
>
> On 4/14/2017 12:42 PM, Hans Åberg wrote:
>> With the STIX Two fonts [1-2], one can choose say Stylistic Set 8 <ss08> for more upright integrals. How is that done in ConTeXt with XITS?
>>
>> 1. https://sourceforge.net/projects/stixfonts/
>> 2. https://en.wikipedia.org/wiki/STIX_Fonts_project#STIX_2.0.0
>
> see stix-two-math.lfg
>
> \setmathfontalternate{whatever}
On MacOS, it does not load the fonts: In the example below (also not working with 'xits' or 'stix'), I get:
fonts > typescripts > unknown library 'stix-two-math'
fonts > preloading latin modern fonts (third stage)
fonts > 'fallback modern-designsize rm 10pt' is loaded
They are installed as system fonts.
Also, though \iiiint now seems defined, the limits are still underneath with the option 'integral=nolimits'.
----
%\setupbodyfont[xits,10pt]
%\setupbodyfont[stix,10pt]
\setupbodyfont[stix-two-math,10pt]
%\setupmathematics[integral=nolimits, lcgreek=normal, default=normal, stylealternative={upright}]
\setupmathematics[integral=nolimits, lcgreek=normal, default=normal]
\appendtoks
\catcode`∫=\activecatcode
\letcharcode `∫ \int
\catcode`∬=\activecatcode
\letcharcode `∬ \iint
\catcode`∭=\activecatcode
\letcharcode `∭ \iiint
\catcode`⨌=\activecatcode
\letcharcode `⨌ \iiiint
\to \everymathematics
\starttext
\startformula
⨌_𝐴 𝑓(𝑥)\, d𝑥 = ∫_𝐵 ∭_𝐶 𝑓(𝑡, 𝒙)⊗g\, d𝑡 d𝒙
\stopformula
\startformula
\setmathfontalternate{upright,circled}
⨌_𝐴 𝑓(𝑥)\, d𝑥 = ∫_𝐵 ∭_𝐶 𝑓(𝑡, 𝒙)⊗g\, d𝑡 d𝒙
\stopformula
\stoptext
----
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2017-04-15 8:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-14 10:42 Hans Åberg
2017-04-14 22:22 ` Hans Hagen
2017-04-15 8:18 ` Hans Åberg [this message]
2017-04-16 13:56 ` Hans Åberg
2017-04-16 14:37 ` Hans Hagen
2017-04-16 16:01 ` Hans Åberg
2017-04-16 17:15 ` Hans Hagen
2017-04-16 18:09 ` Hans Åberg
2017-04-16 19:06 ` Hans Åberg
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=648F2406-D930-42BA-94A1-03946F32D6C1@telia.com \
--to=haberg-1@telia.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).