ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mathsf / mathversions in context
@ 2016-10-11 19:52 Csikos Bela
  2016-10-11 21:02 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Csikos Bela @ 2016-10-11 19:52 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-27 16:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-11 19:52 mathsf / mathversions in context Csikos Bela
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

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).