🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #141

How to make the "degree" symbol?

#141
From: Jim Graham
Date: Fri, 30 Oct 1992 18:04
54 lines
2802 bytes
In article <gong.70.720283812@dutw34.tudelft.nl> gong@dutw34.tudelft.nl
writes:
> In article <ROLFL.92Oct28141632@ulrik.uio.no> rolfl@ulrik.uio.no
> (Rolf Lindgren) writes:

>> Normal body temperature is 37$^\circ$ C (\approx 98$^\circ$ F).

> No other way to do this?

sure.  there are always other ways to do it.  but as far as the degree
symbol is concerned, $^\circ$ is the only thing I know about that gets
the actual symbol you're looking for (unless you re-invent the wheel
or something).

now, at the risk of making a horribly wrong assumption, I'm going to
guess that what you were really asking was how to avoid the mess, and
perhaps have a macro or something that you could use instead, that
would be more obvious to a non-TeXnical type who is reading your text.

that's simple.  you just use a macro.  you could do something like the
following, for example (I did something along these lines for the above
reason...but it's been a while):

\def\degC{$^\circ$ C}
\def\degF{$^\circ$ F}

and then, instead of 37$^\circ$ C, you would just type 37\degC.

I've used macros such as this rather extensively (including macros
for all headings, subheadings, item lists --- my \bulletitem macro,
etc.) to make things easier for the non-TeXnical reader who insists
on reading the TeX src instead of the printed version (e.g., wants
me to mail it to them online or something like that).

of course, the other nice thing about this is that if I ever decide to
change the format of my papers (or if someone else decides for me), one
single macro changes everything, as opposed to making the same change
in a hundred places.....

for more info on how to define macros (again, this is all based on the
one assumption that you were looking for info on more or less how to do
just that), pick up a copy of {The TeXbook} by DEK and have a look at
chapter 20.

hope this helps.
   --jim

--
#include <std_disclaimer.h>                                 73 DE N5IAL (/9)
------------------------------------------------------------------------------
INTERNET:  jim@n5ial.chi.il.us  |  grahj@gagme.chi.il.us  |  j.graham@ieee.org
ICBM:  41.70N 87.63W                    UUCP:  gagme!n5ial!jim@clout.chi.il.us
AMATEUR RADIO: n5ial@n9hsi (Chicago.IL.US.Earth)    AMTOR SELCAL:  NIAL
------------------------------------------------------------------------------
Technical Details
Message-ID: <720468245snx@n5ial.chi.il.us>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!daffy!uwvax!uchinews!machine!gagme!n5ial!jim
References: <gong.70.720283812@dutw34.tudelft.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!daffy!uwvax!uchinews!machine!gagme!n5ial!jim
From: jim@n5ial.chi.il.us (Jim Graham)
Newsgroups: comp.text.tex
Subject: How to make the "degree" symbol? 
Distribution: world
Message-ID: <720468245snx@n5ial.chi.il.us>
References: <gong.70.720283812@dutw34.tudelft.nl>
Date: Fri, 30 Oct 92 18:04:05 GMT
Organization: Me? Organized? Hah! :-)
Lines: 55