2021-07-01 09:05:26 +02:00
|
|
|
---
|
|
|
|
title: KaTeX
|
|
|
|
---
|
|
|
|
|
|
|
|
[KaTeX](https://katex.org/) shortcode let you render math typesetting in markdown document.
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```latex
|
|
|
|
{{</* katex [display] [class="text-center"] */>}}
|
|
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
|
|
|
{{</* /katex */>}}
|
|
|
|
```
|
|
|
|
|
|
|
|
<!-- spellchecker-disable -->
|
|
|
|
<!-- prettier-ignore -->
|
|
|
|
{{< katex display >}}
|
|
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
|
|
|
{{< /katex >}}
|
|
|
|
|
|
|
|
<!-- spellchecker-enable -->
|
|
|
|
|
2022-10-14 12:21:12 +02:00
|
|
|
KaTeX can be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter (see above).
|