I am trying to create a diagram using tikz-cd. I want something similar to the following:
\begin{tikzcd}[column sep=scriptsize]
\& 3 \arrow[rr, dash] \& \arrow[d] \& 2\\
1 \arrow[rr, dash] \& \arrow[d] \& 4 \& \\
\& 5 \& \&
\end{tikzcd}
This has a gap between the horizontal line and the downward pointing arrow. I also tried this:
\begin{tikzcd}[column sep=scriptsize]
\& 3 \arrow[rr, dash, ""{name=U, below, draw=black}] \& \arrow[d] \& 2\\
1 \arrow[rr, dash, ""{name=V, below, draw=black}] \& \& 4 \arrow[rightarrow, from=U] \& \\
\& 5 \arrow[rightarrow, from=V]\& \&
\end{tikzcd}
This however creates a square above the downward pointing arrows. I would like the downward pointing arrow to connect to the horizontal bars.
tikzcd
. Use&
instead of\&
here.