MathJax能够帮助你在文章中方便的加入数学公式,使用 MathML、LaTeX 和 ASCIIMathML 语法。
你需要在 _config.yml 或 YAML 头信息中设置相关的属性为 true
来开启对应的功能。
Mathjax
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
\[x_1 = {-b + \sqrt{b^2-4ac} \over 2a}\] \[x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag\]markdown:
When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are
$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$
$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$
当 MathJax 激活后,你可以设置 mathjax_autoNumber: true
让公式自动编号,你可以使用 \notag 或者 \nonumber 阻止某条公式自动编号。