docs(math): render all LaTeX examples

Replace code-only examples with syntax/rendered table showing:
- Greek letters, fractions, subscripts, sums, integrals, roots, matrices

Add display math examples: Gaussian integral, Euler's identity,
Schrödinger equation.
This commit is contained in:
Timothy DeHerrera
2026-02-01 12:08:52 -07:00
parent 96275b0751
commit 04bf87c02a

View File

@@ -38,13 +38,29 @@ Or fence with `math` language:
KaTeX supports a large subset of LaTeX math: KaTeX supports a large subset of LaTeX math:
- Greek letters: `$\alpha, \beta, \gamma$` | Feature | Syntax | Rendered |
- Fractions: `$\frac{a}{b}$` | ----------------------- | ---------------------------------------------- | ---------------------------------------------- |
- Subscripts/superscripts: `$x_i^2$` | Greek letters | `\alpha, \beta, \gamma` | $\alpha, \beta, \gamma$ |
- Summations: `$\sum_{i=1}^{n} i$` | Fractions | `\frac{a}{b}` | $\frac{a}{b}$ |
- Integrals: `$\int_a^b f(x)\,dx$` | Subscripts/superscripts | `x_i^2` | $x_i^2$ |
- Matrices: `$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$` | Summations | `\sum_{i=1}^{n} i` | $\sum_{i=1}^{n} i$ |
- And much more... | Integrals | `\int_a^b f(x)\,dx` | $\int_a^b f(x)\,dx$ |
| Square roots | `\sqrt{x^2 + y^2}` | $\sqrt{x^2 + y^2}$ |
| Matrices | `\begin{pmatrix} a & b \\ c & d \end{pmatrix}` | $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$ |
### Display Math Examples
The Gaussian integral:
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$
Euler's identity:
$$e^{i\pi} + 1 = 0$$
The Schrödinger equation:
$$i\hbar\frac{\partial}{\partial t}\Psi = \hat{H}\Psi$$
## How It Works ## How It Works