Home    Personal    Work    Computers    Miscellaneous

LaTeX    Software Projects    Rendering Tutorial    UNIX Commands    Using CVS    Case Modding    Base Wiki

How do I write the symbol for degrees?

Superscripted circle

You can have ^\circ in math mode to have a circle in superscript, or just write

The human body temperature is 37$^\circ$ Celsius

if you want degrees in your text.

You can also define a command that writes a degree symbol when used with \degree if you add the following to your preamble

\newcommand{\degree}{\ensuremath{^\circ}}

Since the command ensures that the superscripted circle is written in math mode, you can use this command both in math mode and in text mode, as follows:

The human body temperature is 37\degree Celsius

or

The human body temperature is $37\degree$ Celsius

gensymb package

Alternatively, you can \usepackage{gensymb} and then use its commands \degree or \celsius to add degrees both in math and text mode.

Random thing

This page is the most popular one on my web site. Thanks for visiting, I hope you found your solution here. Happy hacking! Anthony,-

Edit (locked) - History - Recent Changes - Search - Statistics
All contents copyrighted 2000-2006 Anthony Liekens unless otherwise noted. Powered by PmWiki
Page last modified on April 04, 2007, at 10:45 PM.