I am following the answer here where it shows how to adjust the arrow head. It works, but only for default >
arrow head. When I change it to latex
, stealth
or any of the other type of arrow heads, the size does not change.
MWE
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows,calc,decorations.markings,math,arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw[-{>[scale=1.0]}] (0,0) -- (1,0);
\end{tikzpicture}
\begin{tikzpicture} %works ok, gets larger
\draw[-{>[scale=3.0]}] (0,0) -- (1,0);
\end{tikzpicture}
\begin{tikzpicture} %does not scale, only change shape
\draw[-{latex[scale=3.0]}] (0,0) -- (1,0);
\end{tikzpicture}
\begin{tikzpicture} %does not scale, only changes shape
\draw[-{stealth[scale=3.0]}] (0,0) -- (1,0);
\end{tikzpicture}
\end{document}
What would the syntax be to scale the other arrow heads? Using the above layout and not using tikzset
or other fancy macros. Am I doing something wrong in the above?
Best Answer
Load the TikZ library
arrows.meta
and use the scalable arrows that come with that library:Notice to difference between
latex
vsLatex
, andstealth
vsStealth
for naming the type of arrowhead.