From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95677 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to switch single font? Date: Fri, 05 Aug 2016 17:29:37 +0200 Message-ID: <57A4B0E1.4000404@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="===============3611029177909200299==" X-Trace: blaine.gmane.org 1470411074 13175 195.159.176.226 (5 Aug 2016 15:31:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2016 15:31:14 +0000 (UTC) User-Agent: Postbox 4.0.8 (Macintosh/20151105) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 05 17:31:05 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 1bVh5N-0001AU-An for gctc-ntg-context-518@m.gmane.org; Fri, 05 Aug 2016 17:30:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 586F11465C; Fri, 5 Aug 2016 17:29:53 +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 OAlBOVbsjVaz; Fri, 5 Aug 2016 17:29:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 42E5014662; Fri, 5 Aug 2016 17:29:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E0F9D1465C for ; Fri, 5 Aug 2016 17:29:50 +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 A9yriNHb_fZr for ; Fri, 5 Aug 2016 17:29:50 +0200 (CEST) Original-Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (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 7CF191465A for ; Fri, 5 Aug 2016 17:29:40 +0200 (CEST) Original-Received: by mail-wm0-f53.google.com with SMTP id o80so42143260wme.1 for ; Fri, 05 Aug 2016 08:29:40 -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=ZeBrVLof70k+npCmkDtF75+Ho1gLc/s34Db+RmOTne8=; b=aldYwdOiMSsNIsbsHoYF0I+o+uyiLz9q8bisPlCekCjNjoezCFqVjNb1XE5xZpDit2 DrmYgnLWHVVFE62MvwTTF2MahGw1YzDRBPtmGZXio67lzpIKo5OMsLuoyAP0PK+MafXA bAsHl8xb/CgNvC1M8eup3cMFzRlJzz8xakD7EL7jNal9TEvo63q3skvkw9dDdU158lyn KGg1GV0yzTpIdCrwb5dgSCOwtAxi8QmdqLEVtbVlHlXbtQrXTU9Rp9A1KhL3Uy1BV/Qh WnUNyHKuh4YQb+IMqMqtQ3nfh7CUmjMBu/cAcTayfFyrdPLPbTbOcGCVB3JlbBUHJ6m5 OH7w== 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=ZeBrVLof70k+npCmkDtF75+Ho1gLc/s34Db+RmOTne8=; b=a4X7aieSul7qOhF5SLOf+YZJnKqcB5fcB8Yvr2Z56nVCShGUADjtky1sInkDf2vitn BQWfFV/W5ctHuiPLjp/cspow1Py/RwDWkQwZ4C9eLBKfbN7jRkG+m5GCjWyDNHde2MiW lWiv9eemcUrnQe+0EjhcAThzkJZSj5w+Ez/v3KklfV3MHvMd1nD08CvghEDZxlNkwHaT YCLKC60BX4DoOTzq4K+w92Dszt/Ov614t4rwTcKvud1AuGnUoSm2isMGAUQwM02Vm5L3 qGZdS+dusOANa54m+UJgShaUxqJf0D/jN8EIlbNXkROjEzMK66ZnNq8D8F0L5ulZrN1C KroA== X-Gm-Message-State: AEkoouvRT26XvuetLmXY+Nokv23pjhs+iMIjZSQygAQMakKQwX5iXDSFcG1RFgTysAkzlA== X-Received: by 10.28.193.77 with SMTP id r74mr3951034wmf.13.1470410980077; Fri, 05 Aug 2016 08:29:40 -0700 (PDT) Original-Received: from keima.localdomain (x2f28bc6.dyn.telefonica.de. [2.242.139.198]) by smtp.gmail.com with ESMTPSA id a2sm9176199wma.2.2016.08.05.08.29.39 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Aug 2016 08:29:39 -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:95677 Archived-At: This is a multi-part message in MIME format. --===============3611029177909200299== Content-Type: multipart/alternative; boundary="------------010004090205060000080602" This is a multi-part message in MIME format. --------------010004090205060000080602 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Henri Menke > 5. August 2016 um 17:03 > Dear list, > > how can I switch to another typeface for the, say, roman font only? > When I use \definefontfamily to do so it switches *all* the fonts, > including math, to the one loaded (example below). This leads to very > undesirable effects, such as math is no longer set in italics. > > Cheers, Henri > > --- > > \definefontfamily[main][rm][Linux Libertine O] > \setupbodyfont[main] > \starttext > foo $bar$ > \stoptext You have to set the math font (and sans serif or mono when you use them) as well because you’re switching to a new collection of fonts when you change the bodyfont. \definetypeface [main] [rm] [serif] [libertine] [default] \definetypeface [main] [mm] [math] [modern] [default] \setupbodyfont[main] \starttext foo $bar$ \stoptext Wolfgang --------------010004090205060000080602 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
5. August 2016 um 17:03
Dear list,

how can I switch to another typeface for the, say, roman font only? When I use \definefontfamily to do so it switches *all* the fonts, including math, to the one loaded (example below). This leads to very undesirable effects, such as math is no longer set in italics.

Cheers, Henri

---

\definefontfamily[main][rm][Linux Libertine O]
\setupbodyfont[main]
\starttext
foo $bar$
\stoptext
You have to set the math font (and sans serif or mono when you use them) as well
because you’re switching to a new collection of fonts when you change the bodyfont.

\definetypeface [main] [rm] [serif] [libertine] [default]
\definetypeface [main] [mm] [math]  [modern]    [default]

\setupbodyfont[main]

\starttext
foo $bar$
\stoptext

Wolfgang
--------------010004090205060000080602-- --===============3611029177909200299== 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= --===============3611029177909200299==--