From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96469 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: mathsf / mathversions in context Date: Tue, 11 Oct 2016 23:02:17 +0200 Message-ID: <57FD5359.7090207@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="===============2808858182892576490==" X-Trace: blaine.gmane.org 1476219797 1978 195.159.176.226 (11 Oct 2016 21:03:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2016 21:03:17 +0000 (UTC) User-Agent: Postbox 5.0.4 (Macintosh/20161007) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 11 23:03:12 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 1bu4CS-0007RF-6n for gctc-ntg-context-518@m.gmane.org; Tue, 11 Oct 2016 23:03:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0822E1ABB6; Tue, 11 Oct 2016 23:02:37 +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 aaT4VtmpvG1Y; Tue, 11 Oct 2016 23:02:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0C2351ABB7; Tue, 11 Oct 2016 23:02:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DB3DF1ABB5 for ; Tue, 11 Oct 2016 23:02:34 +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 IWqbwt0oHk8V for ; Tue, 11 Oct 2016 23:02:34 +0200 (CEST) Original-Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (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 139721ABB4 for ; Tue, 11 Oct 2016 23:02:23 +0200 (CEST) Original-Received: by mail-wm0-f41.google.com with SMTP id o81so9136169wma.1 for ; Tue, 11 Oct 2016 14:02:23 -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=iINHDg8HvYV9rMkm7a4O4ouhDD7cdXfJkwIT0gDxZ84=; b=aAXipd+BFZX3CLsJJctKVc6xmb4IGyYwbyg6xhsZQcWmCSx/BMaDm+FRwNgcEFv5DU /ESR8XdkZja+wFU8x4BdPZKrTQ79QsTipIWZ4tqnpQ8I8a7pp/Ex85kPYDzzUHRTbUR3 VFSS2GomymstmZYMR+wo5RLAou3pbbRccRpsVh172Vc3hsNG/ZM/mIiGv4Iy0YdssHh5 wxQmBZt7nTGYYExHeBhKo777Ju62cn9Ixymb/KTVlk1Ua6e2muVvU3/6Xs7OhrMwHU2O yVfSfartDXSHcO3Z42i31T4D2k+7V1najr5IAdlVg657vcgt2datHky506b3Mf0KPccy hGIg== 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=iINHDg8HvYV9rMkm7a4O4ouhDD7cdXfJkwIT0gDxZ84=; b=OUU1GG4wkkqTQOhSutwRbn3nrIRmuCp8fvJLxWCcggM5YAAyyNCLyc9vzT3Kutvnet 9w6igG4gQuQb5Uk3EcvZcPQ/gbY8Apl4mjmjIJHseVBobhLK0ffvhCSVu1fMD2Gl841Y DRyC4bKJtS5cHTTQVuuGgAUmwO/eGnopXnGr9dkDxo3LEgJK31xeWa0dldHQn0iAqIOX RSstblz/kGWo7u4mJHWRZXf+iyAOvsaEeomSyuwii0Ro8h/aRSG5goW/55vtuVj38dxa MNDU/5vB6ySsrCCwYgbgqJNgA0Fk2ewxAsQ1CMhjzvlK90aX+AgmqPE6l+Qal3uaUyyx NRSw== X-Gm-Message-State: AA6/9Rl3xrBfTe8WYCeC4VNjzhg21BV2EIL09KOfDuL5Js+bOM3j8clQOq7zHPGyqwb3Dg== X-Received: by 10.28.11.72 with SMTP id 69mr486881wml.100.1476219743003; Tue, 11 Oct 2016 14:02:23 -0700 (PDT) Original-Received: from keima.localdomain (x2f22162.dyn.telefonica.de. [2.242.33.98]) by smtp.gmail.com with ESMTPSA id p142sm712712wme.9.2016.10.11.14.02.21 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Oct 2016 14:02:21 -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:96469 Archived-At: This is a multi-part message in MIME format. --===============2808858182892576490== Content-Type: multipart/alternative; boundary="------------080602070905020707090708" This is a multi-part message in MIME format. --------------080602070905020707090708 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Csikos Bela > 11. Oktober 2016 um 21:52 > Dear list members: > > I would like to set up Tex Gyre Adventor sans serif font as my math > font (even if it doesn't have > math symbols). I have two questions related to this problem. > > 1. In latex I can specify math font versions, define a specific font > as math serif / normal, another as math > sans serif etc. > (http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml). > Is this possible > in context, and if yes, how? ConTeXt doesn’t use the same style switches as LaTeX. > 2. If I specify Tex Gyre Adventor as default math font in context, I > get compile error. > Here is a MWE, file name is mathfont.tex: > > -------- > \definefontfamily [mathfont] [sf] [Tex Gyre Bonum] > \definefontfamily [mathfont] [mm] [Tex Gyre Adventor] > \setupbodyfont[mathfont,10pt] > > \starttext > > Normal text. > > \math{Inline math expression.} > > Normal text. > > \stoptext > -------- 1. sf is not a valid argument for the second argument of \definefontfamily 2. You need a real math font for mathematics, a text font doesn’t work because it lacks many parameter for math mode. 3. You can use the font fallback mechanism to replace certain character in the math font with characters from a text font. \definefontfamily [mathfont] [rm] [Tex Gyre Bonum] \definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] [preset=math:lowercaseitalic] \definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] [tf=style:italic,range=0x068,offset=0x0210E]% Planck constant \definefontfamily [mathfont] [mm] [Tex Gyre Pagella Math] \setupbodyfont[mathfont,10pt] \starttext Normal text. \math{a + b = c} \stoptext Wolfgang --------------080602070905020707090708 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
11. Oktober 2016 um 21:52
Dear list members:

I would like to set up Tex Gyre Adventor sans serif font as my math font (even if it doesn't have
math symbols). I have two questions related to this problem.

1. In latex I can specify math font versions, define a specific font as math serif / normal, another as math
sans serif etc. (http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml). Is this possible
in context, and if yes, how?
ConTeXt doesn’t use the same style switches as LaTeX.
2. If I specify Tex Gyre Adventor as default math font in context, I get compile error.
Here is a MWE, file name is mathfont.tex:

--------
\definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
\definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
\setupbodyfont[mathfont,10pt]

\starttext

Normal text.

\math{Inline math expression.}

Normal text.

\stoptext
--------
1. sf is not a valid argument for the second argument of \definefontfamily

2. You need a real math font for mathematics, a text font doesn’t work because it lacks many parameter for math mode.

3. You can use the font fallback mechanism to replace certain character in the math font with characters from a text font.

\definefontfamily     [mathfont] [rm] [Tex Gyre Bonum]
\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] [preset=math:lowercaseitalic]
\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] [tf=style:italic,range=0x068,offset=0x0210E]% Planck constant
\definefontfamily     [mathfont] [mm] [Tex Gyre Pagella Math]

\setupbodyfont[mathfont,10pt]

\starttext

Normal text.

\math{a + b = c}

\stoptext

Wolfgang
--------------080602070905020707090708-- --===============2808858182892576490== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwOi8vZm91bmRyeS5zdXBl bGVjLmZyL3Byb2plY3RzL2NvbnRleHRyZXYvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRnYXJk ZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2808858182892576490==--