From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86298 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Euler with fallback Date: Sun, 16 Feb 2014 11:51:07 -0500 Message-ID: <87ha7zgfwk.fsf@approx.mit.edu> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392569483 12369 80.91.229.3 (16 Feb 2014 16:51:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2014 16:51:23 +0000 (UTC) To: Aditya Mahajan , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 16 17:51:32 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WF4wG-0007hj-BR for gctc-ntg-context-518@m.gmane.org; Sun, 16 Feb 2014 17:51:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D8EE101E9; Sun, 16 Feb 2014 17:51:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sEG3r8xxVDC9; Sun, 16 Feb 2014 17:51:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3C23E101E3; Sun, 16 Feb 2014 17:51:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12926101E3 for ; Sun, 16 Feb 2014 17:51:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mg6kw2nKxQ96 for ; Sun, 16 Feb 2014 17:51:24 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 745D5101E2 for ; Sun, 16 Feb 2014 17:51:14 +0100 (CET) Original-Received: from EXCAS02.olin.edu (smtp.olin.edu [208.91.55.40]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1GGpCnm021910 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sun, 16 Feb 2014 17:51:13 +0100 Original-Received: from approx.mit.edu (71.126.235.4) by EXCAS02.olin.edu (10.1.15.27) with Microsoft SMTP Server (TLS) id 8.3.342.0; Sun, 16 Feb 2014 11:51:10 -0500 Original-Received: from sanjoy by approx.mit.edu with local (Exim 4.82) (envelope-from ) id 1WF4vr-00064y-Ks; Sun, 16 Feb 2014 11:51:07 -0500 In-Reply-To: User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (i486-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=208.91.55.40; country=US; region=MA; city=Needham; postalcode=02492; latitude=42.2793; longitude=-71.2450; metrocode=506; areacode=781; http://maps.google.com/maps?q=42.2793,-71.2450&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NLr4PdB0 - d05c98c40beb - 20140216 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86298 Archived-At: Aditya Mahajan 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 ___________________________________________________________________________________