I’m having trouble with XeLaTeX (0.9998) and unicode-math (0.7a). If I use \setmathfont more than twice, the \sqrt command breaks when a superscript is specified.
\documentclass{minmal}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\setmathfont[range=\mathup/{num,latin,Latin}]{Linux Libertine O}
\setmathfont[range=\mathup/{greek,Greek}]{Symbola}
\begin{document}
\[ \sqrt[5]{2} \]
\end{document}
If I typeset this code, XeLaTeX will produce the following error
Font \l_tmpb_font has only 8 fontdimen parameters.
If I remove the superscript from \sqrt or remove the last \setmathfont command, the document compiles correctly. I’ve tested this code with several OTF files, and they all produced the same result. (I know the resulting superscript is improperly positioned, but I can work on this once I know the document can be typeset.)
I filed a bug for this issue on GitHub because I believe it’s a problem with the package, but I should have checked here before doing so, and I will gladly close the bug if I find I was doing something stupid.
$\sqrt[5]{2}$. – Marco Daniel Aug 13 '12 at 16:10\setmathfont[range=\mathrm]{Arial}breaks too – but only if I use the optional argument of\sqrt:$\sqrt[5]{2}$. – Ulrike Fischer Aug 13 '12 at 16:49\[ \]around the\sqrtcommand. The error occurs when math mode is invoked; my original example obviously fails for other reasons. – AstroPig7 Aug 13 '12 at 17:23\setmathfontis defined for a range. – AstroPig7 Aug 13 '12 at 17:33