hugo-book-theme/exampleSite/content.en/docs/shortcodes/katex.md
逊狼 79777a9e84 Revert "Revert "🐞 fix issues 352""
This reverts commit fa0d46ccf5.
2021-07-18 23:10:17 +08:00

712 B

KaTeX

KaTeX shortcode let you render math typesetting in markdown document. See KaTeX

Example

{{< columns >}}

{{</* katex [display] [class="text-center"]  */>}}
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
{{</* /katex */>}}

<--->

{{< katex display >}} f(x) = \int_{-\infty}^\infty\hat f(\xi),e^{2 \pi i \xi x},d\xi {{< /katex >}}

{{< /columns >}}

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 >}} f(x) = \int_{-\infty}^\infty\hat f(\xi),e^{2 \pi i \xi x},d\xi {{< /katex >}} Text continues here.