From: Sanjoy Mahajan <sanjoy@olin.edu>
To: Aditya Mahajan <adityam@umich.edu>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Euler with fallback
Date: Sun, 16 Feb 2014 11:51:07 -0500 [thread overview]
Message-ID: <87ha7zgfwk.fsf@approx.mit.edu> (raw)
In-Reply-To: <alpine.LNX.2.02.1308101227530.23278@ybpnyubfg.ybpnyqbznva>
Aditya Mahajan <adityam@umich.edu> writes:
> This is to announce that the latest beta supports creating virtual math
> fonts with fallback. The main test case is to use Euler font with missing
> characters taken from Pagella but the mechanism is general and can be used
> to replace a specific set of math glyphs from a font.
>
> This feature is not extensively tested. As such it will be useful if
> everyone interested in math fallback mechanism could test this out and
> report any bugs or inconsistencies.
I would like to test and hopefully use this setup for _Street-Fighting
Science and Engineering_. It should also give the setup a thorough
workout. But I can't quite get the preamble right.
The test file below typesets text and math in palatino.
\usetypescriptfile[euler-with-pagella]
\definebodyfontenvironment[10.5pt]
\setupbodyfont[palatino,10.5pt]
\starttext
\input knuth
\placeformula\startformula
a^2 + b^2 = c^2.
\stopformula
\stoptext
If I add
\appendtoks \rm \to \everymathematics
\setupmathematics[lcgreek=normal, ucgreek=normal]
just before \starttext, the math is typeset in roman pagella.
What am I doing silly?
Also, one of my reservations about using Euler for math, which readers
complained about in _Street-Fighting Mathematics_, is that v and \nu
(kinematic viscosity) look so similar. Do you know any way to make them
more distinguishable, e.g. by substituting a different character?
-Sanjoy
> To use this feature you have to use `pagellaovereuler` as your math font.
> For example, to use Euler with DejaVu fonts, use:
>
>
> \usetypescriptfile[euler]
> \starttypescript[mainface]
> \definetypeface[mainface][rm][serif][dejavu] [default]
> \definetypeface[mainface][ss][sans] [dejavu] [default]
> \definetypeface[mainface][tt][mono] [dejavu] [default]
> \definetypeface[mainface][mm][math] [pagellaovereuler][default]
> \stoptypescript
>
> \setupbodyfont[mainface]
>
> \appendtoks \rm \to \everymathematics
> \setupmathematics
> [lcgreek=normal, ucgreek=normal]
>
>
> There is a built-in typescript `euler-with-pagella` to use
> `pagellaovereuler` as the math font and `pagella` as the text font.
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-02-16 16:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-10 16:36 Aditya Mahajan
2014-02-16 16:51 ` Sanjoy Mahajan [this message]
2014-02-16 18:29 ` Wolfgang Schuster
2014-02-17 14:12 ` Sanjoy Mahajan
2014-02-17 14:24 ` Wolfgang Schuster
2014-02-17 14:29 ` Sanjoy Mahajan
2014-02-17 14:45 ` Wolfgang Schuster
2014-02-17 20:07 ` Sanjoy Mahajan
2014-02-17 21:04 ` Aditya Mahajan
2014-02-17 21:08 ` Wolfgang Schuster
2014-02-18 1:05 ` Sanjoy Mahajan
2014-02-18 11:29 ` bug/issue with components and preamble (Re: Euler with fallback) Sanjoy Mahajan
2014-03-03 11:50 ` Euler with fallback Sanjoy Mahajan
2014-03-03 15:07 ` Aditya Mahajan
2014-03-03 15:24 ` Sanjoy Mahajan
[not found] <mailman.310.1392661733.2494.ntg-context@ntg.nl>
2014-02-17 22:51 ` Jeong Dal
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=87ha7zgfwk.fsf@approx.mit.edu \
--to=sanjoy@olin.edu \
--cc=adityam@umich.edu \
--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).