I have the following commutative diagram in TikZ:
\begin{tikzpicture}
\matrix (b) [matrix of math nodes, row sep=2em, column sep=2em]
{
D(0) & D(1) & \cdots & C \\
C & C & \cdots & C \\
};
\path[->, font=\scriptsize]
(b-1-1) edge node[auto]{\(\scriptstyle{g_0}\)} (b-1-2) edge node[auto]{\(\scriptstyle{\phi_0}\)} (b-2-1)
(b-1-2) edge node[auto]{\(\scriptstyle{\phi_1}\)} (b-2-2) edge node[auto]{\(\scriptstyle{g_1}\)} (b-1-3)
(b-1-3) edge node[auto]{\(\scriptstyle{\phi_i}\)} (b-2-3) edge (b-1-4)
(b-2-1) edge[-,double] (b-2-2)
(b-2-2) edge[-,double] (b-2-3)
(b-2-3) edge[-,double] (b-2-4)
(b-1-4) edge[-,double] (b-2-4);
\end{tikzpicture}.
\end{center}
When I render it, I end up with weird slanted lines going into the dots.
The problem is even more extreme if I just use \dots. How can I fix this to make the lines straight? I'm aware that tikz-cd probably fixes this, but I don't have time at the moment to learn the syntax and convert everything, so I'm still doing things the old way for now.




anchor=center:\matrix (b) [matrix of math nodes, row sep=2em, column sep=2em, nodes={anchor=center}] ..... – May 03 '19 at 22:43tikz-cdthen itsasymmetric rectanglenode shape is really useful for this. See https://tex.stackexchange.com/a/3894/86 for an example. – Andrew Stacey May 03 '19 at 22:57