ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lance Larsen <lance.c.larsen@gmail.com>
To: ntg-context@ntg.nl
Subject: Fonts and equations
Date: Thu, 17 May 2018 05:19:05 -0600	[thread overview]
Message-ID: <CADK45bG89EWygxKGtBqKLphfRuxo-hF9K6q-U_WJLXDyoSDhOA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1401 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1792 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2018-05-17 11:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-17 11:19 Lance Larsen [this message]
2018-05-18  6:55 ` Henri Menke
2018-05-18 20:01 ` Ulrike Fischer
2018-05-18 22:06   ` Henri Menke
2018-05-19 15:53     ` Ulrike Fischer
2018-05-18 19:27 Lance Larsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADK45bG89EWygxKGtBqKLphfRuxo-hF9K6q-U_WJLXDyoSDhOA@mail.gmail.com \
    --to=lance.c.larsen@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).