How to write the symbol for a subset in LaTeX?

How to write the symbol for a subset in LaTeX?

This post may contain affiliate links that allow us to earn a commission at no expense to you. Learn more

This article aims to show you the simplest and easiest way to write the symbol for a subset in LaTeX.

In mathematics specifically in set theory, subsets are common and they have their own symbols to represent them. Today you will learn how to write these symbols in your document.

Subsets symbols

In mathematics, a set A is a subset of a set B if all elements of A are also elements of B, likewise, we also say B is a superset of A. The most common symbols for the definition of subset is a look-alike C with underlined and for  superset a mirror C with the same underlined. 

For this tutorial, we will focus only on the subsets. 

Subset In Latex : Subset and superset symbol/sign examples
Subset and superset symbol/sign examples

Subset in LaTeX

To write these symbols in LaTeX we do not require extra packages for commands, it is already built-in. We will use the command \subseteq, it does not need any value as an argument, just the plain command. For example 

\documentclass{article}
\begin{document}
\begin{center}
    $A \subseteq B$ and $B \subseteq C$\\
    $\therefore\, A \subseteq B$
\end{center}
\end{document}
Subset In Latex : Subset symbol
Subset symbol

In case we want to denote the elements of a set A to be less than and not equal to those elements of a set B, we use the \nsubseteq command, which is the same symbol for the subset except one backslash in the middle of it. For example

\documentclass{article}
\begin{document}
    $A$ is not a subset of $B \rightarrow A \nsubseteq B$
\end{document}
Subset In Latex

Proper Subset in LaTeX

Given two sets, it is possible that these two sets A and B are not equal and at least one element of B is not an element of A, we say that A is a proper subset of B

The symbol is denoted by a look alike C with an underline but with a small backslash in the middle of the line. This time we have to use the amssymb package since LaTeX does not have this symbol in particular, the command would be \subsetneq. For example

\documentclass{article}
\usepackage{amssymb} % loading the package
\begin{document}
    $A \subsetneq F$ and $F \subsetneq G$\\
    $\therefore\, A \subsetneq G$
\end{document}
Subset In Latex : Proper subset symbol
Proper subset symbol

It is important to know that depending on the notation you are using in set theory these symbols may vary, since there are unclear conventions for set theory symbols. This could seem as not the answer you’re looking for, but sometimes the best answers are in peculiar places on the internet. 

Remember other user contributions in forums are there to be read by you someday. We recommended any trusted online community with a research effort and useful information such as Stack Exchange.

In case you have other questions, you may want to look for other packages for different variations of these symbols, maybe you can even create a table with all the knowledge you find about them, but we personally recommended sticking with the amssymb package for the task.

I hope this post was helpful, and as always keep writing in LaTeX.

All the images were created with LaTeX by the author.

Further Reading

LaTex Tutorial on Symbols

  1. How To Create A Cross Product Symbol In LaTeX
  2. How to create a hat symbol in LaTeX?
  3. How to create a prime symbol in LaTeX?
  4. How to create an absolute value symbol in LaTeX?
  5. How to create an approximate symbol in LaTeX?
  6. How to create an intersection symbol in LaTeX?
  7. How to create the empty set symbol in LaTeX?
  8. How to write a degree symbol in LaTeX?
  9. How to write a dot product in LaTeX?
  10. How to Write a Greater Than Symbol in LaTeX?
  11. How to write a norm symbol in LaTeX?
  12. How to write A Plus-Minus Symbol in LaTeX
  13. How to write a proportional to symbol in LaTeX?
  14. How to write a real number symbol in LaTeX?
  15. How to write a tilde symbol in LaTeX?
  16. How to write a union symbol in LaTeX?
  17. How to write a vector in LaTeX?
  18. How to write an infinity symbol in LaTeX?
  19. How to write bold text in LaTeX?
  20. How To Write Dots Symbols In LaTeX?
  21. How to write the arrow symbols in LaTeX
  22. How to write the Degree celsius symbol in LaTeX?
  23. How to write the equal or not equal symbol in LaTeX?
  24. How to write the Euro symbol in LaTeX?
  25. How to write the floor symbol in LaTeX?
  26. How to write the gradient operator symbol in LaTeX
  27. How To Write The Greater Than Or Equal To Symbol In LaTeX?
  28. How to write the integer number symbol in LaTeX?
  29. How to write the less than symbol in LaTeX?
  30. How to write the Natural numbers symbol in LaTeX?
  31. How to write the parallel symbol in LaTeX?
  32. How to write the percent symbol in LaTeX?
  33. How to write the square root symbol in LaTeX?
  34. How to write the symbol for therefore in LaTeX?
  35. How to write with the mathbb in LaTeX?

Photo of author
Author
Joannah W.
Joannah has been a science publisher with close to 20 years of experience. She wants to help students and researchers stay ahead of the trends and developments in the science community by making science more accessible to everyone.

Leave a Comment