Skip to content
Dmitry Shachnev edited this page Feb 5, 2021 · 6 revisions

This page describes using of math formulas with ReText.

Installing MathJax

In Debian-based systems (such as Ubuntu or Mint), all you should do is

sudo apt install libjs-mathjax

On systems where MathJax is not packaged, you can download it from GitHub and extract to /usr/share/javascript/mathjax directory.

If ReText can't find MathJax, it will fall back to using the online version, for which you should have an Internet connection.

Enabling WebKit or WebEngine renderer

Math in ReText will work only when using WebKit or WebEngine (Chromium) renderer. You can enable one of them from Edit menu, e.g. “Edit → Use WebKit renderer”.

Math syntax

MathJax supports most of the standard LaTeX syntax, as well as some AMS extensions. See MathJax TeX and LaTeX support page for details.

This and this Wikibooks articles provide a great overview of LaTeX mathematical syntax.

You can use both TeX- and LaTeX-styles of boundaries:

Inline math Standalone math
$...$ (disabled by default) $$...$$
\(...\) \[...\]

To enable the $...$ delimiter, add mdx_math(enable_dollar_delimiter=1) to your list of extensions. See Markdown extensions page for details on how to enable extensions.

You can also use \begin...\end expressions:

\begin{equation}
Numbered equation
\end{equation}

Greek Alphabet

Letter Code Letter Code
α \alpha Α
β \beta Β
γ \gamma Γ \Gamma
δ \delta Δ \Delta
ε \epsilon Ε
ζ \zeta Ζ
η \eta Η
θ \theta Θ \Theta
ι \iota Ι
κ \kappa Κ
λ \lambda Λ \Lambda
μ \mu Μ
ν \nu Ν
ξ \xi Ξ \Xi
ο \omicron Ο
π \pi Π \Pi
ρ \rho Ρ
σ \sigma Σ \Sigma
τ \tau Τ
υ \upsilon Υ \Upsilon
φ \phi Φ \Phi
χ \chi Χ
ψ \psi Ψ \Psi
ω \omega Ω \Omega