LaTeX is a high-quality typesetting system. LaTeX is the de facto standard for the communication and publication of scientific documents. In Latex, documents are created using plain text and styled markup tags. Most commonly LaTeX used to create documents for academia, such as academic journals. In LaTeX, the author doesn’t stylize the document directly, like in a word processor such as Microsoft Word, LibreOffice Writer, or Apple Pages; instead, they write the code in plain text that must be compiled to produce a PDF document in LaTeX. Without going into further details we come to our main topic i.e. Degree Symbol in Latex.
Degree Symbol in LaTeX
Many people need to type degree symbol in latex and in this article, we will guide you how to insert degree symbol in latex. Symbols in LaTeX are inserted with the help of packages. You can find those packages below. There are mainly three packages that can get your job done. You can use any of them, the result will be the same.
Using siunitx package
You can insert degree symbol in latex using the siunitx package.
Steps to Type Degree Symbol
- First, you need to add the required package.
\documentclass{report}
\usepackage{siunitx}
- Then begin the document.
\begin{document}
- Then type your sentence. For instance,
The angle is \ang{30}.
- This will give you the output as follows.
The angle is 30°.
- If you need to just type the degree symbol. Write the following code wherever you want to insert degree symbol in latex.
\si{\degree}
Using textcomp package
You can insert degree symbol in latex using the textcomp package.
Steps to Type Degree Symbol
- First, you need to add the required package.
\documentclass{report}
\usepackage{textcomp}
- Then begin the document.
\begin{document}
- Then type your sentence. For instance,
The angle is \ang{30}.
- This will give you the output as follows.
The angle is 30°.
- If you need to just type the degree symbol. Write the following code wherever you want to insert degree symbol in latex.
\si{\textdegree}
Using gensymb package
You can insert degree symbol in latex using the gensymb package.
Steps to Type Degree Symbol
- First, you need to add the required package.
\documentclass{report}
\usepackage{gensymb}
- Then begin the document.
\begin{document}
- Then type your sentence. For instance,
The angle is \ang{30}.
- This will give you the output as follows.
The angle is 30°.
- If you need to just type the degree symbol. Write the following code wherever you want to insert degree symbol in latex.
\si{\degree}
Conclusion
The above described are the three different ways with which you can insert degree symbol in latex. The output of all the methods is the same. If you still have any problem and there is any doubt, you can comment below or contact us via Contact Us on top of the page.