From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95104 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Sans serif for all math in a document.- Date: Mon, 06 Jun 2016 23:03:54 +0200 Message-ID: <5755E53A.8090202@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4618205101469173623==" X-Trace: ger.gmane.org 1465247093 14383 80.91.229.3 (6 Jun 2016 21:04:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2016 21:04:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 06 23:04:41 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bA1hR-0005Lh-Ia for gctc-ntg-context-518@m.gmane.org; Mon, 06 Jun 2016 23:04:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6D3B2ED3D; Mon, 6 Jun 2016 23:04:10 +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 xb9qRuTOlWV3; Mon, 6 Jun 2016 23:04:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id AED05ED5E; Mon, 6 Jun 2016 23:04:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C694EED3D for ; Mon, 6 Jun 2016 23:04:08 +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 7emeA5-5hMbi for ; Mon, 6 Jun 2016 23:04:07 +0200 (CEST) Original-Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) (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 4A38AED3C for ; Mon, 6 Jun 2016 23:03:57 +0200 (CEST) Original-Received: by mail-wm0-f67.google.com with SMTP id m124so18334376wme.3 for ; Mon, 06 Jun 2016 14:03:57 -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=5alT4nuRKQutn5v3UPYIKmSkrmRsIhbLnK7pu58ytu8=; b=gJdX9d8ENHyjRBEu1DjxOPxCkUIioc/dCL2Q9Z2ecubHfM30ve+AdXhd+Kul961oCW 8kWecibDNzS2a6BigKjAuekcWmBk+xNmVeNQiK0+BZ8c1kcGpkajU5ZXxGjgyeNCey1l X2TcIIAxyWpo5dLNfEQq4I99sbNVSajLndaoAELlPNgmvQpu123pwvR9QjxZwY+iajna KpuB0uJXUJUx9adRsAAln/sGBRANwwibhmJ/gM9hOiGrOsCtR9Gg1e6b8nX4rQdkh83E H0nwqBtLNS662e5Q/lMBAzdEDT8WgRazjZqRww5uiiMJvusErbgg0HkOcdedr89H1fyq IiBg== 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=5alT4nuRKQutn5v3UPYIKmSkrmRsIhbLnK7pu58ytu8=; b=EyVXyz7EZtgXuiqh+l/qmuKffhqwnsIM0PRx6/onnr7o9wIX4YkCNfyYyIZqr5Yscs /BcwFWnz7JOZtU6lOutkj5b98E5DEksGjiN0f6OANkIPw/6AQhYfforbzAUnZyOF6sw7 OYNVMyINlfyPGuIuhEjId12D0zS1H25dTADtK32lH8MgwwRe58r1ykeKm4+Qmhjul+Zo JCYoCBPBvt5DJZDjQbJXLKYSADgFvnfLAeDuMyJUjqDn7q7hMX7ANXjUfnsO+tqF/rcu 0ofZBZwMyjNIZ75PJipVTXOQ5SZHjtd3qZ8pn2Td+8+O/giJ/O76DNtJIAZMiMLBBaXK banQ== X-Gm-Message-State: ALyK8tKnhNH3RUPS7KUO84gULVR2vIvkJCwwb+B5fs4oLUwVlGKyDZB3o1j5OK7t/xjGHw== X-Received: by 10.194.5.129 with SMTP id s1mr18160560wjs.96.1465247036985; Mon, 06 Jun 2016 14:03:56 -0700 (PDT) Original-Received: from keima.localdomain (x2f26fd5.dyn.telefonica.de. [2.242.111.213]) by smtp.gmail.com with ESMTPSA id i190sm15862669wmf.10.2016.06.06.14.03.55 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Jun 2016 14:03:56 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) 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:95104 Archived-At: This is a multi-part message in MIME format. --===============4618205101469173623== Content-Type: multipart/alternative; boundary="------------090005040302060105000408" This is a multi-part message in MIME format. --------------090005040302060105000408 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Hans Hagen > 6. Juni 2016 um 22:03 > > > There is support for hvmath (a virtual unicode font is constructed=20 > then) but you need to get those files somewhere. > > An alternative is to roll out your own virtual math font (take a look=20 > at the *.lfg files that have math in their name). > > On the agenda for the tex gyre project is a serif math font (lato or=20 > so) but that will take a while (also awaits funding). The font fallback mechanism is another alternative but one shouldn=E2=80=99= t=20 expect too much because a real sans serif math is necessary to get=20 larger operators. \definefontfamily [mainface] [ss] [Latin Modern Sans] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:digitsnormal] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:digitsbold] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercasenormal] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercaseitalic] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercasebold] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercasebolditalic] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercasenormal] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercaseitalic] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercasebold] \definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercasebolditalic] \definefontfamily [mainface] [mm] [Latin Modern Math] \setupbodyfont[mainface] \starttext abcdefg ABCDEFG 123456 \startformula {\tf abcdefg\,ABCDEFG} \quad abcdefg\,ABCDEFG \quad 123456=20 \quad {\bf 123456} \stopformula \stoptext Wolfgang --------------090005040302060105000408 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
6.= =20 Juni 2016 um 22:03


There is support for hvmath (a virtual unicode font is constructed=20 then)=20 but you need to get those files somewhere.

An alternative is to roll out your own virtual math font (take a=20 look at=20 the *.lfg files that have math in their name).

On the agenda for the tex gyre project is a serif math font (lato or so)=20 but that will take a while (also awaits funding).
The font fallback mechanism is another alternative but one shouldn=E2=80=99= t=20 expect too much because a real sans serif math is necessary to get=20 larger operators.

\definefontfamily=C2=A0=C2=A0=C2=A0=C2=A0 [mainface] [ss] [Latin Modern S= ans]

\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:digitsnormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:digitsbold]

\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:uppercasebolditalic]

\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]=20 [preset=3Dmath:lowercasebolditalic]

\definefontfamily=C2=A0=C2=A0=C2=A0=C2=A0 [mainface] [mm] [Latin Modern M= ath]

\setupbodyfont[mainface]

\starttext

=C2=A0=C2=A0=C2=A0 abcdefg ABCDEFG 123456

=C2=A0=C2=A0=C2=A0 \startformula
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 {\tf abcdefg\,ABCDEFG} \quad abcdef= g\,ABCDEFG \quad 123456 \quad {\bf 123456}
=C2=A0=C2=A0=C2=A0 \stopformula

\stoptext

Wolfgang
--------------090005040302060105000408-- --===============4618205101469173623== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4618205101469173623==--