# [Bug 35186] MathJax: Several commands that work in texvc are not recognized

https://bugzilla.wikimedia.org/show_bug.cgi?id=35186

--- Comment #47 from Richard Morris <r...@singsurf.org> ---
The treatment of \color is very different between the two versions.
Looking at
http://docs.mathjax.org/en/latest/tex.html#color
we see
"The \color command in the core TeX input jax is not standard in that it takes
the mathematics to be colored as one of its parameters, whereas the LaTeX
\color command is a switch that changes the color of everything that follows
it."

This means in texvc we have
$foo \color{Red} Red text \color{Black} bar$
which breaks mathjax.

You can fix things so that
$foo {\color{Red}{Red text}} bar$
which seems to work with both mathjax and also texvc. Note it needs the text to
be colored in { } so mathjax recognises the first argument, and also { } around
the whole thing so texvc does not get confused.

A further issue is the colors supported. LaTeX's colors are

Apricot    Aquamarine    Bittersweet    Black
Blue    BlueGreen    BlueViolet    BrickRed
etc

But MathJax only support colors with CSS names. So no Apricot, Bittersweet,
BlueGreen or BrickRed. You can see the difference by viewing
https://en.wikipedia.org/wiki/Help:Formula#Color
with the different renderers.

There is MathJax color.js extension. Which makes the color handling like the
texvc and I think define latex rather than CSS colors. It might be worth
installing.

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l