2021-07-01 07:05:26 +00:00
|
|
|
---
|
|
|
|
title: KaTeX
|
|
|
|
---
|
|
|
|
|
|
|
|
[KaTeX](https://katex.org/) shortcode let you render math typesetting in markdown document.
|
|
|
|
|
2023-10-27 19:38:23 +00:00
|
|
|
## Usage
|
2021-07-01 07:05:26 +00:00
|
|
|
|
|
|
|
```latex
|
|
|
|
{{</* katex [display] [class="text-center"] */>}}
|
|
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
|
|
|
{{</* /katex */>}}
|
|
|
|
```
|
|
|
|
|
2023-10-27 19:38:23 +00:00
|
|
|
### Attributes
|
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<!-- spellchecker-disable -->
|
|
|
|
{{< propertylist name=shortcode-katex sort=name order=asc >}}
|
|
|
|
<!-- spellchecker-enable -->
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
2021-07-01 07:05:26 +00: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 -->
|
|
|
|
|
2023-10-27 19:38:23 +00:00
|
|
|
KaTeX can be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter as above.
|