有人能告诉我如何绘制这样的图表吗? 我正在从这里看。
http://texdoc.net/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf
谢谢。
我试过
$
\begin{tikzcd}
\text{A} \arrow[r] \arrow[d] & \text{D} \arrow[d] \\
\text{B}\arrow[r] & \text{B}
\end{tikzcd}
$
答案1
起点:
\documentclass[margin=3.1415692mm]{standalone}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta, bending}
\usepackage{amsmath}
\begin{document}
\begin{tikzcd}[column sep=13mm, row sep=13mm,
bend angle=20]
IS \ar[rr,Leftrightarrow, blue]
\ar[rd, Rightarrow, bend right, "\text{not}" description, red]
\ar[dd, Rightarrow, bend right, "\text{not}" description]
& & CD \ar[dd, Rightarrow, bend left, "\text{not}" description, red]
\ar[dl, Rightarrow, bend right, "\text{not}" description, red]\\
& ECD \ar[ul, Rightarrow, bend right, dashed, blue]
\ar[ru, Rightarrow, green]
\ar[ld, Leftrightarrow, dashed, blue]
\ar[rd, Leftrightarrow, dotted, blue]
& \\
EIS \ar[uu, Rightarrow, green]
\ar[rr, green, Leftrightarrow]
& & CD \ar[uu, Rightarrow, dotted, blue]
\end{tikzcd}
\end{document}
答案2
为了重复冗长的按键组合,可以引入快捷键。这也是为了重现右下角蓝色箭头的特殊图案。
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\colorlet{mgreen}{green!70!black}
\begin{document}
\[
\begin{tikzcd}[row sep=3em,column sep=3em,
rnot/.style={Rightarrow,red,"\text{not}" {description}},
bd/.style={preaction={draw,blue,line width=1.6pt,-,shorten >=2.2pt,shorten
<=2.2pt},
blue,dashed}
]
\text{IS} \arrow[rr,Leftrightarrow,blue,dashed]
\arrow[dd,bend right,rnot]
\arrow[dr,bend right=15,rnot]
& & \text{CD}
\arrow[dd,bend left,rnot]
\arrow[dl,bend left=15,rnot]
\\
&\text{EIS}
\arrow[ul,Rightarrow,blue,dashed,bend right=15]
\arrow[ur,Rightarrow,mgreen,bend left=15]
&\\
\text{EIS} \arrow[uu,Rightarrow,mgreen]
\arrow[ur,Leftrightarrow,blue,dashed]
\arrow[rr,Leftrightarrow,mgreen]
& & \text{CA} \arrow[ul,Leftrightarrow,bd]
\arrow[uu,Rightarrow,bd]\\
\end{tikzcd}
\]
\end{document}