Reformat for mathjax of latex