Color in MathJax

On my blog, I want to display the question in red and the answer in blue. In the question and answer, I use MathJAx to render MathML. I control the coloring of MathJax using CSS. Like this

    h3, h2, h4, h5
    {
        text-align: left;
        font-weight: bold;
        font-family: Verdana;
    }
    .question
    {
        text-align: left;
        color: Red;

    }
    .centerit
    {
        color: Blue;
        text-align: center;
    }

which work fine in IE, but in FireFox, does it always display MathJax in black? To solve this problem, you need to solve any problem. I am using MathJax 2.

Thankx

+5
source share
2 answers

URL file://, Firefox, , MathJax , -. . MathJax FAQ, @font-face Firefox. MathJax , . MathJax GitHub ( , "Raw" ).

, .

+3

MathJax supports macros \color, but it differs from LaTeX. LaTeX \colorworks like simple TeX commands, such as \bf, but MathJax accepts it as a LaTeX command, for example \textbf.

\[ \color{red} The whole sentence is red in LaTeX,
   but only the initial T is colored in MathJax.  \]
+6
source

All Articles