TeX equation
2 min
TeX equation blocks let you render mathematical expressions and equations directly in your documentation. It is useful for technical content, scientific documentation, and educational materials.
Syntax
TeX equations use standard fenced code block syntax.
```tex
E = mc^2
```The content inside the code block must follow standard TeX notation.
Example
The following example renders several common mathematical expressions.
```tex
\begin{aligned}
\int_{-\infty}^{\infty} e^{-x^2}\,dx &= \sqrt{\pi} \\
\sum_{n=1}^{\infty} \frac{1}{n^2} &= \frac{\pi^2}{6} \\
E &= mc^2
\end{aligned}
```Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.