[NTG-context] Changing font for math function

Wolfgang Schuster schuster.wolfgang at gmail.com
Sat May 9 13:02:53 CEST 2015


> Am 09.05.2015 um 02:03 schrieb Aditya Mahajan <adityam at umich.edu>:
> 
> Hi,
> 
> There is a question on TeX.SX asking how to change the font of \sin, \cos, etc.
> 
> http://tex.stackexchange.com/q/243893/323
> 
> I looked at the code, and there does not appear to be an easy solution. The \mathfunctionlabeltext command has \mathupright hard coded.
> 
> One option is to keep this configurable using \setupmathematics, perhaps mfunction=(normal|italic|sans).
> 
> In any case, I think that the current implementation is a bug. The default font for mathfunctionlabeltext should be typeset in the body font.


MkII used the math font too for \sin etc. but you where able to change it with the “text” key from \definetypeface.

% engine=pdftex

\definetypeface [mathfunction] [rm] [serif] [modern]   [default]
\definetypeface [mathfunction] [ss] [sans]  [modern]   [default]
\definetypeface [mathfunction] [mm] [math]  [palatino] [default] [text=ss]

\setupbodyfont[mathfunction]

\starttext
$sin \sin$
\stoptext

Wolfgang


More information about the ntg-context mailing list