MathJax
Contents
MathJax, a JavaScript engine to display mathematics equations in browsers. It can translate expressions written in AsciiMath, LaTeX or MathML.
Enable global LaTeX math rendering by set math = true
in config/_default/params.toml
.
Enable per page basis LaTex math rendering by set math = true
in front matter
of desired page.
Example 1:
|
|
一元二次方程式 $(ax^2 + bx + c = 0)$ 的兩個根為:
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$
Example 2:
|
|
This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$
Example 3:
|
|
Reference:$$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$