The code is below
\documentclass[12pt]{article}
\usepackage{unicode-math}
\setmathfont{XITS Math}
\begin{document}
\large
$\vec{a}^{12345}$
\end{document}
Then the arrow of \vec is too long and penetrate the superscript 12.
I just want the the arrow of \vec is above a, not whole of a^{12345}
And I use xelatex to run the code.
However, if I replace $\vec{a}^{12345}$ with $\vec{ab}^{12345}$, then it looks quite good. The arrow of \vec is just above ab, it do not stretch and penetrate 12.
Can anyone tell me how to fix the problem?

lualatexgives the desired result. – Torbjørn T. Apr 8 '12 at 11:50