[OS X TeX] Celsius

Herb Schulz herbs at wideopenwest.com
Mon Feb 14 11:59:30 EST 2005

On 2/14/05 10:39 AM, "Alain Schremmer" <Schremmer.Alain at verizon.net> wrote:

> \textcelsius doesn't work for me (Undefined control sequence)
> I have no idea what else to try.
> What obvious thing am I missing?
> Regards
> --schremmer


It doesn't exist in all fonts. Try using
\newcommand{\degC}{\mbox{${}^\circ$C}}. Actually, I made a macro \ang{} and
then everything else followed:
% \ang{30} gives 30° (math or text)
\newcommand{\degree}{\mbox{\ang{}}}  % general text degree
\newcommand{\degC}{\mbox{\degree C}} % Celsius
\newcommand{\degF}{\mbox{\degree F}} % Farenheit
\newcommand{\degK}{\mbox{\degree K}} % Kelvin
\newcommand{\degR}{\mbox{\degree R}} % Rankin

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the MacOSX-TeX mailing list