SETS & RELATIONS
LaTeX set and relation symbols: membership, subsets and arrows
Examples checked with MathTexLab’s base and AMS math renderer · Display style
Use \in for element membership, \subseteq for a
subset that may be equal, \cup for union and
\cap for intersection. Choose the relation by its meaning; the
preview cannot establish whether a set statement is true.
Separate membership and inclusion
Use \in for membership and \notin for
non-membership. Use \subseteq to permit equality between sets.
The meaning of \subset varies by author, so define your
convention rather than assuming every reader interprets it as a strict
subset.
Reverse the inclusion direction with \supset or
\supseteq. The second permits equality. To require a proper
subset without relying on an author's convention for \subset,
write \subsetneq.
A\subset B,\quad A\subseteq B,\quad B\supset A,\quad B\supseteq A,\quad x\in A,\quad y\notin AOpen example in editor Combine sets with the correct operation
\cup denotes union and \cap intersection.
Black-board bold number-set notation such as \mathbb{R} uses
the bundled AMS mathematical support. Visible set braces need escaped
commands; grouping braces alone do not print.
x\in A\cap B\quad\Rightarrow\quad x\in A\cup BOpen example in editor Distinguish arrows from equals signs
\to commonly marks a mapping or a limiting direction, while
\Rightarrow denotes implication.
\Leftrightarrow expresses equivalence under the stated
assumptions. Do not use an equals sign merely to indicate the next step of
an argument.
Check the statement, then the image
The Symbols Library provides commands and examples, not a proof checker. Define the universe and the variables around a displayed formula in your own document. Open the source in the editor to verify grouping, then inspect the rendered relation at the size your readers will see.
Find and copy these commands in the searchable LaTeX Symbols Library, or compare Greek letters, arrows and operators in context.
Syntax reference
MathJax supported-command reference. The examples above are limited to the features described here; additional packages are not implied.
Continue with LaTeX Symbols Library.