LaTeX forum ⇒ Document ClassesDefinition of Symbols denied Topic is solved

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

Definition of Symbols denied

Postby philip041 » Mon Dec 08, 2008 1:06 pm

I use the gensymb package so I could use \celsius, but I get two warnings.
  1. Package gensymb Warning: Not defining \perthousand.
  2. Package gensymb Warning: Not defining \micro.

What is going on?

Tags:

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Dec 08, 2008 5:16 pm

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

philip041
Posts: 3
Joined: Mon Dec 08, 2008 1:03 pm

Postby philip041 » Mon Dec 08, 2008 5:21 pm

Sorry, unaware of MWE!

  1. \documentclass[11pt]{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{gensymb}
  4.  
  5. \begin{document}
  6. Blah blah blah \celsius
  7. \end{document}


The warnings are as in my previous post.

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Dec 08, 2008 5:38 pm

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.
  1. \documentclass[11pt]{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{textcomp,gensymb}
  4.  
  5. \begin{document}
  6. Room temperature is 21\celsius.
  7. \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.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

philip041
Posts: 3
Joined: Mon Dec 08, 2008 1:03 pm

Postby philip041 » Mon Dec 08, 2008 5:47 pm

Awesome! Thanks.

pjotr_sailing_pm
Posts: 1
Joined: Tue Aug 27, 2013 4:46 pm

Postby pjotr_sailing_pm » Wed Aug 28, 2013 11:46 am

Thanks localghost!


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 1 guest