# How to make vector arrows?

I would like to make a vector over my beta symbol. What I use for the moment is:

$A\overrightarrow{\beta}$


I have also tried the following:

$A\vv{\beta}$
$A\vec{\beta}$


Note that all of these works if I add another symbol next to \beta. I have been googeling but these are all the solutions I found.

Edit: So to clarify. I use R Markdown in R-studio, which uses latex (maybe this is the problem). From the code $A\vec{\beta}=\vec{b}$ I get the output shown on this picture.

However, I want it to be:

The "solutions" I have stated above works if I add another symbol next to the beta, like this:

$A\vec{\beta A}=\vec{b}$


I get this output:

However, I do not want that extra A at the end.

Edit 2: SOLVED:

The problem seem to be that this issue only appears when you hover your mouse over the equation. When you actually compile the entire thing it seems to work fine. Since I had a lot of data in my rmd file I did not want to compile it but tried it in a new empty rmd file and it works just fine.

• I don't add any symbol next to \beta, i.e. \documentclass{article}\begin{document}$\overrightarrow{\beta}$\end{document} and it is Ok. What's wrong?
– user156344
Jan 23, 2019 at 10:48
• Welcome to TeX - LaTeX! Could you clarify the question. You say all of the above work, so what problem are you trying to solve. Incidentally it is better to post a minimal document demonstrating code, including the necessary packages, rather than code snippets. Jan 23, 2019 at 10:48
• It works for me. Did you compile the code in some special way which led to problems before "googeling"? Jan 23, 2019 at 11:44
• Updated with solution. Jan 23, 2019 at 14:56

\documentclass{article}
$a\overrightarrow{\beta}b$
$a\vec{\beta}b$
$a\vv{\beta}b$