VOOZH about

URL: https://www.geeksforgeeks.org/engineering-mathematics/set-notations-in-latex/

โ‡ฑ Set Notations in LaTeX - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Set Notations in LaTeX

Last Updated : 14 Mar, 2026

LaTeX is widely used for typesetting mathematical expressions and provides many commands to represent set notation clearly and accurately. Since set notation is frequently used in mathematics, LaTeX makes it easy to write and format these symbols properly.

Set theory plays a fundamental role in logic, mathematics, and computer science. One commonly used form is set-builder notation, which describes a set by specifying the property that its elements must satisfy.

For example, an empty set is represented as \varnothing.

Symbols and Their LaTeX Code

This table shows how to write common set notation symbols in LaTeX with examples - perfect for students learning math typesetting:

Symbol NameSymbolLaTeX Code
Empty Setโˆ…\varnothing
Element ofโˆˆ\in
Not an Element ofโˆ‰\notin
SubsetโŠ‚\subset
Subset or Equal toโІ\subseteq
Proper SubsetโŠŠ\subsetneq
SupersetโŠƒ\supset
Superset or Equal toโЇ\supseteq
Proper SupersetโŠ‹\supsetneq
Unionโˆช\cup
Intersectionโˆฉ\cap
Set DifferenceA \ BA \setminus B
ComplementAแถœA^{c}
Symmetric Differenceโ–ณ\triangle
Cartesian Productร—\times
Power Setโ„˜(A)\mathcal{P}(A)
Cardinality|A|`
Set Builder Notation{ x | P(x) }\{ x \mid P(x) \}
Union of Indexed Setsโ‹ƒ\bigcup
Intersection of Indexed Setsโ‹‚\bigcap
Cartesian PowerAโฟA^{n}
Set of Functions from A to BBแดฌB^{A}
Disjoint SetsA โˆฉ B = โˆ…A \cap B = \varnothing

Set Notation Examples in LaTeX

The following examples show the usage of LaTeX to represent different set notations:

Example 1: Write a โˆˆ A

a \in A

Example 2: Write A โŠ‚ B

A \subset B

Example 3: Write A\B

A \setminus B

Example 4: Write {x โˆˆ | x > 0}

\{ x \in \mathbb{R} \mid x > 0 \}

Related Articles:

Comment
Article Tags: