Subset (⊂, ⊆, ⊈) and Superset (⊃, ⊇, ⊋) symbol in LaTeX
In this tutorial, you will learn how to write different types of subsets and superset symbols in LaTeX.
Subset (⊂, ⊆, ⊈) symbols in LaTeX
In LaTeX, there are some default commands to get different types of Subset symbols.
Name | Command | Output |
---|---|---|
Subset | \subset | ![]() |
Not Subset | \not\subset | ![]() |
Improper Subset | \subseteq | ![]() |
Not Improper Subset | \not\subseteq | ![]() |
The amssymb
package also provides the \nsubseteq
command to get the Not Improper subset symbol in LaTeX.
\documentclass{article} \usepackage{amssymb} \begin{document} $$ A \subseteq B $$ $$ A \not \subseteq B $$ $$ A \nsubseteq B $$ % with amssymb package $$ A \subset B $$ $$ A \not\subset B $$ \end{document}
Output:
Subset with not equal symbol
The amssymb
package also provides \subsetneq
and \subsetneqq
commands to get Subset and not equal symbols.
\documentclass{article} \usepackage{amssymb} \begin{document} $$ A \subsetneq B $$ $$ A \subsetneqq B $$ $$ A \nsubseteqq B $$ $$ A \varsubsetneqq B $$ $$ A \varsubsetneq B $$ $$ A \varsubsetneqq B $$ \end{document}
Output:
Superset (⊃, ⊇, ⊋) symbols in LaTeX
LaTeX also provides some default commands to get different types of superset symbols in LaTeX.
Name | Command | Output |
---|---|---|
Superset | \supset | ![]() |
Not Superset | \not\supset | ![]() |
Improper Superset | \supseteq | ![]() |
Not Improper Superset | \not\supseteq | ![]() |
\documentclass{article} \begin{document} $$ A \supset B $$ $$ A \not\supset B $$ $$ A \supseteq B $$ $$ A \not\supseteq B $$ \end{document}
Output:
Superset with not equal symbol
With the amssymb
package you can use the \supsetneq
and \supsetneqq
commands to get Superset with not equal symbol. Also, I showed some other commands to get different styles of this symbol.
\documentclass{article} \usepackage{amssymb} \begin{document} $$ A \supsetneq B $$ $$ A \supsetneqq B $$ $$ A \nsupseteqq B $$ $$ A \varsupsetneqq B $$ $$ A \varsupsetneq B $$ $$ A \varsupsetneqq B $$ \end{document}
Output:
Square Subset and Superset symbols in LaTeX
The amssymb
package provides more commands to get different types of Square Subset and Superset symbols in LaTeX. I listed all of these.
Command | Output |
---|---|
\sqsubset | ![]() |
\not\sqsubset | ![]() |
\sqsubseteq | ![]() |
\not\sqsubseteq | ![]() |
\sqsupset | ![]() |
\not\sqsupset | ![]() |
\sqsupseteq | ![]() |
\not\sqsupseteq | ![]() |
\documentclass{article} \usepackage{amssymb} \begin{document} \noindent\begin{minipage}{.5\linewidth} \centering Square subset symbols: $$ A \sqsubset B $$ $$ A \not\sqsubset B $$ $$ A \sqsubseteq B $$ $$ A \not\sqsubseteq B $$ \end{minipage} \begin{minipage}{.5\linewidth} \centering Square superset symbols: $$ A \sqsupset B $$ $$ A \not\sqsupset B $$ $$ A \sqsupseteq B $$ $$ A \not\sqsupseteq B $$ \end{minipage} \end{document}
Output:
Leave a Reply