是否有一种简单的方法可以使用以下方法增加箭头尖端的大小:
\tikzset{myptr/.style=->, ????}
Run Code Online (Sandbox Code Playgroud)
没有从头开始设计新的箭头样式?
Mat*_*gro 24
一个解决方案,非常快,只需缩放箭头%2
,如下所示:
\documentclass[multi=false,tikz,border=2mm]{standalone}
\usetikzlibrary{arrows,decorations.markings}
\begin{document}
\begin{tikzpicture}
%1
\draw [->,>=stealth] (0,.5) -- (2,.5);
%2
\draw [decoration={markings,mark=at position 1 with
{\arrow[scale=3,>=stealth]{>}}},postaction={decorate}] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}
Run Code Online (Sandbox Code Playgroud)
这会产生:
(抱歉过度放大).
在这个问题的答案中以及在这个答案中,我使用的是更多的来源.
附录
\tikzset
做法.这段代码:
\documentclass[multi=false,tikz,border=2mm]{standalone}
\usetikzlibrary{arrows,decorations.markings}
\begin{document}
\begin{tikzpicture}
\tikzset{myptr/.style={decoration={markings,mark=at position 1 with %
{\arrow[scale=3,>=stealth]{>}}},postaction={decorate}}}
%1
\draw [->,>=stealth] (0,.5) -- (2,.5);
%2
\draw [myptr] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}
Run Code Online (Sandbox Code Playgroud)
产生与上述相同的输出(来源:PGF手册,第2.8节).
显然你可以用-Latex
而不是stealth
.