From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100831 Path: news.gmane.org!.POSTED!not-for-mail From: Lance Larsen Newsgroups: gmane.comp.tex.context Subject: Re: Fonts and equations Date: Fri, 18 May 2018 13:27:20 -0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8728700230213838402==" X-Trace: blaine.gmane.org 1526671547 18532 195.159.176.226 (18 May 2018 19:25:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 May 2018 19:25:47 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 18 21:25:43 2018 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 1fJl0Y-0004iC-LJ for gctc-ntg-context-518@m.gmane.org; Fri, 18 May 2018 21:25:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A783329FEC; Fri, 18 May 2018 21:27:33 +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 8-ycmhmCZt0N; Fri, 18 May 2018 21:27:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D918A29FEE; Fri, 18 May 2018 21:27:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 339EA29FED for ; Fri, 18 May 2018 21:27:32 +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 I44E0ODCQ7LO for ; Fri, 18 May 2018 21:27:31 +0200 (CEST) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (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 9ABC929FEC for ; Fri, 18 May 2018 21:27:21 +0200 (CEST) Original-Received: by mail-wm0-f50.google.com with SMTP id j5-v6so17037318wme.5 for ; Fri, 18 May 2018 12:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4CWq0V+oV9aEAqFF76Pvr/N4Md/ZGBY1hzOjIZJqTdM=; b=jjzJ+ispBIlsKnruPAHkiP3qlX+fPSQMZY+FOxFhxtYJlR6FzmWS8Q1F77mN1wBrUm SsYpl3r3czP6WHWs+o1ZCbIgpculjk3E0XsiCYxSGsD0Y276+Xru/SbRMDo7TlLih4y5 YZxREcd9CUm9KpP3inGZ3LU7FuqOXla7+DcKmCOXza+e6JsjxHrNJ3HxYjC0HF0C2jnz 50ouwZsIN6OuTJj/2QW1s+m+d4FzIX6oD+TBm68fvi7PXud6zS/ylGDTsJ48z6sO7sFI /rqaCNQ/riqD6Gfpzc4GrP8RvO2T6ceuUx1jhIMK6MlPh2oi1HE09K6+vQF/YqZudEpT 0srQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4CWq0V+oV9aEAqFF76Pvr/N4Md/ZGBY1hzOjIZJqTdM=; b=kxBDyAWfVHkuz/oyxnB11K2ESCKw71wJBMEZJK04y6h1OZy/D03FW9tqqYGS4GdsHu J7Ew4p9iShI0mjzELtNwgrS3n+POG/tLfuUxRR2U5rCj4gnfhaP3dmQAdIFkMUetfoWV Nneo2EtA4iVfHqhgN2cL2VYDGcuFGOozMqRnDJ1RGKCeGi1BznHJG90Aqj3lVTiO1e2E RgtRit84LAgIliGIznZPDJANbL8eB38lt5wGEuvXQJaHhNH3ppf3aTAJAROhj0DCsZdD dON2j3wFpdEO95Sd91OX+SE1aEshbK3N4ynoRWPRAlZQ8fOPfBaLgyIdT+DRuXGcSpMg Cm0A== X-Gm-Message-State: ALKqPwdRjqX4NE2Ck1f+wEY4OZLSOEGmWOUbLBXS47vOwpZkfVIcAbi/ jWZRvH2h3pjrDhWgs8o8Bd92upkYJKzmnvJ+NQM= X-Google-Smtp-Source: AB8JxZr3FO18n0LYa5w/2ASRDvAnCtrkc15Fhf9TPTPxFX9CpOiwKJ7MQsmd/bty/VIn6N24fwS88SBg2Y50vnOT+Ok= X-Received: by 2002:a50:b5e3:: with SMTP id a90-v6mr13145314ede.69.1526671641116; Fri, 18 May 2018 12:27:21 -0700 (PDT) Original-Received: by 10.167.193.202 with HTTP; Fri, 18 May 2018 12:27:20 -0700 (PDT) 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:100831 Archived-At: --===============8728700230213838402== Content-Type: multipart/alternative; boundary="000000000000db833a056c7ff0d5" --000000000000db833a056c7ff0d5 Content-Type: text/plain; charset="UTF-8" Henri, Thanks for the suggestion. I tried to add the additional fonts, but this did not seem to make a difference. The math equations render fine, but a search performed for terms in an equation still does not work when I specify the font. When I remove the font specification, it works fine. There must be some difference in the font that is used even if I don't specify a math font. Any other thoughts about why the math font changes or how to get a math font that is searchable, or get back to the default math font? -Lance ------------------------------ > > Message: 4 > Date: Fri, 18 May 2018 18:55:14 +1200 > From: Henri Menke > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Fonts and equations > Message-ID: <12743277-ebd0-67c7-2393-fe33e97bfaac@gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > > > On 17/05/18 23:19, Lance Larsen wrote: > > I have a context document with several equations. One really nice > > feature with equations is that by default you can search for variable > > names in equation in a PDF reader like acrobat. However, I needed to > > configure the document to use arial for the text. Once I do this, the > > equations are no longer searchable. I assume something happened to the > > mathematics font. How to I change the font for the document text, but > > keep the math equations searchable? Is there a way to change the > > document font, but not affect the math font? Here is a sample of how I > > configured the font. The equations are no longer searchable. > > > > % Load the Arial font values for regular, italics, bold, etc. > > \starttypescript [serif] [arial] > > \definefontsynonym [Serif] [name:arial] > > \definefontsynonym [SerifBold] [name:arialbold] > > \definefontsynonym [SerifItalic] [name:arialitalic] > > \definefontsynonym [SerifSlanted] [name:arialitalic] > > \definefontsynonym [SerifBoldItalic] [name:arialbolditalic] > > \definefontsynonym [SerifBoldSlanted] [name:arialbolditalic] > > \definefontsynonym [SerifCaps] [name:arial] > > \stoptypescript > > > > % Now we define the 'arial' font as an available option > > \definetypeface [arial] [rm] [serif] [arial] > > The typeface "arial" you defined has no math font (and no sans and no > mono font). Add those and you should be fine: > > \definetypeface [arial] [rm] [serif] [arial] > \definetypeface [arial] [ss] [sans] [modern] > \definetypeface [arial] [tt] [mono] [modern] > \definetypeface [arial] [mm] [math] [modern] > > > > > % Set 'arial' 10pt as the default font for the document > > \setupbodyfont [arial,rm,10pt] > > > > \starttext > > > > $z_1 = x_1 + y_1$ > > > > $a = b + c$ > > > > \stoptext > > > --000000000000db833a056c7ff0d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Henri,

