我使用 tikz 绘制三角形中的三个节点,并用箭头连接。我想从每个节点添加一个圆边以本身,基本上像
\path[<->] (left) edge (left)
下面的示例一样添加边。但是,它似乎不起作用。有人能给我提示如何解决这个问题/在哪里查看吗?
\begin{tikzpicture}
\draw(0,0)node[left] (left){news media };
\draw(5,0)node[right] (right) {citizens};
\draw(60:5)node[above] (above){political actors};
\path[<->] (left) edge (right);
\path[<->] (left) edge (above);
\path[<->] (above) edge (right);
\end{tikzpicture}
答案1
loop
正如问题下方评论中所述,可以使用pgfmanual (v3.0.1a) 中的第 70.4 节,第 748 页。应用到你给出的例子,它将类似于
\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw(0,0)node[left] (left){news media };
\draw(5,0)node[right] (right) {citizens};
\draw(60:5)node[above] (above){political actors};
\path[<->] (left)
edge (right)
edge [loop left] node {bla} ()
;
\path[<->] (right)
edge (above)
edge [loop right] node {bli} ()
;
\path[<->] (above)
edge (left)
edge [loop above] node {blub} ()
;
\end{tikzpicture}
\end{document}
结果如下