Skip to main content
All CollectionsEditing and Designing in Gamma
How to write math equations in Gamma with KaTeX
How to write math equations in Gamma with KaTeX

You can use KaTex format math and add superscript and subscript to your card

G
Written by Gamma Team
Updated over 2 months ago

For more information about KaTeX, you can visit: https://katex.org/docs/supported.html

Gamma supports mathematical equations and formatting through KaTeX, a fast and accessible math typesetting library. This allows you to create professional-looking mathematical content directly in your presentations and documents.

What is KaTeX?

KaTeX is a JavaScript library that renders mathematical expressions in web browsers. It's designed to be fast, easy to use, and produces high-quality typesetting similar to LaTeX.

How to add math to Gamma

Use dollar signs ($) to enclose inline math expressions and double dollar signs ($$) for block-level equations.

  • For inline equations: $E = mc^2$

  • For block equations: $$\frac{1}{n} \sum_{i=1}^{n} x_i$$

Simply type your LaTeX expressions between the dollar signs. Gamma will automatically render them as proper mathematical notation.

You can also type /math or drag a math block in from the insert bar.

Common examples

Basic Operations

  • Addition: $a + b$

  • Subtraction: $a - b$

  • Multiplication: $a \times b$ or $a \cdot b$

  • Division: $\frac{a}{b}$

  • Exponents: $a^2$ or $x^{n+1}$

  • Square roots: $\sqrt{x}$ or $\sqrt[n]{x}$

Advanced Mathematics

  • Fractions: $\frac{numerator}{denominator}$

  • Integrals: $\int_{a}^{b} f(x) dx$

  • Summations: $\sum_{i=1}^{n} x_i$

  • Limits: $\lim_{x \to 0} \frac{\sin(x)}{x}$

  • Matrices: $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$

Troubleshooting

If your equation isn't rendering properly:

  • Check for missing or mismatched dollar signs

  • Verify your LaTeX syntax is correct

  • Ensure all brackets and parentheses are properly closed

Did this answer your question?