Thanks for the suggestion. I tri= ed to add the additional fonts, but this did not seem to make a difference.= The math equations render fine, but a search performed for terms in an equ= ation still does not work when I specify the font. When I remove the font s= pecification, it works fine. There must be some difference in the font that= is used even if I don't specify a math font. Any other thoughts about = why the math font changes or how to get a math font that is searchable, or = get back to the default math font?

-Lance


------------------------------

Message: 4
Date: Fri, 18 May 2018 18:55:14 +1200
From: Henri Menke <henrimenke@gm= ail.com>
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Fonts and equations
Message-ID: <12743277-ebd0-67c7-2393-fe33e97bfaac@gmail.com>
Content-Type: text/plain; charset=3Dutf-8; format=3Dflowed



On 17/05/18 23:19, Lance Larsen wrote:
> I have a context document with several equations. One really nice
> feature with equations is that by default you can search for variable =
> names in equation in a PDF reader like acrobat. However, I needed to <= br> > configure the document to use arial for the text. Once I do this, the =
> equations are no longer searchable. I assume something happened to the=
> mathematics font. How to I change the font for the document text, but =
> keep the math equations searchable? Is there a way to change the
> document font, but not affect the math font? Here is a sample of how I=
> configured the font. The equations are no longer searchable.
>
> % Load the Arial font values for regular, italics, bold, etc.
> \starttypescript [serif] [arial]
>=C2=A0 =C2=A0 \definefontsynonym [Serif]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0[name:arial]
>=C2=A0 =C2=A0 \definefontsynonym [SerifBold]=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[name:arialbold]
>=C2=A0 =C2=A0 \definefontsynonym [SerifItalic]=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0[name:arialitalic]
>=C2=A0 =C2=A0 \definefontsynonym [SerifSlanted]=C2=A0 =C2=A0 =C2=A0 =C2= =A0 [name:arialitalic]
>=C2=A0 =C2=A0 \definefontsynonym [SerifBoldItalic]=C2=A0 =C2=A0 =C2=A0[= name:arialbolditalic]
>=C2=A0 =C2=A0 \definefontsynonym [SerifBoldSlanted]=C2=A0 =C2=A0 [name:= arialbolditalic]
>=C2=A0 =C2=A0 \definefontsynonym [SerifCaps]=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[name:arial]
> \stoptypescript
>
> % Now we define the 'arial' font as an available option
> \definetypeface [arial]=C2=A0 =C2=A0 [rm] [serif] [arial]

The typeface "arial" you defined has no math font (and no sans an= d no
mono font).=C2=A0 Add those and you should be fine:

\definetypeface [arial] [rm] [serif] [arial]
\definetypeface [arial] [ss] [sans]=C2=A0 [modern]
\definetypeface [arial] [tt] [mono]=C2=A0 [modern]
\definetypeface [arial] [mm] [math]=C2=A0 [modern]

>
> % Set 'arial' 10pt as the default font for the document
> \setupbodyfont [arial,rm,10pt]
>
> \starttext
>
> $z_1 =3D x_1 + y_1$
>
> $a =3D b + c$
>
> \stoptext
>
--000000000000db833a056c7ff0d5-- --===============8728700230213838402== 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 --===============8728700230213838402==--