Under Up Arrow Text

I'm trying to do something similar to $\underleftarrow{A}$; however with the up arrow, not left or right arrows, i.e., I want to draw a pointer at A. Any suggestion, please?

-

Will

\newcommand*{\underuparrow}[1]{\underset{\uparrow}{#1}}
$\underuparrow{A}$


help?

You can get rid of using \$ also by using \ensuremath:

\newcommand*{\underuparrow}[1]{\ensuremath{\underset{\uparrow}{#1}}}


The MWE:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\newcommand*{\underuparrow}[1]{\ensuremath{\underset{\uparrow}{#1}}}
\underuparrow{A}
\end{document}


Edit You can add some coloring to spice things up:

\documentclass{article}
\usepackage{mathtools,xcolor}
\begin{document}
\newcommand*{\underuparrow}[1]{\ensuremath{\underset{\color{red}{\uparrow}}{#1}}}
\underuparrow{A}
\end{document}


-
Perfect, many thanks, Will! Now, I also learn that we can add stuffs under other texts using underset –  ewind May 8 '12 at 9:57
@ewind: Welcome. –  Harish Kumar May 8 '12 at 10:14