Files
tpml/themes/reveal-hugo/exampleSite/content/home/shortcodes/math.md
2025-06-25 15:54:11 +02:00

615 B

+++ weight = 31 +++

{{< slide id=math-shortcode >}}

Mathematical equations

Use the math shortcode if you need to enable reveal-js highlighting module (codeFences = false).

{{</* math */>}}
\tag*{(1)} \lim\limits_{x \to \infty} \exp(-x) = 0
{{</* /math */>}}
displays as:

{{< math >}} \tag*{(1)} \lim\limits_{x \to \infty} \exp(-x) = 0 {{< /math >}}

For inline equations, use a self closed math shortcode:

Albert Einstein's famous formula: {{</* math "E=mc^2" /*/>}}
is rendered to:

Albert Einstein's famous formula: {{< math "E=mc^2" />}}