ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Color in math in MkIV
@ 2008-09-02 12:42 Aditya Mahajan
  2008-09-02 13:54 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2008-09-02 12:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

The color commands do not work inside math mode in MKIV. For example

$f(\color[blue]{A}) = b$

$f({\blue A}) = b$

come out black and

$f(\blue{A}) = b$

colors everything blue. I have an easy work around for the moment:

\unprotected\def\mathcolor[#1]#2%
   {\preparebinrel{#2}
    \currentbinrel{\text{\color[#1]$\m@th #2$}}}


and then use \mathcolor.

Aditya

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-09-02 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-02 12:42 Color in math in MkIV Aditya Mahajan
2008-09-02 13:54 ` Hans Hagen

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