Math & ScienceVector Arrow misaligned

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
josef
Posts: 2
Joined: Thu Apr 02, 2009 4:58 pm

Vector Arrow misaligned

Post by josef »

hi!

I have the following problem in math mode:

$\vec{u}$, due to the italics in math mode, sets the arrow slightly to the right over the u.

The problem is that with $\vec{1}$, the 1 is upright, but the arrow is set again slightly to the right, which looks ugly.

Is there a simple way to have the arrow centered over the 1?

thanks,

Josef

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Vector Arrow misaligned

Post by Stefan Kottwitz »

Hi Josef,

welcome to the board!
An easy workaround could be to add some space, like

Code: Select all

$\vec{\mskip\thinmuskip 1}$
Stefan
LaTeX.org admin
josef
Posts: 2
Joined: Thu Apr 02, 2009 4:58 pm

Re: Vector Arrow misaligned

Post by josef »

Thanks, Stefan!

this looks much better than anything I tried out!

I have the impression though that when used in superscript it looks different from normal text... but no-one will probably recognize this but me ;-)

again, thanks alot!

-- Josef
Post Reply