mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-23 05:10:39 +00:00
40 lines
854 B
Markdown
40 lines
854 B
Markdown
---
|
|
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 >}}
|
|
|
|
KaTeX can also be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter (e.g. `display: block`):
|
|
|
|
<!-- 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.
|