2019-10-08 23:55:34 +02:00
|
|
|
# KaTeX
|
|
|
|
|
|
|
|
KaTeX shortcode let you render math typesetting in markdown document. See [KaTeX](https://katex.org/)
|
|
|
|
|
2020-01-13 19:05:54 +01:00
|
|
|
## Example
|
2019-10-08 23:55:34 +02:00
|
|
|
{{< columns >}}
|
|
|
|
|
|
|
|
```latex
|
2020-01-13 19:05:54 +01:00
|
|
|
{{</* katex [display] [class="text-center"] */>}}
|
2020-04-11 20:05:43 +02:00
|
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
2019-10-08 23:55:34 +02:00
|
|
|
{{</* /katex */>}}
|
|
|
|
```
|
|
|
|
|
|
|
|
<--->
|
|
|
|
|
2020-04-11 20:05:43 +02:00
|
|
|
{{< katex display >}}
|
|
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
2019-10-08 23:55:34 +02:00
|
|
|
{{< /katex >}}
|
|
|
|
|
|
|
|
{{< /columns >}}
|
|
|
|
|
2020-01-13 19:05:54 +01:00
|
|
|
## Display Mode Example
|
|
|
|
|
|
|
|
Here is some inline example: {{< katex >}}\pi(x){{< /katex >}}, rendered in the same line. And below is `display` example, having `display: block`
|
|
|
|
{{< katex display >}}
|
2020-04-11 20:05:43 +02:00
|
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
2020-01-13 19:05:54 +01:00
|
|
|
{{< /katex >}}
|
|
|
|
Text continues here.
|