我想将这些图表并排摆放。如能得到任何帮助我将不胜感激。
{\Large$$
\begin{tikzcd}
X\arrow{r}{i}\arrow[swap]{dr}{j} & M \arrow{d}{j'}\\
& N
\end{tikzcd}
$$}
和
{\Large$$
\begin{tikzcd}
X\arrow{r}{j}\arrow[swap]{dr}{i} & N \arrow{d}{i'}\\
& M
\end{tikzcd}
$$}
答案1
答案2
如果你真的坚持\Large
(但你不应该),定义你自己的环境。最好使用“现代”箭头语法。
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\newsavebox{\tikzcdbox}
\newenvironment{Largetikzcd}
{\begin{lrbox}{\tikzcdbox}\Large\begin{tikzcd}}
{\end{tikzcd}\end{lrbox}\usebox{\tikzcdbox}}
\begin{document}
\[
\begin{Largetikzcd}
X \arrow[r,"i"] \arrow[dr,swap,"j"] & M \arrow[d,"j'"] \\
& N
\end{Largetikzcd}
\qquad
\begin{Largetikzcd}
X \arrow[r,"j"] \arrow[dr,swap,"i"] & N \arrow[d,"i'"] \\
& M
\end{Largetikzcd}
\]
\[
\begin{tikzcd}
X \arrow[r,"i"] \arrow[dr,swap,"j"] & M \arrow[d,"j'"] \\
& N
\end{tikzcd}
\qquad
\begin{tikzcd}
X \arrow[r,"j"] \arrow[dr,swap,"i"] & N \arrow[d,"i'"] \\
& M
\end{tikzcd}
\]
\end{document}
$$
切勿在 LaTeX环境中使用document
。