Back to Blog
December 3, 20241 min read

LaTeX Math Rendering

Testing mathematical notation with KaTeX.

Math Rendering Test

Inline Math

The quadratic formula is x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.

Display Math

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}

Matrices

[abcd]\begin{bmatrix} a & b \\ c & d \end{bmatrix}

Aligned Equations

E=ρε0B=0\begin{aligned} \nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\ \nabla \cdot \mathbf{B} &= 0 \end{aligned}

Summations

i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}