Math/LaTeX Block
Render mathematical expressions using LaTeX syntax with support for display mode and inline equations.
Overview
The Math/LaTeX block renders mathematical expressions using KaTeX, a fast and accurate LaTeX rendering library. Use this block to display equations, formulas, and mathematical notation in your documentation.
Display Mode Example
Display mode centres the equation on its own line, suitable for important formulas.
Quadratic Formula
Complex expressions render correctly with proper spacing and sizing.
Summation and Integrals
Mathematical operators with limits display correctly.
Matrix Notation
Matrices and arrays are supported with proper bracket rendering.
Block Properties
| Property | Required | Description |
|---|---|---|
| expression | Yes | The LaTeX expression to render |
| displayMode | No | When true, centres the equation on its own line. When false, renders inline with text. Default: false |
| caption | No | Descriptive text displayed below the equation |