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


I have also tried the following:


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.

Picture of my output

However, I want it to be:

The output I want

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:

enter image description here

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.

  • 1
    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
    Commented 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. Commented 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"?
    – L. F.
    Commented Jan 23, 2019 at 11:44
  • Updated with solution. Commented Jan 23, 2019 at 14:56

1 Answer 1


enter image description here

  • The problem was that R markdown did not show the arrow when I hovered my mouse over it but only when I compiled it. Commented Jan 23, 2019 at 14:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .