From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98520 Path: news.gmane.org!.POSTED!not-for-mail From: "Sebastian L." Newsgroups: gmane.comp.tex.context Subject: Re: Unable to switch math fonts Date: Mon, 24 Jul 2017 23:41:15 +0200 Message-ID: <61c060e8-4ffb-b472-df66-390492a8c8fd@gmail.com> References: <13b3e6da-c3c1-4243-dab5-3cca95c5c730@gmx.es> <20170721123311.gkughowlud2sslj5@odessa> <34c13d72-2354-159a-9acd-282b151158c7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6723943216080183937==" X-Trace: blaine.gmane.org 1500932509 2521 195.159.176.226 (24 Jul 2017 21:41:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2017 21:41:49 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 24 23:41:44 2017 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 1dZl6m-0000Ng-2O for gctc-ntg-context-518@m.gmane.org; Mon, 24 Jul 2017 23:41:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6EC4E104B95; Mon, 24 Jul 2017 23:41:31 +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 yrmFDUVI4l97; Mon, 24 Jul 2017 23:41:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D1F6A104B63; Mon, 24 Jul 2017 23:41:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6374C104B63 for ; Mon, 24 Jul 2017 23:41:29 +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 gjvMTsfw_lAl for ; Mon, 24 Jul 2017 23:41:27 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (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 3EB42104B62 for ; Mon, 24 Jul 2017 23:41:17 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id c184so36529216wmd.0 for ; Mon, 24 Jul 2017 14:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=1KaZqAQPTgq6VwIfKxNiVDHbb4Oy2xp0XmRhVChkTkk=; b=JRtAFbAqUGKXeoUxUocuglZ6sjYwVR/X1VKfss4AbFsuT/EFMJumq2z7z6VgsULYug qTlIJ+jOiSV5UQnzHsa5ycMdsWA1M79gg79DxUByMtzQ7pYNyVXmK9Nwa8+fTxdL7b58 eZuiG57Sri9NN9lRLRlfBURlOE2C6c4zZLV3M0F03KGZCYvJghpJdLewKMbVU/hSgIT6 Ua87NSeRn/60l7XdaMjfkgcOmB0GIkIo+J4WfBiyfnNd3or2kHQ3jYXdoH9QKDUgsZdF W1anhqDzao0lVV+gF62yx/KWeemcqCgXnn33nLfB5wwVFhn3QOtG97C0FhpqlZOeQkee Scsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=1KaZqAQPTgq6VwIfKxNiVDHbb4Oy2xp0XmRhVChkTkk=; b=GmEInVvxoHc48YlPD62urX97JVGEkpIspkiLGok+DkCKHUH3TkEkL0Uw+xJZSHEslR IU0xqAwQwIjDK2JfDS5KMMqcyLvzEz/rrA5xQd8XaX/rQSo3czAzCU8mjI0Q9Pd99Sj9 JRcLFwp1FjNIH+agQfl5l/vHK3ZQsbcO6CLjDL8om7bfK839VQNYgcRJgq9f+Y6mmh/d 8g8YkNNyWJNWQxaDbDs+608afkqMO5jSiBcvA3junzx4GDZclMuCedbifB4d38qcbbTe t/TBTBkRGVAoBoRrF/VJRlHuma1O0QMwYgn1BGRiiwbMZOjTaMwL+uJaf14ZUCxPH78r kS5A== X-Gm-Message-State: AIVw110ZBf2BaPaVH3iKpUwV5yyiotHPIkISRbEmrL2yPLB+gch1jjDl vHPIZrkT3vz/5I6mJZs= X-Received: by 10.28.109.26 with SMTP id i26mr5961995wmc.64.1500932476508; Mon, 24 Jul 2017 14:41:16 -0700 (PDT) Original-Received: from [192.168.1.2] (port-92-201-29-140.dynamic.qsc.de. [92.201.29.140]) by smtp.gmail.com with ESMTPSA id r3sm13712963wra.97.2017.07.24.14.41.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 14:41:16 -0700 (PDT) In-Reply-To: Content-Language: en-GB 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:98520 Archived-At: This is a multi-part message in MIME format. --===============6723943216080183937== Content-Type: multipart/alternative; boundary="------------2646FF86F6DEEFCA6F8FAF0E" Content-Language: en-GB This is a multi-part message in MIME format. --------------2646FF86F6DEEFCA6F8FAF0E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Yes it helps, thanks; it explains why there was so little response to this. ;) After some search I found regular style pictures of it. I was sure, that it was italic as standard, because that's what "modern" suggests: compability for current regulations (i.e. regular constants, italic variables) as well as an attractive style overall. But since Neo Euler seems to have no italic style, it is of no use for academic purposes, like in my case. The story, to add to the subject of the mail, in case somebody searches the archive for this, is that I wasn't able to find out is how to change the math font only, as i like the standard font with \setupbodyfont[sans] as global setup but not the style of (non-modern) Euler. I tried \definefontfamily [mainface] [mm] [Xits Math] but this changes the whole typeface; not what I want. So the trick is to define the standard font for the rest of the font variations. The standard font can be found out with \showbodyfont. At least that's what it suggests. But it gives you "modern-design" as font. When you use this within \definefontfamily then it gives you nothing, because the real id of the standard font is "modern". So to change the math font only and keep the main font standard, you have to use this command group (just in case somebody looks for it): \definefontfamily [mainface] [rm] [Modern] % = serif \definefontfamily [mainface] [ss] [Modern] % = sans \definefontfamily [mainface] [tt] [Modern] % = mono (teletype) \definefontfamily [mainface] [mm] [Xits Math] [rscale=1.03] % = math But as this seems to be so trivial, that few people care, I really have to wonder why people who test CTX criticise the lack of documentation. We (especially who haven't been through LaTeX or even TeX) seem to be a minority. Cheers and thanks, S. On 23/07/2017 21:22, Pablo Rodriguez wrote: > On 07/22/2017 03:16 AM, Sebastian L. wrote: >> Hi, I have trouble with Neo Euler font after playing around with those >> options. >> [...] >> I am pretty sure that before I started mixing the fonts in one single >> document, Neo Euler was italic. >> >> Does anybody have a clue what might have went wrong? > Hi Sebastian, > > as far as I remember, Neo Euler is a regular font only > (https://github.com/khaledhosny/euler-otf). > > Euler is an italic font and it might have the other regular, bold, bold > italic typefaces (I don’t know). > > I hope it helps, > > Pablo --------------2646FF86F6DEEFCA6F8FAF0E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Yes it helps, thanks; it explains why there was so little response to this. ;)
After some search I found regular style pictures of it. I was sure, that it was italic as standard, because that's what "modern" suggests: compability for current regulations (i.e. regular constants, italic variables) as well as an attractive style overall. But since Neo Euler seems to have no italic style, it is of no use for academic purposes, like in my case.

The story, to add to the subject of the mail, in case somebody searches the archive for this, is that I wasn't able to find out is how to change the math font only, as i like the standard font with \setupbodyfont[sans] as global setup but not the style of (non-modern) Euler.
I tried

\definefontfamily [mainface] [mm] [Xits Math]
but this changes the whole typeface; not what I want.
So the trick is to define the standard font for the rest of the font variations. The standard font can be found out with \showbodyfont. At least that's what it suggests. But it gives you "modern-design" as font. When you use this within \definefontfamily then it gives you nothing, because the real id of the standard font is "modern". So to change the math font only and keep the main font standard, you have to use this command group (just in case somebody looks for it):
\definefontfamily [mainface] [rm] [Modern] % = serif
\definefontfamily [mainface] [ss] [Modern] % = sans
\definefontfamily [mainface] [tt] [Modern] % = mono (teletype)
\definefontfamily [mainface] [mm] [Xits Math] [rscale=1.03] % = math

But as this seems to be so trivial, that few people care, I really have to wonder why people who test CTX criticise the lack of documentation. We (especially who haven't been through LaTeX or even TeX) seem to be a minority.

Cheers and thanks, S.
On 23/07/2017 21:22, Pablo Rodriguez wrote:
On 07/22/2017 03:16 AM, Sebastian L. wrote:
Hi, I have trouble with Neo Euler font after playing around with those
options.
[...]
I am pretty sure that before I started mixing the fonts in one single
document, Neo Euler was italic.

Does anybody have a clue what might have went wrong?
Hi Sebastian,

as far as I remember, Neo Euler is a regular font only
(https://github.com/khaledhosny/euler-otf).

Euler is an italic font and it might have the other regular, bold, bold
italic typefaces (I don’t know).

I hope it helps,

Pablo

--------------2646FF86F6DEEFCA6F8FAF0E-- --===============6723943216080183937== 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 --===============6723943216080183937==--