Math
Inline
Transpiles a given Latex math expression into MathML, using Temml. math inlines the result, for block expressions, see Mathblock. do not include $ to delimit the Latex expression.
| Argument | Type | Required |
|---|---|---|
| content | string |
yes |
Inline usage
{% math "a^2+b^2=c^2" %}
Inline example
...
Block
Works like Math, but rendering the output inside a <figure> element, offering optional caption, and id to reference the expression elsewhere. Do not include $$ to delimit the Latex expression.
| Argument | Type | Required |
|---|---|---|
| content[1] | string |
yes |
| caption | string |
no |
| id | string |
no |
Block usage
{% mathblock "Normal distribution", "equation-id-1" %}
\Phi(x)=\frac{1}{\sqrt{2\pi \sigma^2}}\mathrm{e}^\frac{(x-\mu)^2}{2\sigma^2}
{% endmathblock %}
Block example
...
With paired shortcodes, the first argument is the content placed inside the shortcode's delimiters. ↩︎