[Tex/LaTex] How to elongate down arrow

math-modesymbols

\downarrow command is available in directory but it has fixed length. How can I elongate its length?

enter image description here

Best Answer

The \downarrow symbol is an extensible delimiter:

\documentclass{article}

\newcommand{\xdownarrow}[1]{%
  {\left\downarrow\vbox to #1{}\right.\kern-\nulldelimiterspace}
}

\begin{document}

$
\downarrow
\big\downarrow
\Big\downarrow
\bigg\downarrow
\Bigg\downarrow
\xdownarrow{2cm}
$

\end{document}

enter image description here

You can use the same method also for \uparrow, \updownarrow, \Downarrow, \Uparrow and \Updownarrow.