Код: Выделить всё
MathJax.Hub.Config({
jax: ["input/TeX", "output/PreviewHTML"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": {
mtextFontInherit: true
}
});
MathJax Rendering Demo
Médéric
Inline math: The famous equation is $E = mc^2$, where $m$ is mass and $c$ is the speed of light.
Display math: The Gaussian integral is
$$
\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}.
$$
Another example: Solve for $x$ in $\frac{x^2 + 1}{x - 1} = 3$.
Подробнее здесь: https://stackoverflow.com/questions/797 ... th-mathjax