TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The code is below

\setmathfont{XITS Math}    

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?

share|improve this question
Just mentioning that compiling with lualatex gives the desired result. – Torbjørn T. Apr 8 '12 at 11:50

This is a bug in XeTeX's math accent handling, should be fixed in the coming TeX Live 2012.

share|improve this answer

It seems like single-character arguments to \vec are handled differently. In that sense, supplying a fake two-element argument solves your problem:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.