附上 latex 中的代码。我想从 $R'$ 画一个(虚线)箭头到 $R_S$,但我定义的箭头总是与来自 $R_S$ 的箭头合并。我该怎么做?
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
S \arrow[r, "i_R"] \arrow[d, "\phi| _S"]
& R \arrow [r,"\tau"] \arrow[d,"\phi"] & R_S \arrow[dl,dashed,"\exists !\phi'"] \\
(R')^{*} \arrow [r,"i_{R'}"]
& R' % \arrow [ur,dashed,"\exists !\tau'" yshift=-2.5ex]
\end{tikzcd}
\end{document}
答案1
您可以移动两个对角箭头;我还建议交换垂直箭头中的标签。
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
S \arrow[r, "i_R"] \arrow[d, "\phi| _S"']
& R \arrow[r,"\tau"] \arrow[d,"\phi"']
& R_S \arrow[dl,dashed,"\exists !\phi'",shift left=0.5ex] \\
(R')^{*} \arrow[r,"i_{R'}"]
& R' \arrow[ur,dashed,"\exists !\tau'",shift left=0.5ex]
\end{tikzcd}
\end{document}
(抱歉,由于技术原因,目前我无法添加图片)
您可以通过向右移动两个对角箭头并交换标签位置来交换它们。
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
S \arrow[r,"i_R"] \arrow[d,"\phi| _S"']
& R \arrow[r,"\tau"] \arrow[d,"\phi"']
& R_S \arrow[dl,dashed,"\exists !\phi'\!"',shift right=0.5ex] \\
(R')^{*} \arrow[r,"i_{R'}"]
& R' \arrow[ur,dashed,"\exists !\tau'"', shift right=0.5ex]
\end{tikzcd}
\end{document}