I'm trying to figure out a good way to use LaTeX to draw the following diagram (snapshot image from a document).
The closest I could come to this is using the following code:
\begin{align}
\begin{array}{ccccccccc}
0 &\xlongrightarrow & M' & \xlongrightarrow & M & \xlongrightarrow & M'' & \xlongrightarrow & 0\\
& & \bigg\downarrow & & \bigg\downarrow & & \bigg\downarrow & & \\
0 &\xlongrightarrow & N' & \xlongrightarrow & N & \xlongrightarrow & N'' & \xlongrightarrow & 0
\end{array}
\end{align}
which renders to the following picture:
Using the array and align environment does not seem like a good thing to do. Is there a more efficient way to make such a diagram with arrows? I have seen similar posts which suggest TikZ, but I don't know much about it -- maybe I'll learn it. But multiple solutions or pointers in the right direction will be very welcome.
What about arrows at angles (say something from $M'$ in the first row to $N$ in the second row -- it makes no sense in the context here, but I'd like to be able to make such arrows easily, with little modification to the code needed in case of changes)?