Typesetting $\overrightarrow{OQ}$ yields a very unpleasant gap in the arrow when used with garamond. Here's a minimal working example that shows the problem. It looks okay without the garamond line.


This is clearly an unwanted feature. Is it possible to fix this? (discarding garamond is not an option, I've already typeset and printed several hundreds of pages with it, and I want uniformity in my documents for my students).

1 Answer 1


The problem is that the minus sign and the arrow in the math font that's used with the garamond option is shorter than usual and this breaks \rightarrowfill that's used in \overrightarrow.

You should repair the glitch by redefining \rightarrowfill:







enter image description here

Using amsmath (which is implicitly loaded by amsart and amsbook) the patch should also be to \arrowfill@; it's simpler to use etoolbox:

  • Thanks so much, it works fine! Well, in fact I'm using the amsbook class, which uses \rightarrowfill@ instead of \rightarrowfill... so I redefined \overrightarrow as found in base/fontmath.ltx and with your fix it seems to work perfectly! Sep 30, 2012 at 16:26
  • 1
    @gniourf_gniourf I've added the patch for amsmath
    – egreg
    Sep 30, 2012 at 16:32
  • fantastic! I'm now using your patch for amsmath, it's much nicer than my solution. Thanks a lot! Sep 30, 2012 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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