[Tex/LaTex] Diagram of Short exact sequences

commutative-diagrams

Can someone help me. I want to write morphisms between all objects

\[
  \setlength{\arraycolsep}{1pt}
  \begin{array}{*{9}c}
    0 &\Lrightarrow & X & \Lrightarrow & Y & \Lrightarrow & Z & \Lrightarrow & 0\\
    & & \Ldownarrow & & \Ldownarrow & & \Ldownarrow & & \\
    0 &\Lrightarrow & X^' & \Lrightarrow & Y^' & \Lrightarrow & Z^' &  \Lrightarrow & 0
  \end{array}
\]

Best Answer

Here are solutions with xy and tikz-cd. The idea is the same, think on them as matrices.

enter image description here

\documentclass{report}
\usepackage[all]{xy}
\usepackage{tikz-cd}
\begin{document}
\[
\xymatrix{
  0 \ar[r] & A \ar[d]_-{\alpha} \ar[r]^-{f} & B \ar[d]_-{\beta} \ar[r]^-{g} & C \ar[d]^-{\gamma} \ar[r] & 0 \\
  0 \ar[r] & A' \ar[r]_-{f'} & B' \ar[r]_-{g'} & C' \ar[r] & 0
}
\]
\[
\begin{tikzcd}
  0 \arrow[r] & A \arrow[d, "\alpha"] \arrow[r, "f"] & B \arrow[d, "\beta"] \arrow[r, "g"] & C \arrow[d, "\gamma"] \arrow[r] & 0 \\
  0 \arrow[r] & A' \arrow[r, "f'"] & B' \arrow[r, "g'"] & C' \ar[r] & 0
\end{tikzcd}
\]
\end{document}
Related Question