[Tex/LaTex] Angle (degree) symbol with siunitx under XeLaTeX and mathspec

mathspecsiunitxxetex

Consider the following example:

\documentclass{article}
\usepackage{mathspec}
\usepackage{siunitx}

\begin{document}
\ang{30}, \SI{20}{\celsius}
\end{document}

Compiling with XeLaTex, I get:

Missing degree

The angle misses the degree symbol. With the package fontspec instead of mathspec it works fine (but I need mathspec).

Is there any solution?

Best Answer

\documentclass{article}
\usepackage{mathspec}
\usepackage{textcomp}
\usepackage{siunitx}

\sisetup{math-degree=\mbox{\textdegree},text-degree=\textdegree}
\sisetup{math-celsius=\mbox{\textdegree}C,text-celsius=\textdegree C}

\begin{document}
\ang{30}, \SI{20}{\celsius}
\end{document}

enter image description here