答案1
您可以使用tikz-cd
:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}[column sep=-2pt,
every arrow/.append style={dash}]
A&\le &B&\le &C&\le &D\arrow{dlll}[description]{\le}\\
&&&E\arrow{ulll}[description]{\le}\\
\end{tikzcd}
\end{document}
编辑:如果您想要曲线,只需添加bend left=25
箭头样式:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}[column sep=-2pt,
every arrow/.append style={dash, bend left=25}]
A&\le &B&\le &C&\le &D\arrow{dlll}[description]{\le}\\
&&&E\arrow{ulll}[description]{\le}\\
\end{tikzcd}
\end{document}
要获得这个:
答案2
这是一个略有不同的循环方法:
\documentclass{article}
\usepackage{amsmath,amssymb,graphicx,tikz}
\begin{document}
\begin{tikzpicture}
\path (180:1cm) node {\( A \)}
-- (120:1cm) node {\( B \)} node[sloped,pos=.5] {\( \leqslant \)}
-- (60:1cm) node {\( C \)} node[sloped,pos=.5] {\( \leqslant \)}
-- (0:1cm) node {\( D \)} node[sloped,pos=.5] {\( \leqslant \)}
-- (-90:.7cm) node {\( E \)} node[sloped,pos=.5] {\( \leqslant \)}
-- cycle node[sloped,pos=.5] {\( \leqslant \)};
\end{tikzpicture}
\end{document}
答案3
解决方案pstricks
是使用普通的 displaymath 环境和psmatrix
:
\documentclass[svgnames]{article}
\usepackage{pst-node}
\usepackage{auto-pst-pdf} % for pdflatex compilation
\begin{document}
\[ \begin{psmatrix}[rowsep=4ex]
\rnode{A}{A} ≤ B \Rnode{le}{{} ≤ {}} C ≤ \rnode{D}{D} \\
[name=E] E
\psset{nodesep=0.3em, nrot=:U, linewidth=0.5pt, linecolor=Tomato, framesep=1pt}
\nccurve[angleA=-80, angleB=160]{A}{E}\ncput*{ ≤ }
\nccurve[angleA=20, angleB=-110]{E}{D}\ncput*{ ≤ }
\end{psmatrix} \]
\end{document}
答案4
我会使用 TikZ:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[baseline=(A.base), inner sep=0pt, outer sep=0pt]
\node (A) {$A$};
\node (leq) [base right=0pt of A] {${}\leq B \leq C \leq {}$};
\node (D) [base right=0pt of leq] {$D$};
\begin{scope}[every node/.style={fill=white, inner sep=2pt}]
\draw[draw=red, bend right=60, shorten >=5pt, shorten <=5pt] (A.south) to
node [pos=.25] {$\leq$}
node [pos=.50] {$E$}
node [pos=.75] {$\leq$}
(D.south);
\end{scope}
\end{tikzpicture}
\end{document}
您可以通过改变给定选项的角度来改变弧的大小bend right
。