Math
Math elements render mathematical equations using LaTeX syntax with KaTeX rendering. They're perfect for displaying complex mathematical formulas, equations, and expressions in a clean, professional format. Each math element can include an optional caption for better context and accessibility.
PropertiesCopied!
equationCopied!
string
required
The LaTeX equation to render. This should contain valid LaTeX mathematical notation that KaTeX can parse and display.
captionCopied!
string
optional
A descriptive caption for the equation. This appears below the rendered math and provides context or explanation for the mathematical expression.
ExamplesCopied!
Basic Math EquationCopied!
<scalar-math equation="x^2 + y^2 = z^2"> </scalar-math>
Math with CaptionCopied!
<scalar-math
equation="E = mc^2"
caption="Einstein's mass-energy equivalence">
</scalar-math>
Complex Mathematical ExpressionCopied!
<scalar-math
equation="\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}"
caption="Gaussian integral">
</scalar-math>
Matrix EquationCopied!
<scalar-math
equation="\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} e \\ f \end{pmatrix}"
caption="System of linear equations in matrix form">
</scalar-math>