docs/input/LaTeX shortcuts
input

LaTeX shortcuts

Mathleagues uses KaTeX for mathematical rendering. The same syntax works in prompts, answer fields, and written work.

syntax basics

Use $x^2$ for inline math and $$x^2$$ for display math. The proof editor also recognizes raw commands entered through its keyboard shortcuts and toolbar.

mixed text and math
Let $f: \mathbb{R} \to \mathbb{R}$ be continuous.
By the intermediate value theorem, there exists
$c \in (a,b)$ such that $f(c)=0$.

rendering an example

This is the same mixed-content renderer used by problem statements: The answer is 12\frac{1}{2}.

i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
math mode only
KaTeX renders mathematical syntax, not a full LaTeX document. Preambles, packages, and TikZ diagrams are not part of the input format.