From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96677 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \definefallbackfamily for math fonts, again Date: Thu, 27 Oct 2016 19:58:25 +0200 Message-ID: <58124041.80901@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6980495511795179954==" X-Trace: blaine.gmane.org 1477591153 29432 195.159.176.226 (27 Oct 2016 17:59:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2016 17:59:13 +0000 (UTC) User-Agent: Postbox 5.0.5 (Macintosh/20161020) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 27 19:59:08 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzox1-00052r-Ae for gctc-ntg-context-518@m.gmane.org; Thu, 27 Oct 2016 19:58:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 129391BF38; Thu, 27 Oct 2016 19:58:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HDSziapj2l8D; Thu, 27 Oct 2016 19:58:41 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 55DD21BF39; Thu, 27 Oct 2016 19:58:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 286751BF37 for ; Thu, 27 Oct 2016 19:58:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WiXH41M0LdoF for ; Thu, 27 Oct 2016 19:58:39 +0200 (CEST) Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 13F081BF36 for ; Thu, 27 Oct 2016 19:58:29 +0200 (CEST) Original-Received: by mail-wm0-f49.google.com with SMTP id n67so63396119wme.1 for ; Thu, 27 Oct 2016 10:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=X8XRmacB77vVVomU7Q4om0FG1Tf+tGLTh2Lpq7loFjI=; b=DwDWMmxK5VU8q9kju+gI0CeFmcLLsBNHnX4uraDlTMYNvFbQ8wAJem+Ya6a5znXb/F ZjHlNMTETY9YdvxWNiZ3IrE+Sm8VvtI7r7ZOrhe0z0tkozw/y7D8smpV19/2v/OWIC1A LRbNPiaDrYMzb/s5ufAjlGk2LtBFUQsCL97YgIvLkIiu0TjJFECcFML2/ieDGsrtUrxg Tp9jzGe5c2kkh5LdCi/zB+YnW3Iuj7RFcVyjrPyDczcXY12EvmNEEcw1fns3ZKrN2t8d JhW8j9p3KO5cR8/+cqwUfPGiKqOfxyTgSB8iwyd7HZR0FHS9IXq+ZlE09yk2Am9iNdl2 KA3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=X8XRmacB77vVVomU7Q4om0FG1Tf+tGLTh2Lpq7loFjI=; b=D7F57pT+5t1JV6DnOmdr6FoVSn4683sjd8wrPnor3f+o7ZtrLn//pLNZNKaaCmuicz O/4F4JED3vDOlfoJXhr4lHOx1ElqkK+2DN8IIzw8FPSqLSb9sdtETGaMv3PdtnWaukOg CAXnB4rPBtxB3ecxSA6Jl4/X5ZHKQ1od0sPbQndx3dwSgqJNnXNzVSq0M+mFpYwCykg8 LPwAflDhC4x7Yij/VIjcMgjiYmfZtExRz/637A+BDX2RwUp6AS9SxSwOANXuT+XVkloF WOTfJQPN85cVXUBYO9tZdfUDgR3ppscTbpeeSf/pcOvR63jPijpFJqBDmO9YrBPBmu91 LdbQ== X-Gm-Message-State: ABUngvficTQDY0Is/vnGsldOaTF4KR5xDAhGNBmWhvM7jqcmnptdU2r/jtSNeUTy4AEC4w== X-Received: by 10.194.89.71 with SMTP id bm7mr7804678wjb.207.1477591108426; Thu, 27 Oct 2016 10:58:28 -0700 (PDT) Original-Received: from keima.localdomain (x2f2271e.dyn.telefonica.de. [2.242.39.30]) by smtp.gmail.com with ESMTPSA id e2sm9741794wjw.14.2016.10.27.10.58.27 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Oct 2016 10:58:27 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:96677 Archived-At: This is a multi-part message in MIME format. --===============6980495511795179954== Content-Type: multipart/alternative; boundary="------------060906070508050903090403" This is a multi-part message in MIME format. --------------060906070508050903090403 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Csikos Bela > 26. Oktober 2016 um 19:36 > Dear list members: > > I have the following context code: > > \definefontfamily [doc] [rm] [TeX Gyre Bonum] > \definefontfamily [doc] [ss] [Tex Gyre Adventor] > \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] > [range=0x00000-0x2FA1F,force=yes] > \definefontfamily [doc] [mm] [TeX Gyre Pagella Math] > \setupbodyfont[doc,10pt] > \starttext > Text font: , {\ss } \\ > Math font: \m{}, \m{\rm }, \m{\ss > } > \stoptext > > 1. In the pdf result \rm math font is Tex Gyre Adventor and \ss math > is Tex Gyre Pagella. > How can I have context to print math \rm with Tex Gyre Pagella serif, > and math \ss > with Tex Gyre Adventor font? Why a roman/serif font is replaced with a > sans serif font? The \rm and \ss commands behave different in math mode and change only the math alphabet, this means you’re always in the same font and the result of A changes from a serif italic uppercase A to a sans serif italic uppercase A to a blackletter uppercase etc. > 2. What range would be the most correct to include all characters for > replacement? \definefontfamily [doc] [rm] [TeX Gyre Bonum] \definefontfamily [doc] [ss] [Tex Gyre Adventor] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=lowercasenormal,offset=lowercasesansserifnormal] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=lowercasenormal,offset=lowercasesansserifnormal,tf=style:italic] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=uppercasenormal,offset=uppercasesansserifnormal] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=uppercasenormal,offset=uppercasesansserifnormal,tf=style:italic] \definefontfamily [doc] [mm] [TeX Gyre Pagella Math] \setupbodyfont[doc,10pt] \starttext Text font: , {\ss } \par Math font: \m{}, \m{\rm }, \m{\ss } \stoptext Wolfgang --------------060906070508050903090403 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
26. Oktober 2016 um 19:36
Dear list members:

