jgm/texmath

Feature request: color

Opened this issue · 0 comments

It would be nice to be able to convert color attributes.

For example, from MathML

<math>
    <mi style="color: blue">m</mi>
    <mi>x</mi>
    <mo>+</mo>
    <mi style="color: red">c</mi>
</math>

to/from LaTeX (assuming the color or xcolor package is loaded...)

$$ {\color{blue}m}x+{\color{red}c} $$

which renders as

$$ {\color{blue}m}x+{\color{red}c} $$

Alternatively, (although MathJAX doesn't support this)

$$ \textcolor{blue}{m}x+\textcolor{red}{c} $$