2021-07-01 00:05:26 -07:00
|
|
|
---
|
|
|
|
title: KaTeX
|
|
|
|
---
|
|
|
|
|
|
|
|
[KaTeX](https://katex.org/) shortcode let you render math typesetting in markdown document.
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
{{< columns >}}
|
|
|
|
|
|
|
|
```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 -->
|
|
|
|
|
|
|
|
{{< /columns >}}
|
|
|
|
|
2022-02-22 12:45:14 -08:00
|
|
|
KaTeX can also be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter (e.g. `display: block`):
|
2021-07-01 00:05:26 -07:00
|
|
|
|
|
|
|
<!-- 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 -->
|
|
|
|
|
|
|
|
Text continues here.
|