Math & ScienceResult of '\overrightarrow' looks bad

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Koen De Naeghel
Posts: 1
Joined: Tue Aug 23, 2011 2:32 pm

Result of '\overrightarrow' looks bad

Post by Koen De Naeghel »

Hi,

I have recently noticed that the arrow in my \overrightarrow command is larger than it is supposed to be. When I compile (MiKTeX 2.8):

Code: Select all

\documentclass{book}

\begin{document}
$\overrightarrow{abc}$
\end{document}
my output looks like
bad.png
bad.png (6.44 KiB) Viewed 3741 times
but it is supposed to look like
good.png
good.png (2.63 KiB) Viewed 3741 times
It becomes annoying when I use capital letters, since then the arrow touches the letter itself. Then I get results like
badCapital.png
badCapital.png (3.11 KiB) Viewed 3739 times
Anyone has advice how to fix this?

Thanks,
Koen
Last edited by localghost on Tue Aug 23, 2011 4:12 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Result of '\overrightarrow' looks bad

Post by shadgrind »

You've run into one of the problems with the default Computer Modern fonts. You can use the \vphantom command to get some extra vertical space for capital letters, but the arrow will still be too big. Other fonts don't have this problem. For example, you get better spacing and smaller arrow heads when using the fouriernc package:
arrowtest.png
arrowtest.png (6.76 KiB) Viewed 3733 times
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
Post Reply