
答案1
由於這似乎是一個交換圖,因此您應該為此類圖使用專用工具,例如tikz-cd
。由於該套件已經為您提供了所需的元素,因此現在的程式碼是一行:
\documentclass{standalone}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}[column sep=small]
S\ar[r] & K\ar[r]\ar[loop,"D",swap,looseness=4] & S
\end{tikzcd}
\end{document}
答案2
\documentclass{article}
\usepackage{stackengine,amssymb,graphicx}
\newcommand\blivet[2]{\stackengine{-.3ex}{#1}{\stackon[1pt]{\CAL}{#2}}{O}{c}{F}{T}{L}}
\newcommand\CAL{\scalebox{2}{\rotatebox[origin=center]{170}{$\circlearrowleft$}}}
\stackMath
\begin{document}
\begin{equation}
S\rightarrow \blivet{K}{D}\rightarrow S
\end{equation}
\end{document}
注意:編輯稍微調整參數。
這是一個循環稍小的版本,其線條粗細與 的線條粗細更好匹配\rightarrow
。
\documentclass{article}
\usepackage{stackengine,amssymb,graphicx}
\newcommand\blivet[2]{\stackengine{-.1ex}{#1}{\stackon[.5pt]{\CAL}{#2}}{O}{c}{F}{T}{L}}
\newcommand\CAL{\scalebox{1.7}{\rotatebox[origin=center]{170}{$\circlearrowleft$}}}
\stackMath
\begin{document}
\begin{equation}
S\rightarrow \blivet{K}{D}\rightarrow S
\end{equation}
\end{document}
答案3
這是一個tikz
圖形,但是:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node (A) {A};
\node (B) [right= of A] {B};
\node (C) [right= of B] {C};
\draw [->] (A) -- (B);
\draw [->] (B) -- (C);
\draw [->] (B) edge [loop, out=45, in=135, looseness=5] node [above] {D} (B);
\end{tikzpicture}
\end{document}