From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100828 Path: news.gmane.org!.POSTED!not-for-mail From: Lance Larsen Newsgroups: gmane.comp.tex.context Subject: Fonts and equations Date: Thu, 17 May 2018 05:19:05 -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="===============2496593136449856523==" X-Trace: blaine.gmane.org 1526625439 26038 195.159.176.226 (18 May 2018 06:37:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 May 2018 06:37:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 18 08:37:14 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 1fJZ0r-0006fA-JQ for gctc-ntg-context-518@m.gmane.org; Fri, 18 May 2018 08:37:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 978EC29E07; Fri, 18 May 2018 08:38:51 +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 2GzBaIsOXqdZ; Fri, 18 May 2018 08:38:50 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C06BC29DF9; Fri, 18 May 2018 08:38:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0D1AB294B8 for ; Thu, 17 May 2018 13:19:17 +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 gpbzOYaUWJ1M for ; Thu, 17 May 2018 13:19:16 +0200 (CEST) Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) (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 6738F294B7 for ; Thu, 17 May 2018 13:19:06 +0200 (CEST) Original-Received: by mail-wm0-f49.google.com with SMTP id a67-v6so7675635wmf.3 for ; Thu, 17 May 2018 04:19:06 -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=V4DPbaVqiUCNFRCFOyVGt6QRmcCPc+GrLVX0WeuCj/U=; b=RK0A4b7pE/Euf3UH9kSkw17Kyzz6+5N9iKQi5m23tqhqzF18ZuEna7iqTEPf8NeUzi 4G0XFMH6LfbOZNEoo8uXXh/w5nVvHGGgc3Wv8gn+gkIBwE1/nR/iTxjJCjhYrF0BOUuH eQ691R/sxhklD5v9dJeuveGCwUaSEfdlvtMfBk28R/mLgksz5r7QJUPo1IPkx/lqS2gH qTmu3Jlg2nKM4NEqU+EqaFR2yYnoh/ZOdxqpzzOGmF2DkBVmtbG3dDOtZufii78Xfgh5 YJcqNNixuXwJoZAj68YJ52aItfmzRSnJww2TQ8/5ctMY+2una2JeZCJU1NnSGqs3lsJJ Jumw== 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=V4DPbaVqiUCNFRCFOyVGt6QRmcCPc+GrLVX0WeuCj/U=; b=AXAlTf8fBOQFiaK46U1TB57ZL7KqkksVH7Mpu3KpmMHPDx990XEBzSAvuhGuYmOLyM Wibce5nt1udAJeXG33CI+Ap6EODBZI04bNazqNnnDSSnkQtHQD6zSDfY5tkOvu0LNa+f kTD7tKdE/x9VqLj0rnnwJlQJhmGxX+zcHYt3o6vXqB58UaX4Y+CiAkHpqWsCDXfrXHm0 3z1RgBChwukcz00ltQpATFZUR2XqDmGhA1k/jGq0ir+fYiabEafcH97twgEV+A1f+cqU vjvsQ5oN9YDOCkgHYyAamUfMJYoASEp6jIhrv7Rj64OMjx4E3kBf+HpcT5OhHb989Feb +r+g== X-Gm-Message-State: ALKqPwc53MflQVeT2yBs5tiFyy595ufC/+WYFHi+Se99FS9JZ0rmUkKM KuWzckrDyKr0gM3qCqNECb+xhPDGyj/gtDPD2O8Ayg== X-Google-Smtp-Source: AB8JxZpPHFn5i0e2NKINbIOi5NDakaEM1ULn2O0uB5UIaHjcWlesBs044mS6KPaG4G1Pj3JgVGerQLkHfDPo8vRGTL0= X-Received: by 2002:a50:b0c3:: with SMTP id j61-v6mr6305456edd.249.1526555945978; Thu, 17 May 2018 04:19:05 -0700 (PDT) Original-Received: by 10.167.193.202 with HTTP; Thu, 17 May 2018 04:19:05 -0700 (PDT) X-Mailman-Approved-At: Fri, 18 May 2018 08:38:50 +0200 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:100828 Archived-At: --===============2496593136449856523== Content-Type: multipart/alternative; boundary="000000000000e3ce4f056c650090" --000000000000e3ce4f056c650090 Content-Type: text/plain; charset="UTF-8" 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] % 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 --000000000000e3ce4f056c650090 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a context document with several equations. One real= ly nice feature with equations is that by default you can search for variab= le names in equation in a PDF reader like acrobat. However, I needed to con= figure the document to use arial for the text. Once I do this, the equation= s 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 equ= ations searchable? Is there a way to change the document font, but not affe= ct the math font? Here is a sample of how I configured the font. The equati= ons 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 \define= fontsynonym [SerifBold]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[name:arial= bold]
=C2=A0 \definefontsynonym [SerifItalic]=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[name:arialitalic]
=C2=A0 \definefontsynonym [Serif= Slanted]=C2=A0 =C2=A0 =C2=A0 =C2=A0 [name:arialitalic]
=C2=A0 \de= finefontsynonym [SerifBoldItalic]=C2=A0 =C2=A0 =C2=A0[name:arialbolditalic]=
=C2=A0 \definefontsynonym [SerifBoldSlanted]=C2=A0 =C2=A0 [name:= arialbolditalic]
=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 availabl= e option
\definetypeface [arial]=C2=A0 =C2=A0 [rm] [serif] [arial= ]

% Set 'arial' 10pt as the default font f= or the document
\setupbodyfont [arial,rm,10pt]

\starttext

$z_1 =3D x_1 + y_1$

$a =3D b + c$

\stoptext

--000000000000e3ce4f056c650090-- --===============2496593136449856523== 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 --===============2496593136449856523==--