集合論

集合、部分集合、和集合、積集合、数集合。

LaTeX set theory symbols: subset, element of, union and empty set

LaTeX set theory symbols are mostly built in. Element of is \in (∈) and not an element of is \notin; subset is \subset (⊂) and subset or equal \subseteq (⊆); union and intersection are \cup and \cap, set difference is \setminus, and the empty set is \emptyset (∅). A few extras need amssymb: the rounder empty set \varnothing, proper subset \subsetneq, and number sets like \mathbb{N} and \mathbb{R}. Curly braces must be escaped, so a set is \{1, 2, 3\}. The table lists the set theory symbols people use most, with the package each one needs; the full list follows below.

Quick reference: the most used set theory symbols

SymbolCommandUsePackageCopy
∈\in
\inElement ofbuilt in
∉\notin
\notinNot an element ofbuilt in
⊂\subset
\subsetSubsetbuilt in
⊆\subseteq
\subseteqSubset or equalbuilt in
⊊\subsetneq
\subsetneqProper subset (not equal)amssymb
∪\cup
\cupUnionbuilt in
∩\cap
\capIntersectionbuilt in
A∖BA \setminus B
A \setminus BSet differencebuilt in
∅\emptyset
\emptysetEmpty set (\varnothing in amssymb)built in
R\mathbb{R}
\mathbb{R}Real numbers (also \mathbb{N}, \mathbb{Z}, \mathbb{Q})amssymb
{x∈A∣x>0}\{ x \in A \mid x > 0 \}
\{ x \in A \mid x > 0 \}Set-builder notationbuilt in
P(A)\mathcal{P}(A)
\mathcal{P}(A)Power setbuilt in

Big unions and intersections over an index, such as \bigcup_{i \in I} A_i, are on the summation symbols page, and quantifiers like \forall and \exists on the quantifiers page.

Frequently asked questions about set theory in LaTeX

How do I write subset in LaTeX?
Use \subset for ⊂ and \subseteq for ⊆, both built in: $A \subseteq B$. For a proper subset that explicitly excludes equality, amssymb provides \subsetneq (⊊). The superset versions are \supset, \supseteq and \supsetneq, and \not\subset negates.
How do I write element of in LaTeX?
\in prints ∈, as in $x \in A$, and \notin prints ∉. The reversed form \ni (∋) reads contains as an element. All three are built in.
How do I write the empty set in LaTeX?
\emptyset prints ∅ and is built in. Many authors prefer the rounder \varnothing, which needs \usepackage{amssymb}. Either way, do not use \phi or \O, which are a Greek letter and a Scandinavian letter.
∅\emptyset

Empty Set

\emptyset
∅\varnothing
∈\in
∉\notin
∋\ni
⊂\subset

Subset

\subset
⊆\subseteq
⊄\not\subset

Not Subset

\not\subset
⊊\subsetneq

Proper Subset

\subsetneq
⊃\supset

Superset

\supset
⊇\supseteq
∪\cup

Union

\cup
∩\cap
⋃\bigcup

Big Union

\bigcup
⋂\bigcap
∖\setminus
∁\complement

Complement

\complement
N\mathbb{N}

Natural Numbers

\mathbb{N}
Z\mathbb{Z}

Integers

\mathbb{Z}
Q\mathbb{Q}
R\mathbb{R}

Real Numbers

\mathbb{R}
C\mathbb{C}

Complex Numbers

\mathbb{C}
P\mathcal{P}

Power Set

\mathcal{P}
∣A∣|A|
ℵ\aleph

Aleph

\aleph