ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \rm in math mode should give text roman
@ 2014-03-11  0:44 Sanjoy Mahajan
  0 siblings, 0 replies; only message in thread
From: Sanjoy Mahajan @ 2014-03-11  0:44 UTC (permalink / raw)
  To: ntg-context

I don't think it's right that \rm in math mode means \mathrm.  Or, at
least, plain.tex assumes that \rm gives text roman, e.g. from plain.tex
(line 1067),

\def\arctan{\mathop{\rm arctan}\nolimits}

Thus, the following example has the "arctan" text in Euler math.  

This problem doesn't occur with Latin Modern or with Palatino, because
somehow (I'm not quite sure how) they have \rm inside math meaning text
roman.

\usetypescriptfile[euler]

\definetypeface [mainface] [rm] [serif] [pagella][default]
\definetypeface [mainface] [ss] [sans]  [modern] [default]  [rscale=1.075]
\definetypeface [mainface] [tt] [mono]  [dejavu] [default]  [rscale=0.9]
\definetypeface [mainface] [mm] [math]  [pagellaovereuler][default]
\appendtoks \rm \to \everymathematics
\setupmathematics[lcgreek=normal, ucgreek=normal]

\setupbodyfont[mainface]

\starttext
\startformula
\arctan x
\stopformula
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-11  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-11  0:44 \rm in math mode should give text roman Sanjoy Mahajan

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