This guide covers the symbols you use most often for number sets, set notation, logic and currency. For Greek letters, see the rho symbol guide. For operators and theorems, see the advanced mathematics guide.
Number sets: R, Z, N, Q and C
The real number symbol is \mathbb{R}. The same command pattern gives the other standard number sets: \mathbb{N} for natural numbers, \mathbb{Z} for integers, \mathbb{Q} for rational numbers and \mathbb{C} for complex numbers. The double-struck letters come from amssymb, so load it in the preamble:
\usepackage{amssymb}
Number sets sit inside the usual math commands:
\[
\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}
\]
Without amssymb, \mathbb causes an “Undefined control sequence” error. Some texts write number sets in plain or bold letters, such as \mathbf{R}. Those look different from the double-struck form, so pick one style and use it throughout the document.
Membership and set relations
The belongs-to symbol is \in. Write $x \in A$ to say “x is an element of A”, or “x belongs to A”. The table below lists the most common set symbols:
| Symbol | Command | Meaning |
|---|---|---|
| ∈ | \in |
is an element of |
| ∉ | \notin |
is not an element of |
| ⊆ | \subseteq |
is a subset of, or equal to |
| ⊂ | \subset |
subset; some authors use it to mean a proper subset |
| ∪ | \cup |
union |
| ∩ | \cap |
intersection |
| ∖ | \setminus |
set difference |
| ∅ | \emptyset |
empty set |
| ∅ | \varnothing |
empty set, a variant (needs amssymb) |
Because \subset can mean different things to different authors, state which meaning you use if the difference matters.
Set-builder notation
Set-builder notation uses curly braces, which LaTeX reserves for grouping. Escape them as \{ and \}, and use \mid for the vertical bar in the middle:
\[
A = \{ x \in \mathbb{R} \mid x > 0 \}
\]
\mid is typeset as a relation, so it has the spacing that set notation expects. A plain | looks cramped in this position.
Logic and quantifiers
Common logic symbols are short commands:
\forallfor ∀ and\existsfor ∃\negor\lnotfor ¬, and\landand\lorfor ∧ and ∨\Rightarrowand\Leftrightarrowfor ⇒ and ⇔, which are part of base LaTeX.\impliesand\ifffromamsmathare longer arrows with extra space around them, which suits logical statements.
\[
\forall x \in \mathbb{R}, \; x^2 \geq 0
\]
The \; command adds a small space between the quantifier and the rest of the statement.
Approximately equal and similar
Two symbols often get mixed up: \approx (≈) and \sim (∼).
\approxmeans “approximately equal”.\simis often read as “similar to”. In probability, it is often used for “distributed as”, as in $X \sim N(0,1)$.
The exact meaning of \sim depends on the field, so use the convention your subject follows and define it when it is not standard.
Other common relation symbols are \infty (∞), \leq (≤), \geq (≥) and \neq (≠).
Currency symbols
Currency symbols need the right mode:
- Dollar:
\$. A bare$starts math mode, so escape it in running text, as in\$10. - Pound:
\pounds(£) works in text. - Euro:
\texteuroin text. Current LaTeX releases include it in the kernel. Older releases needed thetextcomppackage. Theeurosympackage provides\euroas an alternative.
The ticket costs \texteuro 10.
\[
\text{\texteuro 10}
\]
\texteuro is a text command, so inside math mode it needs \text{...} from amsmath.
Where the euro sign goes
The PAA question “Is € 10 or 10 €?” has no single answer. Placement depends on language and region. Many English-language texts put the symbol before the amount, while many European languages put it after. Check the style guide your document follows.
Common errors
- Undefined control sequence for
\mathbbor\varnothing: add\usepackage{amssymb}. - Missing braces in sets:
{ x | x > 0 }loses its braces, because LaTeX reads them as grouping. Use\{and\}. - Currency symbol in math mode:
\texteuroneeds text mode, so wrap it in\text{}. - Unescaped dollar sign: writing
$10in running text opens math mode. Use\$10.