KaTeX Example

KaTeX Math Examples

Inline math (with $): The quadratic formula is $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$.

Display math:

$$\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}$$

Another example of inline math (with $): A simple fraction is $\frac{1}{2}$.

Using \\( ... \\) for inline math: The derivative of $f(x) = x^2$ is \\( f'(x) = 2x \\).

Using \\[ ... \\] for display math: \\[ \sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6} \\]

Desm --- $Hello!$ example:

 vs.   as  π’œ  vs.  π’œ !"#$%&’()*+,-./0123456789:;<=>?@ABC...Z[\]^_‘abc...z{|}~—– ∅︀

$\KaTeX$ VS MathJax: Which will win?

$$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)}$$

H e l l o , T e X ! Aa1 A a 1 2 3 𝖠 𝖺 𝟣𝟀πŸ₯ 𝘈 𝘒 123 𝙰 𝚊 𝟷𝟸𝟹 𝔸 𝕒 πŸ™πŸšπŸ› π’œ 𝒢 π’œ 𝔄 π”ž 1 2 + ( 3 4 )

I think $\mathbf{\KaTeX}$ and $\mathrm{MathML.}$ both tied.

Why?

Because of the rendering issues!

$$\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