我有一些圆节点放置在等边三角形中:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
[nodestyle/.style={circle,draw=blue!50,fill=blue!20,thick}]
\node (A) at (0,1.732) [nodestyle] {A};
\node (B) at (-1,0) [nodestyle] {B};
\node (C) at (1,0) [nodestyle] {C};
\end{tikzpicture}
\end{document}
现在我想要类似的东西\draw [->] (A.south west) -- (B.north east)
,但锚点没有放在225deg
/45deg
但是240deg
/60deg
我该如何设置锚点的度数?
答案1
为什么要指定锚点?
让 TikZ 完成它的工作:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
[nodestyle/.style={circle,draw=blue!50,fill=blue!20,thick}]
\node (A) at (0,1.732) [nodestyle] {A};
\node (B) at (-1,0) [nodestyle] {B};
\node (C) at (1,0) [nodestyle] {C};
\draw [->] (A) -- (B);
\end{tikzpicture}
\end{document}