1

Consider the following code for a commutative diagram

\begin{tikzcd}[column sep=50pt]
A \arrow{d}\arrow{r} & B \arrow[leftarrow]{dl}\\
C
\end{tikzcd}

I have been able to make the right arrow from A to B longer by adding the argument [column sep=50pt]. How can I make the vertical arrow from A to C longer?

3
3

Two basic options are:

  1. Add an appropriate row sep.
  2. Add a distance after \\, e.g. \\[1.5cm].

These options do not do precisely the same in the sense that the distance specified has different meanings as is illustrated in the following example.

\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[\begin{tikzcd}[column sep=50pt,row sep=50pt]
A \arrow{d}\arrow{r} & B \arrow[leftarrow]{dl}\\
C
\end{tikzcd}
\qquad\begin{tikzcd}[column sep=50pt]
A \arrow{d}\arrow{r} & B \arrow[leftarrow]{dl}\\[50pt]
C
\end{tikzcd}
\]
\end{document}

enter image description here

The first option might be better to set a universal row separation, the second one if you only want to change one out of several.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.