I'm looking for a vector symbol that look like that
and has the following characteristic:
- is meant to be for maths environment (also inline)
- has the form
\commandname{body} - is exactly wide as the body (to avoid problem with indices pre or post-fixed)
- the arrow is as this one:
... - ... but only the upper half
- vertically compact enough to be inline.
- compatible with
amsmath - expression under the arrow is to consist of more than one character and the arrow should cover the whole expression
There are many solutions out there that cover only half of my problem. The best starting point is the package esvect from where I took the picture of the arrow:
http://mirror.kumi.systems/ctan/macros/latex/contrib/esvect/esvect.pdf
It also contains the whole code (for who understand it).
What is missing in the package esvect is that the arrow should be halved.
MWE, the \myvect is to be replaced
\documentclass{article}
\usepackage{amsmath}
\newcommand{\myvect}[1]{\mathbf{#1}}
\begin{document}
$\myvect{r}$
\end{document}
Here is anorther link How to use harpoon-style arrows over vectors, like this? BUT (1) the space between body and arrow is for me not acceptable (as pointed out by a comment) (2) I really do not like the type of arrow head.




