帶循環箭頭的方程式(見圖)

帶循環箭頭的方程式(見圖)

我怎麼才能排版這個方程式:

在此輸入影像描述

答案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}

前面程式碼的輸出

相關內容