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:
$\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)}$$
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
Post a Comment