
화살표 없이 모서리를 그리려고 했는데요. 내가 이것을 할 때:
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw](A) {};
\draw[thick] (A) edge[loop below] (A);
\end{tikzpicture}
tikz 코드에 ">="를 지정하지 않았는데도 화살표가 표시됩니다. "가장자리[-,아래 루프]"를 시도했지만 여전히 화살표가 표시됩니다. "edge[style={},loop below]"도 시도했습니다. 마침내 거리를 시도하여 화살표를 제거했습니다.
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw](A) {};
\draw[thick] (A) edge[loop below, distance=1cm] (A);
\end{tikzpicture}
거리가 화살표를 끄는 이유는 무엇입니까? 여기서 뭔가 빠졌나요?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw](A) {};
\draw[thick] (A) edge[loop below] (A);
\end{tikzpicture}
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw](A) {};
\draw[thick] (A) edge[loop below, distance=1cm] (A);
\end{tikzpicture}
\end{document}
답변1
대답은 아니지만 매뉴얼(75.4 루프)에서 추론하면 구문 분석 논리일 수 있습니다(아마도 의 정의와 상호 작용 edge[loop]
하지만 이는 추측입니다).
초기값은 이고 ->
, loop below
나머지는 설정된 값이 없습니다. edge[distance=10pt,loop below]
화살표 팁을 생성하는 참고입니다 .
MWE
\documentclass{article}
\usepackage{tikz}
\begin{document}
\center
\begin{tabular}{cc}
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw,pin={(A) edge[in=255,out=285,min distance=5mm] (A)}](A) {1};
\draw[thick] (A) edge[in=255,out=285,min distance=5mm] (A);
\end{tikzpicture} &
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw,pin={edge[->...}](A) {1};
\draw[thick] (A) edge[->,in=255,out=285,min distance=5mm] (A);
\end{tikzpicture}\\
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw,pin={(A) to [loop below] ()}](A) {2};
\draw[thick] (A) to [loop below] ();
\end{tikzpicture} &
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw,pin={\textbackslash draw[thick,->]...}](A) {2};
\draw[thick,->] (A) to [loop below] ();
\end{tikzpicture}\\
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw,pin={(A) edge[loop below, distance=2mm] (A)}](A) {3};
\draw[thick] (A) edge[loop below, distance=2mm] (A);
\end{tikzpicture}&
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw,pin={edge[->,...}](A) {3};
\draw[thick] (A) edge[->,loop below, distance=2mm] (A);
\end{tikzpicture}\\
\end{tabular}
\begin{tikzpicture}%[every loop/.style={}]
\draw (0,0) edge [red,loop above] () to [loop right] ()
to [loop below] () to [loop left] ();
\end{tikzpicture}
\begin{tikzpicture}[every loop/.style={}]
\draw (0,0) edge [loop above] () to [loop right] ()
to [loop below] () to [loop left] ();
\end{tikzpicture}
\begin{tikzpicture}
\node [circle,draw] {a} edge [loop above] node {x} ();
\end{tikzpicture}
\begin{tikzpicture}[every loop/.style={}]
\node [circle,draw] {a} edge [loop above] node {x} ();
\end{tikzpicture}
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw](Z) {};
\draw[thick] (Z) edge[red,distance=10pt,loop below] (Z);
\end{tikzpicture}
\begin{tikzpicture}
\draw[thick] (0, 0) node[circle, draw](Z) {};
\draw[thick] (Z) edge[loop below,distance=10pt] (Z);
\end{tikzpicture}
\end{document}