I have the following context code:

\definefontfamily [doc] [rm] [TeX Gyre Bonum]
\definefontfamily [doc] [ss] [Tex Gyre Adventor]
\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=0x00000-0x2FA1F,force=yes]
\definefontfamily [doc] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[doc,10pt]
\starttext
Text font: <SERIF C H O N P>, {\ss <SANS SERIF C H O N P>} \\
Math font: \m{<DEFAULT~C~H~O~N~P>}, \m{\rm <SERIF~C~H~O~N~P>}, \m{\ss <SANS~SERIF~C~H~O~N~P>}
\stoptext

1. In the pdf result \rm math font is Tex Gyre Adventor and \ss math is Tex Gyre Pagella.
How can I have context to print math \rm with Tex Gyre Pagella serif, and math \ss
with Tex Gyre Adventor font? Why a roman/serif font is replaced with a sans serif font?
The \rm and \ss commands behave different in math mode and change only the math alphabet,
this means you’re always in the same font and the result of A changes from a serif italic uppercase A
to a sans serif italic uppercase A to a blackletter uppercase etc.
2. What range would be the most correct to include all characters for replacement?
\definefontfamily     [doc] [rm] [TeX Gyre Bonum]
\definefontfamily     [doc] [ss] [Tex Gyre Adventor]

\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=lowercasenormal,offset=lowercasesansserifnormal]
\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=lowercasenormal,offset=lowercasesansserifnormal,tf=style:italic]

\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=uppercasenormal,offset=uppercasesansserifnormal]
\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=uppercasenormal,offset=uppercasesansserifnormal,tf=style:italic]

\definefontfamily     [doc] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[doc,10pt]

\starttext
Text font: <SERIF C H O N P>, {\ss <SANS SERIF C H O N P>} \par
Math font: \m{<DEFAULT~C~H~O~N~P>}, \m{\rm <SERIF~C~H~O~N~P>}, \m{\ss <SANS~SERIF~C~H~O~N~P>}
\stoptext

Wolfgang
--------------060906070508050903090403-- --===============6980495511795179954== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6980495511795179954==--