Color in math in MkIV
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
Aditya Mahajan wrote:
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.
math is on the agenda for later this year ... no attributes there yet Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Aditya Mahajan
-
Hans Hagen