[XeTeX] Degree symbol

Hooman Javidnia hooman.javidnia at gmail.com
Sat Feb 28 06:40:38 CET 2009


Thanks Ross. It helped. The problem was that TeX was giving me an
error for another line in the code and quitting, and I was thinking
that the culprit is the degree symbol. Unicode degree symbol works
perfectly.

Thanks for the quick reply.

Cheers,
Hooman

On Sat, Feb 28, 2009 at 12:22 AM, Ross Moore <ross at ics.mq.edu.au> wrote:
> 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
> ------------------------------------------------------------------------
>
>
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>


More information about the XeTeX mailing list