Skip to main content
Core LaTeX defines many common math symbols out of the box—including \subset, \subseteq, \propto, \infty, \oplus, and \exists—while extended symbols such as \therefore, \nexists, and \subsetneq require \usepackage{amssymb}, and \mathscr requires \usepackage{mathrsfs}. This guide explains which package a symbol needs, how TeX symbol classes control spacing, and how math alphabets work; for a searchable copy-and-paste list of commands, use the LaTeX symbols list.

Frequently searched math symbols

The compiled table below shows the commands and required packages for subset, proportional, infinity, exclusive or (XOR), therefore, and existential quantifier symbols.
common-symbols.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
Need arrows, Greek letters, or a full lookup table? Browse the LaTeX symbols list.

Which package provides a symbol?

Most everyday math documents need at most amsmath and amssymb (which loads amsfonts automatically). Add mathrsfs only if you want formal script letters (\mathscr), and bm if you need bold italic variables or bold lowercase Greek letters.

How TeX symbol classes affect spacing and layout

TeX assigns every math symbol a class that determines automatic horizontal spacing and line-breaking behavior:
  • Ordinary (\mathord): variables, \infty, \exists, \varnothing—no extra spacing is added around them.
  • Binary operators (\mathbin): +, -, \oplus, \cup, \cap—TeX inserts medium space on both sides between two operands, and collapses it to ordinary spacing in unary position (such as -x).
  • Relations (\mathrel): =, \subset, \subseteq, \propto, \therefore, \to—TeX inserts thick space on both sides and allows inline line breaks after a relation.
  • Large operators (\mathop): \sum, \prod, \int—grow larger in display math than inline. \sum and \prod move their limits above and below in display math, while \int keeps limits to the side by default.
Because classes control spacing, choosing the right command matters: bare : is a relation with symmetric thick space, whereas \colon gives tight punctuation spacing in function definitions such as f ⁣:A→Bf\colon A \to B.
symbol-classes.tex
For manual math spacing commands (\,, \quad, \qquad) and defining custom upright operators with \DeclareMathOperator, see Math spacing and operators. For scalable delimiters (\left, \right, \langle, \rangle), see Brackets and parentheses.

Math alphabets (\mathbb, \mathcal, \mathfrak, \mathscr, \mathbf)

Math alphabets change the font style of letters inside math mode to denote number sets, spaces, Lie algebras, or vectors. In default Computer Modern and AMS fonts, \mathbb, \mathcal, and \mathscr provide uppercase Latin letters only; \mathfrak and \mathbf support both uppercase and lowercase Latin letters, and \mathbf leaves lowercase Greek letters unbolded (use \bm from bm for bold Greek or bold italic vectors).
math-alphabets.tex

Common mistakes

  • Using \therefore, \subsetneq, \mathbb, or \mathfrak without amssymb (or amsfonts for \mathbb and \mathfrak): These raise Undefined control sequence until the required package is loaded in the preamble.
  • Using math symbols outside math mode: Commands such as \infty, \subset, and \oplus require $...$ or display math (\[...\]); using them in plain text causes Missing $ inserted.
  • Typing : instead of \colon in maps: $f: A \to B$ puts equal thick space before and after the colon; write $f\colon A \to B$ (with amsmath loaded for refined punctuation spacing).
  • Expecting \mathbf{\alpha} to bold lowercase Greek: In default math fonts, \mathbf does not bold lowercase Greek letters; load bm and write \bm{\alpha}.

Try it in the editor

amsmath, amssymb, mathrsfs, and bm are installed in LaTeX Cloud Studio’s TeX Live 2026 environment. Start from the Basic Article template in LaTeX Cloud Studio and replace main.tex with the complete example.