并排的交换图

并排的交换图

我想将这些图表并排摆放。如能得到任何帮助我将不胜感激。

{\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

你是这个意思吗?

在此处输入图片描述

\documentclass{article}

\usepackage{tikz-cd}

\begin{document}

\[
\begin{tikzcd}
X\arrow{r}{i}\arrow[swap]{dr}{j} & M \arrow{d}{j'}\\
& N
\end{tikzcd}\hspace{1cm}
\begin{tikzcd}
X\arrow{r}{j}\arrow[swap]{dr}{i} & N \arrow{d}{i'}\\
& M
\end{tikzcd}
\]

\end{document}

答案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

相关内容