Document ClassesDefinition of Symbols denied

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
philip041
Posts: 3
Joined: Mon Dec 08, 2008 1:03 pm

Definition of Symbols denied

Post by philip041 »

I use the gensymb package so I could use \celsius, but I get two warnings.

Code: Select all

Package gensymb Warning: Not defining \perthousand.
Package gensymb Warning: Not defining \micro.
What is going on?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Definition of Symbols denied

Post by localghost »

Please build a proper minimal working example (MWE) that reproduces the problem. With some code it is easier to see what is not working.


Best regards and welcome to the board
Thorsten
philip041
Posts: 3
Joined: Mon Dec 08, 2008 1:03 pm

Definition of Symbols denied

Post by philip041 »

Sorry, unaware of MWE!

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{gensymb}

\begin{document}
  Blah blah blah \celsius
\end{document}
The warnings are as in my previous post.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Definition of Symbols denied

Post by localghost »

Hm. Seems that the package simply refuses to define these two macros and doesn't give any further information about that. But Section 3 of the package manual suggests as "optimum case" to load the textcomp package before gensymb.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{textcomp,gensymb}

\begin{document}
  Room temperature is 21\celsius.
\end{document}
If you want to use these symbols in the context of physical units, you may take a look at the siunitx package instead.
philip041
Posts: 3
Joined: Mon Dec 08, 2008 1:03 pm

Re: Definition of Symbols denied

Post by philip041 »

Awesome! Thanks.
pjotr_sailing_pm
Posts: 1
Joined: Tue Aug 27, 2013 4:46 pm

Definition of Symbols denied

Post by pjotr_sailing_pm »

Thanks localghost!
Post Reply