Marco Patzer schrieb am 30.11.2023 um 22:23:
On Thu, 30 Nov 2023 20:51:42 +0100
Wolfgang Schuster <wolfgang.schuster.li...@gmail.com> wrote:

Use the \definetypeface command to load the math font. Math fonts
always use special
settings or load additional settings which are missing when you use
\definefontfamily.

\definetypeface [mainface] [mm] [math] [pagella]
\definetypeface generates the same error message if the font size is
changed:

\definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [ss] [TeX Gyre Heros]

\definetypeface [mainface] [mm] [math] [pagella]

%% 8pt works
\setupbodyfont [mainface, 8.5pt]

\starttext
   \bold{\math{x_y}}
\stoptext

You get the same error with Latin Modern as soon as you use a non predefined font size in combination with bold math.

%%%% begin example
% \starttypescript [math] [default] [size]
%   \definebodyfont [8.5pt] [mm] [default]
% \stoptypescript

\setupbodyfont[8.5pt]

\starttext

\im{x_y}

\mb\im{x_y}

\stoptext
%%%% end example

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to