40

I'm doing a presentation for a lay audience and I was hoping to have an arrow above the word "dim" to differentiate the dimension vector from the dimension generally. However, $\xrightarrow{dim}$ puts the arrow in the centre (as one would have for a map) which makes the dim small and doesn't look good. So is there an arrow which works like a $\widehat{dim}$ but with an arrow instead of a hat?

P.S. The text I'm using just uses an underline but I feel it isn't noticeable enough. Likewise I could just use the hat perhaps but I think an arrow is more intuitive (it was how we denoted vectors at my highschool). However, I will also accept other ways of differentiating.

1 Answer 1

53

You could use \overrightarrow:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
 \overrightarrow{\dim} , \quad \overrightarrow{\text{dimension}}
\]
\end{document}

dim with extensible arrow above

This and further alternatives can be found at the LaTeX-Community forum in the topic Extended Vector Arrow. So there are nice arrows with esvect:

\documentclass{article}
\usepackage{amsmath}
\usepackage{esvect}
\begin{document}
\[
 \vv{\dim} , \quad \vv{\text{dimension}}
\]
\end{document}

esvect example

3
  • What is the difference between esvect and not using it? The over arrows seem equal. Commented Apr 1 at 12:51
  • 2
    @user3123159 Both images are different. Perhaps you compare the arrows within the same image? They are done using the same command, just showing that they are extended over long text.
    – Stefan Kottwitz
    Commented Apr 2 at 11:51
  • I did not look carefully, now I see that the second arrow image is more bold than the first. Commented Apr 2 at 18:00

You must log in to answer this question.

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