我需要使用箭头调用angle 60
,但我希望箭头更大。
我尝试了下面的代码,但scale
(或length
或width
)参数不适用于angle 60
(但它适用于Triangle
),并且我在谷歌上找不到任何东西......
\documentclass[a4paper,11pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows}
\begin{document}
\begin{tikzpicture}
\node[draw,rectangle] (A) {\textbf{A}};
\node[draw,rectangle,right=2.5 of A] (B) {\textbf{B}};
\draw[-{angle 60}] (A) -- (B);
\node[draw,rectangle,below=1 of A] (C) {\textbf{C}};
\node[draw,rectangle] (D) at(B|-C) {\textbf{D}};
\draw[-{angle 60[scale=3]}] (C) -- (D);
\node[draw,rectangle,below=1 of C] (E) {\textbf{E}};
\node[draw,rectangle] (F) at(D|-E) {\textbf{F}};
\draw[-{Triangle}] (E) -- (F);
\node[draw,rectangle,below=1 of E] (G) {\textbf{G}};
\node[draw,rectangle] (H) at(F|-G) {\textbf{H}};
\draw[-{Triangle[scale=3]}] (G) -- (H);
\end{tikzpicture}
\end{document}
有什么建议吗?
答案1
您可以使用箭头Straight Barb
并arrows.meta
设置angle'=60
。
\documentclass[a4paper,11pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows,arrows.meta}
\begin{document}
\begin{tikzpicture}
\node[draw,rectangle] (A) {\textbf{A}};
\node[draw,rectangle,right=2.5 of A] (B) {\textbf{B}};
\draw[-{angle 60}] (A) -- (B);
\node[draw,rectangle,below=1 of A] (C) {\textbf{C}};
\node[draw,rectangle] (D) at(B|-C) {\textbf{D}};
\draw[-{Straight Barb[angle'=60,scale=4]}] (C) -- (D);
\node[draw,rectangle,below=1 of C] (E) {\textbf{E}};
\node[draw,rectangle] (F) at(D|-E) {\textbf{F}};
\draw[-{Triangle}] (E) -- (F);
\node[draw,rectangle,below=1 of E] (G) {\textbf{G}};
\node[draw,rectangle] (H) at(F|-G) {\textbf{H}};
\draw[-{Triangle[scale=4]}] (G) -- (H);
\end{tikzpicture}
\end{document}