[Tex/LaTex] the degree symbol

degreestypography

In order to have the following output involving the degree symbol

enter image description here

I can try

\documentclass{report}
\begin{document}
The angle is 30$^\circ$.
\end{document}

However, this is an awkward manner to obtain the degree symbol – one reverts to math mode and casts an existing symbol into superscript.

Is there a straightforward way of obtaining the degree symbol?

Best Answer

I would use siunitx and so a semantic command:

\documentclass{report}
\usepackage{siunitx}
\begin{document}
The angle is \ang{30}.
\end{document}

enter image description here

But you can also load textcomp

\documentclass{report}
\usepackage{siunitx}
\usepackage{textcomp}
\begin{document}
The angle is 
30\textdegree.
\end{document}

enter image description here