colorv2¶

The colorv2 extension defines the \color macro to be the non-standard macro that is the default in MathJax version 2, namely, it takes two arguments, one the name of the color (or an HTML color of the form #RGB or #RRGGBB), and the second the math to be colored. This is in contrast to the standard LaTeX \color command, which is a switch that changes the color of everything that follows it.

window.MathJax = {
tex: {packages: {'[+]': ['color']}}
};

or, use \require{colorv2} in a TeX expression to load it dynamically from within the math on the page, if the require extension is loaded.

Alternatively, you can configure the autoload package to load colorv2 when \color is used rather than the (LaTeX-compatible) color extension:

window.MathJax = {
tex: {