Math & Science ⇒ Large Arrow on top of Symbol
Large Arrow on top of Symbol
How can I display a large arrow on top of a symbol? I need something like \vec, but with a longer arrow which extends over a longer symbol. For example, $\vec X_+$ only displays the arrow on top of the X, but I need it to extend over the whole symbol $X_+$.
NEW: TikZ book now 40% off at Amazon.com for a short time.
Large Arrow on top of Symbol
Try the following:
For the standard LaTeX font (Computer Modern), this solution isn't very neat (as shown in this post).
Code: Select all
\documentclass{article}
\renewcommand{\vec}[1]{\overrightarrow{#1}}
\begin{document}
$\vec{xy}$
\end{document}
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Follow howtoTeX on twitter
Re: Large Arrow on top of Symbol
Thanks, but isn't there a way to display an arrow that looks more like the one you get with \vec?
Large Arrow on top of Symbol
As far as I know, there is no symbol like that. Also note that the arrow over symbols is used mainly for handwritten vectors. In literature, you mostly find vectors to be bold. Consider this then:
Code: Select all
\renewcommand{\vec}[1]{\ensuremath{\boldsymbol{#1}}}
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Follow howtoTeX on twitter
Large Arrow on top of Symbol
I've had the same problem some time ago.
looks bad because the arrow is too small. Now i use
which looks much better.
But clearly this isn't suitable if the arrow has to be extended over the whole term.
Code: Select all
\vec{e_x}
Code: Select all
\vec{e}_x
But clearly this isn't suitable if the arrow has to be extended over the whole term.