KaTex

EasyDocs uses KaText to render mathematical equations. To integrate KaTeX, wrap your math expression between two dollar signs ($) for a block-level equation or a single dollar sign ($) for inline math.

Warning

Never forget to wrap your math expression between two $ or two $.

A list of the supported notations is here. You can write your mathematical expressions on the KaTex demo page.

Demo

Block-level equation

$$
ax^2 + bx + c = 0
$$
ax2+bx+c=0ax^2 + bx + c = 0

or

$$
begin{equation}
begin{split}
(a - b)^2 &= (a - b)(a - b) \
&= a(a - b) - b(a - b)      \
&= a^2 -ab -ba + b^2        \
&= a^2 + 2ab + b^2          nonumber
end{split}
end{equation}
$$
(ab)2=(ab)(ab)=a(ab)b(ab)=a2abba+b2=a2+2ab+b2\begin{equation} \begin{split} (a - b)^2 &= (a - b)(a - b) \\ &= a(a - b) - b(a - b) \\ &= a^2 -ab -ba + b^2 \\ &= a^2 + 2ab + b^2 \nonumber \end{split} \end{equation}

Inline equation

$E = mc^2$

E=mc2E = mc^2