ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Euler with fallback
Date: Sun, 16 Feb 2014 19:29:39 +0100	[thread overview]
Message-ID: <FBB75F02-AA54-47B7-8F28-2C50EFD4B834@gmail.com> (raw)
In-Reply-To: <87ha7zgfwk.fsf@approx.mit.edu>


Am 16.02.2014 um 17:51 schrieb Sanjoy Mahajan <sanjoy@olin.edu>:

> 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]

You have to load the typescript file for euler.

>  \definebodyfontenvironment[10.5pt]
>  \setupbodyfont[palatino,10.5pt]

When you use the palatino typeface context uses only the pagella math fonts.

To use palatino as text font and euler for math you have to create your own typeface collection:

\usetypescriptfile[euler]

\definetypeface [mainface] [rm] [serif] [pagella]          [default]
\definetypeface [mainface] [tt] [mono]  [dejavu]           [default] [rscale=0.9]
\definetypeface [mainface] [mm] [math]  [pagellaovereuler] [default]

\setupbodyfont[mainface,10.5pt]

\appendtoks \rm \to \everymathematics
\setupmathematics[lcgreek=normal, ucgreek=normal]

\starttext

\input knuth

\startplaceformula
  \startformula
    a^2 + b^2 = c^2.
  \stopformula
\stopplaceformula

\stoptext

Wolfgang
___________________________________________________________________________________
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:[~2014-02-16 18:29 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
2014-02-16 18:29   ` Wolfgang Schuster [this message]
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=FBB75F02-AA54-47B7-8F28-2C50EFD4B834@gmail.com \
    --to=schuster.wolfgang@gmail.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).