#Vector command with harpoon arrow over all characters

1 messages · Page 1 of 1 (latest)

full wolf
#

Currently, the command \newcommand{\vek}{\overset{\rightharpoonup}} creates a harpoon styled arrow over one letter, such as a. But if I add more, the arrow doesn't appear to change in size, as if there was only one character and not more. See the following example:

\documentclass{standalone}
\usepackage{amsmath}

\newcommand{\vek}{\overset{\rightharpoonup}}

\begin{document}

$\vek{a}$
$\vek{AB}$

\end{document}

Basically, I want an arrow that spans the length of all given characters, not only one. As a bounus, I would like the arrow to be slightly lower than it is at the moment.

inner ridgeBOT
#

hopcefizl
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

full wolf
#

I assume I again didn't need to use curly brackets like I did before with the other command #1090265695520038912 message

severe ermine
#

@stark jewel 👀

stark jewel
#

OMFG (excuse my excitement)

#

,ctan pdfmsym

inner ridgeBOT
#

This package defines a handful of mathematical symbols many of which are implemented via PDF’s builtin drawing utility. It is intended for use with pdfTeX and LuaTeX and is supported by XeTeX to a lesser extent. Among the symbols it defines are some variants of commonly used ones, as well as more obscure symbols which cannot be as easily found in other TeX or LaTeX packages.
​ ​ ​ ​ ​ ​ Sources: /macros/generic/pdfmsym
Documentation: README.md, Package documentation
​ ​ ​ ​ ​ ​ Version: 1.1.1
​ Contained in: TeX Live as pdfmsym, MiKTeX as pdfmsym
​ ​ ​ ​ ​ ​ ​ Topics: Graphics symbols, Maths symbol, Generic Macros
Read more at CTAN page of the package.

stark jewel
#

pdfMsym provides \overrightharp

stark jewel
stark jewel
hexed kelpBOT
#

@stark jewel has earned the Very Active role!

stark jewel
#

About time tbh

full wolf
#

Very cool you got a Very Active role :O

#

So there's no nice solution using only \newcommand and amsmath?

#

omg you made the package?

#

seemed weird the dates were recent

stark jewel
#
stark jewel