我想使用包为 tex 文档绘制修改后的立方体的附图tikz-cd
,但从立方体的命令进行修改似乎在这里不起作用。
欢迎提出任何建议。
我尝试制作立方体的代码
\documentclass[12pt]{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd}[row sep=1.5em, column sep = 1.5em]
N \arrow[rr] \arrow[dr,dashed, swap,"f"] \arrow[dd,swap] &&
N_s \arrow[dd] \arrow[dr,"f_1"] \\
& M \arrow[rr] &&
M_s \arrow[dd,"h"] \\
N_{1+s} \arrow[rr,] \arrow[dr, "f_2"] && N_{s(1+s)} \arrow[dr] \\
& M_{1+s} \arrow[rr] \arrow[uu]&& M_{s(1+s)}
\end{tikzcd}
\]
\end{document}
这给了我
我为修改后的立方体尝试的代码
\documentclass[12pt]{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd}[row sep=1.5em, column sep = 1.5em]
N \arrow[rr] \arrow[dr,dashed, swap,"f"] \arrow[dd,swap] &&
N_s \arrow[dd, "y"] \arrow[dr,"f_1"] \\
& M \arrow[rr] &&
M_s \arrow[dd,"h"] \\
N_{1+s} \arrow[rr,] \arrow[dr, "f_2"] && X \arrow[rr,"x"] && N_{s(1+s)} \arrow[dl] \\
& M_{1+s} \arrow[rr] \arrow[uu]&& M_{s(1+s)}
\end{tikzcd}
\]
\end{document}
没有产生所需的图表
答案1
以下代码对我有用
\documentclass[12pt]{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd}[row sep=1.5em, column sep = 1.5em]
P \arrow[rrrr] \arrow[dr,dashed, swap,"f", two heads] \arrow[dd,swap] &&&&
A_j[t]^n \arrow[dd] \arrow[dr,"f_1"] \\
& I \arrow[rrrr] &&&&
I_j \arrow[dd,"h"] \\
(A_{1+j}[t])^n \arrow[rr] \arrow[dr, "f_2"] && (A_{j(1+j)}[t])^n
\arrow[rr,"\sim", dashed ] && A_{j(1+j)}[t]^n \arrow[dr] \\
& I_{1+j} \arrow[rrrr] \arrow[uu]&&& &I_{j(1+j)}
\end{tikzcd}
\]
\end{document}