KaTeX Example

KaTeX in H1: The Equation \\( E=mc^2 \\) is Famous.

And an Integral: \\[ \int x^2 dx = \frac{x^3}{3} + C \\]

Here's some inline math using the single dollar sign: $a^2 + b^2 = c^2$.

And another inline example with `\\(` and `\\)`: The derivative of $f(x) = \sin(x)$ is \\( f'(x) = \cos(x) \\).

Now, a display equation using double dollar signs:

$$\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$$

Finally, a display equation using `\\[` and `\\]`:

\[ \frac{d}{dx} \left( \int_{a}^{x} f(t) dt \right) = f(x) \]

Desm --- $Hello!$ example: (Note: The `Hello!` here will be rendered by KaTeX, not MathML.)

$$Hello, TeX!\\ \mathrm{Aa123} \mathit{Aa123} \mathsf{Aa123} \mathsfit{Aa123} \mathtt{Aa123} \mathbb{Aa123} \mathscr{Aa} \mathcal{A} \mathfrak{Aa} \sqrt{\frac12+\left(\frac34\right)}$$

I think $\mathbf{\KaTeX}$ is a strong contender for web math.

Why?

Because of its speed and print-like quality!

$$\raisebox{0pt}[0pt][0pt]{\Large% \textbf{Aaaa\raisebox{-0.3ex}{a}% \raisebox{-0.7ex}{aa}\raisebox{-1.2ex}{r}% \raisebox{-2.2ex}{g}\raisebox{-4.5ex}{h}}}\centerdot$$

Comments

Popular Posts