# Write formulas with TeX and KaTeX

[Canonical article](https://slides.com/docs/math-formulas)

Use the **Math** block to display mathematical formulas in your presentation. It accepts TeX input and renders the result in real time.

Here&#39;s a sample formula you can use to give it a try:

```tex
f(x) = \int_{-\infty}^\infty
\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
```

## KaTeX

Math typesetting is powered by the open-source [KaTeX](https://khan.github.io/KaTeX) project. See the [KaTeX documentation](https://khan.github.io/KaTeX/docs/supported.html) for a complete list of supported TeX functions.

## Inline math
You can also include math within a text block by wrapping the formula in one of these delimiters:

- `\( inline math here \)` for inline math
- `\[ display math here \]` for display math on its own line
- `$$ display math here $$` for display math on its own line

&lt;img src=&quot;https://static.slid.es/help/math-formulas-tex/inline-math-2.gif&quot; alt=&quot;Adding an inline formula to a text block&quot; width=&quot;1040&quot; height=&quot;595&quot;&gt;

&lt;img src=&quot;https://static.slid.es/help/math-formulas-tex/Screen-Shot-2014-10-24-at-13.00.23.png&quot; alt=&quot;Inline and display math rendered in a slide&quot; width=&quot;1072&quot; height=&quot;754&quot;&gt;
