Drupal有插件,但默认版本为2.7,装了以后需要把在文本格式增加MathLax过滤器并放到最后(MathLax配置页面有描述):https://www.drupal.org/project/mathjax
CKEditor本身不支持LaTeX语法,但可以通过插件来实现LaTeX语法的支持。有一些第三方的插件,例如MathJax和CKEditor Math,可以在CKEditor中支持LaTeX语法。其中,MathJax是一个用于在Web页面中显示数学公式的JavaScript库,而CKEditor Math是一个专门为CKEditor设计的插件,可以在CKEditor中方便地编辑和插入数学公式。
$$\sigma^2$$
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
If the MathJax library is installed properly, you should see the square root of x here: $ \sqrt{x} $ and the square root of y here: \(\sqrt{y}\)
$$\text{The quadratic formula should appear here: } x = \frac {-b \pm \sqrt {b^2 - 4ac}}{2a}$$
\[\text{The cubic equation should appear here: } a x^3\; +\; b x^2\; +\; c x\; +\; d\; =\; 0\]
评论