LaTeX

By admin, 13 七月, 2023

https://www.mathjax.org/

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\]

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"

最新评论