Math & LaTeX
Moraya supports mathematical typesetting via KaTeX, providing fast and accurate LaTeX rendering.
Inline Math
Wrap LaTeX expressions in single dollar signs for inline math:
The equation $E = mc^2$ is famous.
This renders as: The equation E = mc^2 is famous.
Block Math
Use double dollar signs for display math (centered, larger):
$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$
Supported Syntax
KaTeX supports a wide range of LaTeX commands including:
- Greek letters:
\alpha,\beta,\gamma, … - Fractions:
\frac{a}{b} - Subscripts & superscripts:
x_i,x^2 - Square roots:
\sqrt{x} - Summation:
\sum_{i=1}^{n} - Integrals:
\int,\iint - Matrices:
\begin{pmatrix} ... \end{pmatrix}
Paragraph Menu
You can also insert a Math Block from the Paragraph menu in the menu bar (Paragraph > Math Block).