Skip to content

Lesson 11 ยท Math Typesetting

Math Symbols and Greek Letters

A guide to LaTeX math symbols: Greek letters, operators, relations, arrows, logic and set symbols, math alphabets such as \mathbb, accents and how to find any symbol.

LaTeX has a command for nearly every mathematical symbol in use, and the names follow a logic: most are the English word for the symbol. Once you know the families (Greek letters, binary operators, relations, arrows, big operators, delimiters), you can guess commands and rarely need to look them up. This lesson organises the most useful symbols into those families and shows how to find the rest.

Each table has a live gallery in the editor further down. As in the previous lesson, the math syntax is LaTeX's, rendered here by KaTeX. A few exotic symbols exist only in real LaTeX; those are marked.

Greek letters

Lowercase letters are \alpha, \beta, and so on. Capitalised command names give the uppercase letter. Letters whose uppercase form looks the same as a Latin letter (A, B, E) have no command: just type the Latin letter.

Lowercase Command Uppercase Command
ฮฑ \alpha (use A)
ฮฒ \beta (use B)
ฮณ \gamma ฮ“ \Gamma
ฮด \delta ฮ” \Delta
ฮต / ฯต \varepsilon / \epsilon (use E)
ฮถ \zeta
ฮท \eta
ฮธ / ฯ‘ \theta / \vartheta ฮ˜ \Theta
ฮป \lambda ฮ› \Lambda
ฮผ \mu
ฯ€ / ฯ– \pi / \varpi ฮ  \Pi
ฯ / ฯฑ \rho / \varrho
ฯƒ / ฯ‚ \sigma / \varsigma ฮฃ \Sigma
ฯ„ \tau
ฯ† / ฯ• \varphi / \phi ฮฆ \Phi
ฯˆ \psi ฮจ \Psi
ฯ‰ \omega ฮฉ \Omega

Some letters have two shapes (the "var" variants). Choose one and stay consistent in a document. For example, \varepsilon is the curly epsilon used in analysis and \epsilon the open one.

Binary operators

Binary operators sit between two things and get medium spacing.

Symbol Command Symbol Command
ร— \times รท \div
ยท \cdot โˆ— \ast
ยฑ \pm โˆ“ \mp
โˆ˜ \circ โŠ• \oplus
โŠ— \otimes โˆช \cup
โˆฉ \cap โˆง \wedge
โˆจ \vee โˆ– \setminus

Relations

Relations compare things and get thick spacing on both sides.

Symbol Command Symbol Command
โ‰  \neq โ‰ค \leq
โ‰ฅ \geq โ‰ˆ \approx
โ‰ก \equiv โˆผ \sim
โ‰… \cong โˆ \propto
โˆˆ \in โˆ‰ \notin
โŠ‚ \subset โІ \subseteq
โŠƒ \supset โˆฃ \mid
โ‰ช \ll โ‰ซ \gg

Negate nearly any relation with \not, or use a dedicated command such as \neq or \nsubseteq (from amssymb).

Arrows

Symbol Command Symbol Command
โ†’ \to or \rightarrow โ† \leftarrow
โ†” \leftrightarrow โ‡’ \Rightarrow
โ‡ \Leftarrow โ‡” \Leftrightarrow
โ†ฆ \mapsto โŸถ \longrightarrow
โ†‘ \uparrow โ†“ \downarrow

For arrows with text above them use \xrightarrow{text} (amsmath).

Logic, sets and common signs

Symbol Command Meaning
โˆ€ \forall for all
โˆƒ \exists there exists
ยฌ \neg not
โˆ… \emptyset or \varnothing empty set
โˆž \infty infinity
โˆ‚ \partial partial derivative
โˆ‡ \nabla nabla, gradient
โ€ฒ ' as in f' prime
โ€ฆ \ldots, \cdots, \vdots, \ddots dots at the baseline, centered, vertical, diagonal
โ„ \mathbb{R} blackboard bold (needs amssymb or amsfonts in LaTeX)

Use \ldots between commas (1, 2, \ldots, n) and \cdots between operators (1 + 2 + \cdots + n).

Math alphabets

Letters can be set in special styles, useful for sets, vectors, operators and fields.

Command Look Typical use
\mathbb{R} โ„ blackboard bold Number sets
\mathcal{L} โ„’ calligraphic Operators, families (capitals only)
\mathbf{v} v bold Vectors
\mathrm{d} upright Constants and units
\mathfrak{g} ๐”ค Fraktur Lie algebras
\mathsf{T}, \mathtt{x} sans, typewriter Rare
\boldsymbol{\alpha} bold Greek Bold Greek letters (in real LaTeX, \bm from the bm package is the better tool)

Named operators and functions

Functions such as sin, log and lim must be upright with correct spacing, so they have their own commands: \sin, \cos, \tan, \log, \ln, \exp, \max, \min, \lim, \sup, \inf, \det, \gcd, \arg. Typing sin x without the backslash would produce the italic product sยทiยทnยทx.

For one the standard set lacks, define your own: \DeclareMathOperator{\rank}{rank} in the preamble (amsmath), and then write \rank A.

Accents over math

Command Result
\hat{x} xฬ‚
\bar{x} xฬ„
\tilde{x} xฬƒ
\vec{v} vโƒ—
\dot{x}, \ddot{x} first and second time derivative
\overline{AB} line over a group
\widehat{abc} a wide hat
\underline{x} underline

The editor below shows every command from the tables as a symbol. Edit the list (one command per line) to see other symbols, or type a formula with them in the lower box.

Symbol gallery and formula test (KaTeX)

Finding any symbol

Nobody remembers all the commands. The practical routes:

  1. Detexify. A web tool where you draw the symbol with the mouse and it suggests the command and the package.
  2. The Comprehensive LaTeX Symbol List. A PDF of thousands of symbols that you can open offline with texdoc symbols-a4.
  3. Your editor. TeXstudio, Overleaf and LaTeX Workshop offer symbol panels and command completion.
  4. Unicode math in XeLaTeX or LuaLaTeX with unicode-math, where you can type some symbols directly.

Many symbols come from packages: amssymb (the AMS symbols), mathtools (extensions to amsmath), stmaryrd, wasysym. If a command gives "Undefined control sequence", check which package defines it.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which command prints a not-equal sign?

    Both \ne and \neq print โ‰ . Typing != in math mode would print an exclamation mark and an equals sign.
  2. 2. Why write \sin x instead of sin x?

    Named operators have their own commands for upright text and correct spacing.
  3. 3. How do you write the set of real numbers in blackboard bold?

    \mathbb comes from amssymb or amsfonts in real LaTeX; KaTeX has it built in.
  4. 4. Which tool lets you draw a symbol to find its command?

    Detexify recognises a hand-drawn symbol and suggests the command.

Summary

  • Greek letters use their English names; capitalise the name for the uppercase letter.
  • Symbols fall into families: binary operators, relations, arrows, logic and set signs.
  • \mathbb, \mathcal, \mathbf, \mathrm and \mathfrak change the alphabet.
  • Named functions such as \sin and \lim are upright; define new ones with \DeclareMathOperator.
  • Detexify and the symbols PDF find the command for anything else.

Next: Fractions, Roots, Sums and Integrals