To draw a LaTeX arrow I use the following code:
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\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?
latex'-latex'
?-
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.\draw [<->] (-1/3,2/3) -- (-1/3,4/3);
I found it on page 41-42 (section 2.17) of the PGF manual (ctan.mirrors.hoobly.com/graphics/pgf/base/doc/pgfmanual.pdf) that @BambOo mentioned.