Centigrade/Kelvin symbol in LaTeX
Mar. 10th, 2006 12:36 pmDoes anyone here happen to know how to set a centigrade/kelvin symbol in LaTeX (raised small circle). I could hack about with math symbols to do it, but most fonts have proper glyphs for this and I'd prefer to use the real thing. Any clues? I've drawn a blank with my usual sources.
(crossposted to my own journal and other likely places on LJ)
(crossposted to my own journal and other likely places on LJ)
(no subject)
Date: 2006-03-10 12:49 pm (UTC)But I don't have LaTeX here to check, and it's a long time since I used it in anger, anyway.
(no subject)
Date: 2006-03-10 12:58 pm (UTC)(no subject)
Date: 2006-03-10 01:09 pm (UTC)(no subject)
Date: 2006-03-10 12:53 pm (UTC)(no subject)
Date: 2006-03-10 01:06 pm (UTC)(ps: any chance of sanity checking the crap astrophysics in my thesis introduction chapter?)
(no subject)
Date: 2006-03-10 01:21 pm (UTC)(no subject)
Date: 2006-03-10 02:43 pm (UTC)(It's a bit big to email now)
Thanks! I will be happy to reward you with nice dinner for this!
(Relevant stuff is in Chapter 2, at least what there is of it so far)
(no subject)
Date: 2006-03-10 11:08 pm (UTC)(no subject)
Date: 2006-03-10 11:13 pm (UTC)(no subject)
Date: 2006-03-10 01:09 pm (UTC)1. 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.
2. Use the package textcomp
..which defines a huge number of symbols. Examples are: \textdegree, \textcelsius, \textcopyright and \texteuro.
Please note that the generated euro symbol is "uglier" than the one defined in the Adobe fonts. To obtain Adobe's euro symbol, load the package europs and use the \EURofc{} or \EUR{} command.
3. Import Windows character map symbols
It is also possible to use the Windows character map to copy and paste symbols like €, é, ä, ò, © etc... But in this case you have to specify the input encoding using the package inputenc. The input encoding depends on the computer/operating system that was used to create the tex file:
Macs: \usepackage[applemac]{inputenc}
Unix Latin1: \usepackage[latin1]{inputenc}
Windows ANSI: \usepackage[ansinew]{inputenc}
Hope this helps..
(no subject)
Date: 2006-03-10 01:19 pm (UTC)(no subject)
Date: 2006-03-10 02:03 pm (UTC)The standard "T1" font encoding doesn't include \textdegree, though some other font encodings do. A consequence of this is that if you want to use \textdegree, you either need to either use an input encoding that has it or put that \ProvideTextCommandDefault in your prologue. This also means that you won't get a "real" degree sign glyph unless you use a different font encoding.
(no subject)
Date: 2006-03-10 02:08 pm (UTC)(no subject)
Date: 2006-03-10 03:31 pm (UTC)(no subject)
Date: 2006-03-10 04:12 pm (UTC)(no subject)
Date: 2006-03-12 11:18 pm (UTC)Maybe you might want it if you have some reason to use degrees Fahrenheit, but apart from that I think it's best to just omit it...
-roy