mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-18 10:50:39 +00:00
34 lines
790 B
Markdown
34 lines
790 B
Markdown
---
|
|
title: KaTeX
|
|
---
|
|
|
|
[KaTeX](https://katex.org/) shortcode let you render math typesetting in markdown document.
|
|
|
|
## Usage
|
|
|
|
```latex
|
|
{{</* katex [display] [class="text-center"] */>}}
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
|
{{</* /katex */>}}
|
|
```
|
|
|
|
### Attributes
|
|
|
|
<!-- prettier-ignore-start -->
|
|
<!-- spellchecker-disable -->
|
|
{{< propertylist name=shortcode-katex sort=name order=asc >}}
|
|
<!-- spellchecker-enable -->
|
|
<!-- prettier-ignore-end -->
|
|
|
|
## Example
|
|
|
|
<!-- 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 -->
|
|
|
|
KaTeX can be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter as above.
|