v2-color.html

This example illustrates the difference between the behavior of \color in v2 and v3. The default v3 behavior when using the MathJax input/tex or input/tex-full components (or any of the ones based on them, such as tex-chtml or tex-svg) is the LaTeX-compatible behavior, not the non-standard v2 behavior.

In addition to illustrating the difference between the two, this example also explains how to get the old v2 behavior, for backward compatibility.

The key lines for doing that are:

  <script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\$$', '\$$']],

which tells the autoload extension not to autoload the color extension, but instead autoload the original \color behavior from the colorV2 extension.