MathJax Incompatibility to LaTex

Issue:

“Error: Missing argument to \begin” when using \color command and together with \boxed command in WordPress with MathJax plugin as if they are under LaTex syntax.

Solution:

Adding {} to embrace the content under the \color command. Actually, in LaTex syntax, \color command does not need to use {} as all content after the \color is coloured according to the defined color, e.g. \color{red}. However, for MathJax, you cannot add another LaTex command immediately after \color command, and you need to add {} to embrace the content to be coloured. For example, \color{red}{\boxed{f(x)}}

Config:

  • WordPress:         2.6.1
  • MathJax plugin:  1.3.4
Close Menu