From: Csikos Bela <bcsikos425@freemail.hu>
To: ntg-context@ntg.nl
Subject: mathsf / mathversions in context
Date: Tue, 11 Oct 2016 21:52:01 +0200 (CEST) [thread overview]
Message-ID: <freemail.20161011215201.83562.1@fmxmldata05.freemail.hu> (raw)
Dear list members:
I would like to set up Tex Gyre Adventor sans serif font as my math font (even if it doesn't have
math symbols). I have two questions related to this problem.
1. In latex I can specify math font versions, define a specific font as math serif / normal, another as math
sans serif etc. (http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml). Is this possible
in context, and if yes, how?
2. If I specify Tex Gyre Adventor as default math font in context, I get compile error.
Here is a MWE, file name is mathfont.tex:
--------
\definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
\definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
\setupbodyfont[mathfont,10pt]
\starttext
Normal text.
\math{Inline math expression.}
Normal text.
\stoptext
--------
Running context mathfont.tex gives:
This is LuaTeX, Version 0.98.3 (TeX Live 2017/dev)
system commands enabled.
....
tex error > tex error on line 9 in file ..../mathfont.tex: ! Math error: parameter \Umathquad\textstyle is not set
\m_syst_action_nop ...artimath #1\normalstopimath
\fi
l.9 \math{Inline math expression.}
1 \definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
2 \definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
3 \setupbodyfont[mathfont,10pt]
4
5 \starttext
6
7 Normal text.
8
9 >> \math{Inline math expression.}
10
11 Normal text.
12
13 \stoptext
?
I would appreciate any help or explanations on the topic, or naming a document that explains it.
Thanks in advance,
bcsikos
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2016-10-11 19:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-11 19:52 Csikos Bela [this message]
2016-10-11 21:02 ` Wolfgang Schuster
2016-10-14 14:56 ` Csikos Bela
2016-10-16 18:23 ` Wolfgang Schuster
2016-10-20 14:59 ` Csikos Bela
2016-10-26 18:22 ` Wolfgang Schuster
2016-10-27 16:42 ` Csikos Bela
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=freemail.20161011215201.83562.1@fmxmldata05.freemail.hu \
--to=bcsikos425@freemail.hu \
--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).