On 5/9/2015 2:03 AM, Aditya Mahajan wrote:
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 bodyfont.

this is evil (as it's unpredictable, so no support for side effects):

% \prependtoks \rm \to \everymathematics

i've added (uploading beta now)

\setupmathematics
  [functionstyle=\ss,
   functioncolor=red]

\starttext
\startformula
  f = \sin i\omega x^{\sin(x^{\sin(y)})}
\stopformula
\stoptext

best test this because Mojca will at some point push into tex live (at which moment we have a current)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to