Is there a standard way to make a tikz-cd figure consisting of two commutative diagrams appearing side by side with a \Rightarrow in between them? I would like to write a conditional statement with diagrams.
Asked
Active
Viewed 56 times
0
1 Answers
2
Just place the diagrams side by side, the only problem is the vertical alignment.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\begin{document}
\begin{equation}
\begin{tikzcd}[baseline=-axis_height]
A \arrow[r] \arrow[d] & B \arrow[d] \
C \arrow[r] \arrow[d] & D \arrow[dl] \
E
\end{tikzcd}
\implies
\begin{tikzcd}[baseline=-axis_height]
X \arrow[r] \arrow[dr] & Y \arrow[d] \
& Z
\end{tikzcd}
\end{equation}
\end{document}
egreg
- 1,121,712
-
never knew about that baseline parameter, looks useful for numbered diagrams and such. Thanks! – Carson James Mar 13 '23 at 06:00

\Rightarrowbetween them (in math mode, of course). Should both CDs have the same rows? Do they need braces around them? – Qrrbrbirlbel Mar 11 '23 at 17:53