Math
Use the math
shortcode to render mathematical formulas and equations using KaTeX.
Basic Usage
The math shortcode accepts a content
parameter with the LaTeX formula:
{{ math(content="E=mc^2") }}
Inline Formulas
Use the math shortcode to add inline mathematical expressions:
When a \ne 0 , there are two solutions to ax^2 + bx + c = 0 .
When {{ math(content="a \ne 0") }}, there are two solutions to {{ math(content="ax^2 + bx + c = 0") }}.
Complex Formulas
The shortcode supports complex LaTeX formulas:
\displaystyle\sum_{i=1}^{n} i = \frac{n(n+1)}{2}{{ math(content="\displaystyle\sum_{i=1}^{n} i = \frac{n(n+1)}{2}") }}
Greek Letters
\alpha, \beta, \gamma, \delta, \epsilon{{ math(content="\alpha, \beta, \gamma, \delta, \epsilon") }}
Fractions and Roots
\frac{a}{b}, \sqrt{x}, \sqrt[n]{x}{{ math(content="\frac{a}{b}, \sqrt{x}, \sqrt[n]{x}") }}
Matrices
\begin{pmatrix} a & b \\ c & d \end{pmatrix}{{ math(content="\begin{pmatrix} a & b \\ c & d \end{pmatrix}") }}