Mathematical Formulas in Zolt

Zolt integrates KaTeX for high-performance mathematical rendering. You can use LaTeX syntax for both inline and block formulas.

Inline Math

Use single dollar signs $ for inline formulas:

Block Math

Use double dollar signs $$ for standalone block formulas:

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

Complex equations with alignment (using standard LaTeX environments):

(a+b)2=(a+b)(a+b)=a2+ab+ba+b2=a2+2ab+b2\begin{aligned} (a+b)^2 &= (a+b)(a+b) \\ &= a^2 + ab + ba + b^2 \\ &= a^2 + 2ab + b^2 \end{aligned}

Formulas with Attributes

You can apply Zolt attributes to formulas, such as IDs for referencing or custom styling:

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

Practical Examples

Statistics

The standard normal distribution probability density function:

f(x)=1σ2πe12(xμσ)2f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}

Physics

Maxwell's Equations:

E=ρε0\nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0}
B=0\nabla \cdot \mathbf{B} = 0
×E=Bt\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}
×B=μ0(J+ε0Et)\nabla \times \mathbf{B} = \mu_0\left(\mathbf{J} + \varepsilon_0\frac{\partial \mathbf{E}}{\partial t}\right)

Trigonometry

FunctionIdentity
Sinesin2θ+cos2θ=1\sin^2\theta + \cos^2\theta = 1
Tangenttanθ=sinθcosθ\tan\theta = \frac{\sin\theta}{\cos\theta}

← Back to Examples Index