# Drawing a double headed LaTeX arrow

To draw a LaTeX arrow I use the following code:

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows, arrows.meta}
\begin{document}
\begin{frame}[fragile,t]
\frametitle{}
\begin{tikzpicture}[scale=.9, transform shape]
\draw [ultra thick, green!40!black, -latex'] (-.72,4.) -- +(-90:1.4);
\end{tikzpicture}
\end{frame}
\end{document}


Which gives me the left arrow. To make it a double headed arrow, I use a node to fake the second head, which gives me the right double headed arrow.

\begin{tikzpicture}[scale=.9, transform shape]
\draw [ultra thick, green, -latex'] (-.72,4.) node [minimum size=.8cm, xshift=0cm, yshift=-.26cm, path picture={\draw [ultra thick, green, solid, -latex'] (0,0) -- +(90:.4cm);}]{} -- +(-90:1.4);
\end{tikzpicture}


Is there a way to make a true LaTeX double headed arrow without the use of the node to fake the second head?

• Why don't you use latex'-latex' ? – BambOo Aug 8 '18 at 9:05
• Thank you. I tried -latex' -latex' which gave me an error, I did not know that I have to omit the first - – Hany Aug 8 '18 at 9:09
• - in arrows definitions represents the arrow line, while < or >, or whatever style, define the kind of tip and position: <-> two sided arrow, -> from left to right, <- from right to left. – Ignasi Aug 8 '18 at 10:05

To provide a complete answer :

You can use the latex'-latex' style definition.

More documentation is available on arrows definition at section 16.2 page 182 of the pgf manual.

• Thank you very much for your answer. I will read this section thoroughly. – Hany Aug 8 '18 at 9:44

I hope this helps:

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows, arrows.meta}
\begin{document}
\begin{frame}[fragile,t]
\frametitle{}
\begin{tikzpicture}[scale=.9, transform shape]
\draw[>=triangle 45, <->] (0,0) -- (2,0);
\end{tikzpicture}
\end{frame}
\end{document}


which shall give you

Extra

You could choose to play probably play with \draw[>=style options, <->, color options] (0,0) -- (2,0);