在 tikz 中如何画一条绕一个元素旋转之后最后到元素自身的一条曲线,比如下图绕字母 x 的带箭头的曲线:
\begin{tikzpicture}
\node[] (a) {$x$};
\draw[->] (a.north) to[out=135,in=90] ([xshift=-0.2cm]a.west) to[out=-90,in=-135] (a.south);
\end{tikzpicture}
\begin{tikzpicture}
\node[inner sep=1pt] (a) at (0,0) {$x$};
\node[inner sep=1pt] (b) at (2,2) {$y$};
\draw[-latex] (a.0) -- (b.-90);
\draw[-latex] (a.90) to[out = 90,in=180] (b.180);
\end{tikzpicture}
谢谢大佬!