Mathematical Formulas

Zolt integrates KaTeX for high-performance mathematical rendering.

You can use LaTeX syntax for both inline and block formulas. For a full list of supported LaTeX functions, you can refer to the official KaTeX documentation .

Inline Math

Use single dollar signs $ for inline formulas:

zolt
The mass-energy equivalence is defined by $E = mc^2$.

The Pythagorean theorem: $a^2 + b^2 = c^2$.

Greek letters: $\alpha, \beta, \gamma, \Delta, \Omega$.
Result

The mass-energy equivalence is defined by E=mc2E = mc^2 .

The Pythagorean theorem: a2+b2=c2a^2 + b^2 = c^2 .

Greek letters: α,β,γ,Δ,Ω\alpha, \beta, \gamma, \Delta, \Omega .

Block Math

Use double dollar signs $$ for standalone block formulas:

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

Advanced Equations

Aligned Equations

zolt
$$
\begin{aligned}
(a+b)^2 &= (a+b)(a+b) \\
        &= a^2 + ab + ba + b^2 \\
        &= a^2 + 2ab + b^2
\end{aligned}
$$
Result
(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}

Quadratic Formula

zolt
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
Result
x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Common Mathematical Symbols

Operations

SymbolLaTeXExample
Fraction\frac{a}{b}ab\frac{a}{b}
Square root\sqrt{x}x\sqrt{x}
nth root\sqrt[n]{x}xn\sqrt[n]{x}
Powera^baba^b
Subscripta_baba_b

Greek Letters

LowercaseLaTeXUppercaseLaTeX
α\alpha\alphaA\Alpha\Alpha
β\beta\betaB\Beta\Beta
γ\gamma\gammaΓ\Gamma\Gamma
δ\delta\deltaΔ\Delta\Delta
ϵ\epsilon\epsilonE\Epsilon\Epsilon
θ\theta\thetaΘ\Theta\Theta
λ\lambda\lambdaΛ\Lambda\Lambda
μ\mu\muM\Mu\Mu
π\pi\piΠ\Pi\Pi
σ\sigma\sigmaΣ\Sigma\Sigma
ϕ\phi\phiΦ\Phi\Phi
ω\omega\omegaΩ\Omega\Omega

Relations

SymbolLaTeX
\neq
\leq
\geq
\approx
\equiv
\in
\notin
\subset
\cup
\cap

Calculus

SymbolLaTeX
\int
\oint
\partial
\nabla
\infty
lim\lim
sum\sum
prod\prod

Trigonometry

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

Formulas with Attributes

Apply Zolt attributes to formulas:

zolt
$$ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} $$ {color=red}
Result
i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}

Best Practices

  1. Use inline math for short formulas within text
  2. Use block math for complex equations
  3. Escape dollar signs with \$ if needed literally
  4. Test rendering especially for complex LaTeX

© 2026 Marmotz