KaTeX can be used to generate complex math formulas server-side.
ϕ=2(1+5)=1.6180339887⋯
eiπ=−1
Additional details can be found on
GitHub or on the
Wiki.
Example 1
If the text between
$$ contains newlines it will rendered in display mode:
$$ f(x) = \\int\_{-\\infty}^\\infty\\hat f(\\xi),e^{2 \\pi i \\xi
x},d\\xi $$
f(x)=∫−∞∞f^(ξ),e2πiξx,dξ
Example 2
$$
\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
$$
(ϕ5−ϕ)e52π1=1+1+1+1+1+⋯e−8πe−6πe−4πe−2π
Example 3
$$
1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1.
$$
1+(1−q)q2+(1−q)(1−q2)q6+⋯=j=0∏∞(1−q5j+2)(1−q5j+3)1,for ∣q∣<1.
See also