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.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
\in | Element of | built in | ||
\notin | Not an element of | built in | ||
\subset | Subset | built in | ||
\subseteq | Subset or equal | built in | ||
\subsetneq | Proper subset (not equal) | amssymb | ||
\cup | Union | built in | ||
\cap | Intersection | built in | ||
A \setminus B | Set difference | built in | ||
\emptyset | Empty set (\varnothing in amssymb) | built in | ||
\mathbb{R} | Real numbers (also \mathbb{N}, \mathbb{Z}, \mathbb{Q}) | amssymb | ||
\{ x \in A \mid x > 0 \} | Set-builder notation | built in | ||
\mathcal{P}(A) | Power set | built 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.
\emptyset\varnothing\in\notin\ni\subset\subseteq\not\subset\subsetneq\supset\supseteq\cup\cap\bigcup\bigcap\setminus\complement\mathbb{N}\mathbb{Z}\mathbb{Q}\mathbb{R}\mathbb{C}\mathcal{P}|A|\aleph