CZON

KaTeX Formula Display Test Document

Content Writing

👤 Developers, educators, and technical document authors who need to test or use KaTeX for rendering mathematical formulas.
This document is a test document for KaTeX mathematical formula display effects, showcasing the rendering of various mathematical formulas. It includes inline formulas such as E=mc², block-level formulas such as integrals and derivatives, complex formulas such as infinite series summations, and special formulas with cases, matrices, and tables. The document also tests formulas with text descriptions and generalized Kelly formulas. All formulas are designed to verify KaTeX's correct display capabilities, suitable for technical documents or educational materials requiring mathematical formula presentation.
  • ✨ Test inline formulas such as E=mc²
  • ✨ Test block-level formulas such as integrals and derivatives
  • ✨ Showcase complex formulas such as infinite series summations
  • ✨ Include formulas with cases, matrices, and tables
  • ✨ Test formulas with text descriptions
168 words · ~1 min read
  • KaTeX
  • Mathematical Formulas
  • Formula Testing
  • LaTeX
  • Document Testing
  • Technical Documentation

KaTeX Formula Display Test

This is an inline formula test: E=mc2E = mc^2.

This is a block-level formula test:

abf(x)dx=F(b)F(a)\int_a^b f(x) \, dx = F(b) - F(a)

This is another block-level formula test:

ddxex=ex\frac{d}{dx}e^x = e^x

This is a complex formula test:

n=11n2=π26\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}

Formula with cases test:

f(x)={x2if x0xif x<0f(x) = \begin{cases} x^2 & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}

Table formula:

abc123456\begin{array}{c|c|c} a & b & c \\ \hline 1 & 2 & 3 \\ 4 & 5 & 6 \\ \end{array}

Matrix formula:

(1234)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}

Formula containing text test:

E=mc2where m is mass and c is the speed of lightE = mc^2 \quad \text{where } m \text{ is mass and } c \text{ is the speed of light}

Generalized Kelly formula:

f=arg maxfiXPiln(1+fRi)f^* = \argmax_f \sum_{i \in X} P_i \ln (1 + f \cdot R_i)

Please ensure all the above formulas display correctly.

See Also

Referenced By