2

I have this diagram:

\begin{equation*}
\begin{tikzpicture}
    \matrix (m) [matrix of math nodes, row sep=2.5em,
            column sep=3em, text height=0.75ex, text depth=0.5ex] {
       0& A& B& C&0 \\
     0&\textstyle\sum^{-i-1}M_{-i-1}& N &\textstyle\sum^{-i}M_{-i}& 0\\ };


        \path[->] (m-1-2) edge node[above] {} (m-2-2);
         \path[->] (m-1-3) edge node[above] {} (m-2-3);
        \path[->] (m-1-4) edge node[above] {} (m-2-4);
        \path[->] (m-1-1) edge node[above] {} (m-1-2);
       \path[->] (m-1-2) edge node[above] {} (m-1-3);



         \path[->] (m-1-3) edge node[above] {} (m-1-4);

         \path[->] (m-1-4) edge node[above] {} (m-1-5);


        \path[->] (m-2-1) edge node[above] {} (m-2-2);

        \path[->] (m-2-2) edge node[above] {} (m-2-3);

         \path[->] (m-2-3) edge node[above] {} (m-2-4);

         \path[->] (m-2-4) edge node[above] {} (m-2-5);

\end{tikzpicture}  
\end{equation*}

What should I do that the vertical arrows do not touch what are on the bottom line (\textstyle\sum^{-i-1}M_{-i-1}, N and \textstyle\sum^{-i}M_{-i})?

1
  • Your text height is too small, try e.g. text height=2ex. Apr 19, 2016 at 16:08

1 Answer 1

2

It's much simpler using tikz-cd:

\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}

\begin{document}

\begin{equation*}
\begin{tikzcd}
  0 \arrow[r] & A \arrow[r] \arrow[d] & B \arrow[r] \arrow[d] & C \arrow[r] \arrow[d] & 0 \\
  0 \arrow[r] & \sum^{-i-1}M_{-i-1} \arrow[r] & N \arrow[r] & \sum^{-i}M_{-i} \arrow[r] & 0
\end{tikzcd}
\end{equation*}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .