Am 13.04.2010 um 04:21 schrieb Tiandao Li:
\usepackage{textcomp}
\begin{document}
Today is 25\textcelsius.
What you're using here is an emulation inside a 7- or 8-bit "plain
old" LaTeX. It's based on the use of virtual fonts and very irregular
font encodings. This should not be used with XeTeX.
The DEGREE CELSIUS character exists in hundreds of fonts, for example
Latin Modern, Libertine, DejaVu, Free{Mono|Sans|Serif}, TeX Gyre...
When it's not in your main font, serif or sans serif, you can make the
β an *active* character which comes from an auxiliary font.
\newfontfamily{\celsiusfont}{Free Serif}
\catcode"2103=\active
\defβ{{\celsiusfont\char"2103}}
or, more conservatively:
\newfontfamily{\celsiusfont}{Free Serif}
\newcommand{\cels}{{\celsiusfont β}}
--
Greetings
Pete
If it does exist, it's out of date.
β Arnold's Second Law of Documentation
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex