If I want to use the dot notation for the time derivative of a vector is better (more common) to put the dot over the vector, or the other way around
-
\dot{\vec{v}}
-
\vec{\dot{v}}
The first says the rate of change of the vector components, and the second says a vector made from the component rates.
Best Answer
I’ve only ever seen it written with the dot above the arrow; never below it. As @PeterGrill pointed out, this might be a good case to use boldface instead of arrows.
That said, I personally feel that arrow-vectors are under-used in TeX because the default implementation (
\vec
) looks awful. With some tweaks, it can be made to look better.About TeX's \vec macro
One reason
\vec
looks bad is because the arrows are always the same width. Notice, for example, how\vec{w}
and\vec{m}
look:The ‘m’ looks like it’s wearing a t-shirt three sizes too small, and the ‘w’ looks like it's having trouble balancing a plate on its head.
Let’s look at a more real-life example. Notice how the arrow sits too far to the right of the ‘r’ and ‘v’ below. Worse yet, the arrowheads are crooked, and the dots atop them are too high and are mis-aligned:
Alternative 1 — esvect's \vv macro
To improve upon this, the LaTeX2e package
esvect
provides 8 new variants of vector styles. Shown below is styleb
, which in my opinion looks the best of the bunch. You can write\vv{PQ}
and the arrows are automatically drawn as wide as needed. However, note that the arrows are far too wide for vector variables, and also note that the horizontal bar of the arrow is composed of multiple overlapping line segments, resulting in visible anti-aliasing rendering artifacts when viewed on the screen:I don’t recommend using
\vv
unless you really like the super-wide arrows. You might also want to check out the other 7 variants.Alternative 2 — new macro \xvec
To address the shortcomings of
\vec
and\vv
, here is a new command called\xvec
(for lack of a better name) which measures its argument automatically and provides appropriate alignment for dots:There are three forms:
\xvec{}
makes an unadorned vector variable.\xvec[.]{}
makes a single-dotted vector variable.\xvec[:]{}
makes a double-dotted vector variable.The sample file (included at the bottom of this reply) includes definitions to override TeX's default
\vec
(if you prefer) and also provides shortcuts\dvec
and\ddvec
for single- and double-dotted vectors, respectively.Here are the 26 letters ‘a’ to ‘z’:
I’m not terribly happy with the ‘i’ and the ‘j’, but these are almost always typeset in boldface anyway—especially when used with a hat to denote unit vectors.
Source code with examples used in this answer
Caveats
\xvec
is intended for\textstyle
and\displaystyle
sizes only; it will not work properly for\scriptstyle
and\scriptscriptstyle
.