2024-01-10 12:40:24 +01:00
|
|
|
---
|
|
|
|
title: KaTeX
|
|
|
|
---
|
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
|
2024-02-17 18:57:02 +01:00
|
|
|
|
|
|
|
<div class="book-columns flex flex-wrap">
|
|
|
|
<div class="flex-even markdown-inner">
|
2019-10-08 23:55:34 +02:00
|
|
|
|
|
|
|
```latex
|
2024-02-17 18:57:02 +01:00
|
|
|
{{</* katex display=true class="optional" >}}
|
2020-04-11 20:05:43 +02:00
|
|
|
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
2024-02-17 18:57:02 +01:00
|
|
|
{{< /katex */>}}
|
2019-10-08 23:55:34 +02:00
|
|
|
```
|
|
|
|
|
2024-02-17 18:57:02 +01:00
|
|
|
</div>
|
|
|
|
<div class="flex-even markdown-inner">
|
2019-10-08 23:55:34 +02:00
|
|
|
|
2024-02-17 18:57:02 +01:00
|
|
|
{{< katex display=true class="optional" >}}
|
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 >}}
|
|
|
|
|
2024-02-17 18:57:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-08 23:55:34 +02:00
|
|
|
|
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`
|
2024-02-17 18:57:02 +01:00
|
|
|
{{< katex display=true >}}
|
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.
|