Math and Equations

Set, Number and Currency Symbols in LaTeX

Typeset number sets like R and Z, set notation such as union and subset, and euro and pound currency symbols in LaTeX, with the packages you need.

On this page
  1. Number sets: R, Z, N, Q and C
  2. Membership and set relations
  3. Set-builder notation
  4. Logic and quantifiers
  5. Approximately equal and similar
  6. Currency symbols
  7. Common errors

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:

  • \forall for ∀ and \exists for ∃
  • \neg or \lnot for ¬, and \land and \lor for ∧ and ∨
  • \Rightarrow and \Leftrightarrow for ⇒ and ⇔, which are part of base LaTeX. \implies and \iff from amsmath are 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 (∼).

  • \approx means “approximately equal”.
  • \sim is 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: \texteuro in text. Current LaTeX releases include it in the kernel. Older releases needed the textcomp package. The eurosym package provides \euro as 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 \mathbb or \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: \texteuro needs text mode, so wrap it in \text{}.
  • Unescaped dollar sign: writing $10 in running text opens math mode. Use \$10.

The complete guide to math and equations

Advanced Mathematics in LaTeX: Operators, Theorems and Proofs
Read the guide

Keep exploring

Guides from other topics

All topics →