[XeTeX] Degree symbol

Ross Moore ross at ics.mq.edu.au
Sat Feb 28 06:22:15 CET 2009


Hello Hooman,

On 28/02/2009, at 3:38 PM, Hooman Javidnia wrote:

> Hello,
>
> I need to typeset degrees symbol in a LaTeX document that I am setting
> in XeLaTeX. I have set default font features as
> \defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
> When I use the Unicode degree symbol (on a Mac keyboard
> Option-Shift-8, like 360°), I get an error message.

Please provide more information, such as:

  a)  what exactly was the message?
  b)  what else are you using in the document
      that may be affecting the characters?

> Should I change
> the Mapping of the fonts? Is there  a better way of doing this in
> XeTeX? I know that I can use ^{\circ}, but it would be better not to
> use math macros in this document.

I have no problem at all with the following simple LaTeX
document, with the degree-symbol in either text or math:

>>> \documentclass{article}
>>> \usepackage{fontspec}
>>> \defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
>>> \begin{document}
>>> %
>>> \section{Latin Modern}\label{sec:latin_modern}
>>> This is section~\ref{sec:latin_modern}.
>>>
>>>   ° •  360° $ 360° $
>>> \end{document}


So something else you are using must have some
bearing on the undesirable result that you are seeing.

>
> Regards,
>
>
> Hooman Javidnia


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------





More information about the XeTeX mailing list