compilerbitch: That's me, that is! (Default)
[personal profile] compilerbitch
Does 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)

(no subject)

Date: 2006-03-10 01:09 pm (UTC)
From: [identity profile] yannnis.livejournal.com
There's a few ways to write the symbol for degrees:

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..

Profile

compilerbitch: That's me, that is! (Default)
compilerbitch

January 2016

S M T W T F S
     12
3 45 6789
10111213 141516
17181920212223
24 252627282930
31      
Page generated Mar. 23rd, 2026 09:58 am

Style Credit

Expand Cut Tags

No cut tags