The textcomp package
Provides text symbols such as \texteuro, \textdegree, \textmu and \textcopyright. Since the LaTeX release of February 2020 these commands work without the package.
Loading the package
\usepackage{textcomp}The package gives access to the symbols of the TS1 encoding ("text companion"): currency signs, the degree sign, an upright micro sign, fractions, arrows and legal marks. They are text commands and come from the text font, so they match its weight and work outside math mode.
Since the release of February 2020 the LaTeX kernel defines all of these commands. \usepackage{textcomp} is then an empty step. Keep the line only when the document has to compile on an older installation.
Main commands
\texteuro | Euro sign of the text font. A € typed directly prints the same. |
\textdegree | Degree sign, as in 90°. |
\textcelsius | Degree Celsius as one symbol. |
\textmu | Upright micro sign, as in µm. |
\textcopyright, \textregistered, \texttrademark | The marks ©, ® and ™. |
\textperthousand | Per mille sign ‰. |
\textpm, \texttimes | Plus-minus and multiplication sign in text. |
\textrightarrow | Arrow to the right in text; \textleftarrow points left. |
Complete example
\documentclass{article}
\usepackage{textcomp} % only needed for LaTeX before 2020
\begin{document}
The ticket costs 12\,\texteuro.
Water boils at 100\,\textcelsius, and a right angle has 90\textdegree.
The fibre is 8\,\textmu m thick.
\textcopyright\ 2026 Example Ltd., Example\texttrademark
\end{document}Compiled with pdfLaTeX from TeX Live 2023.
Pitfalls
- The commands are text commands. In math mode they give the warning Command \item invalid in math mode; write
^\circthere for a degree sign. - For numbers with units,
siunitxsets the unit and the spacing in one command.
Related pages
- How-to Degree symbol in LaTeX
- Package
eurosym - Package
siunitx - How-to Special characters in LaTeX: percent, underscore, ampersand, backslash