I am making a commutative diagram using tikz-cd
. However, I am having trouble with the vertical placement of the arrow labels. As you can see in the picture, the fraction \tfrac{a}{b_0}
shrinks the left and right arrows. Therefore the labels \phi
are not on the same height as the label of the middle arrow. Is there a possibility to vertically align all arrow labels so that they are on the same height?
Here is a minimal working example producing the diagram.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}[row sep=large]
0\arrow[r]&\tfrac{a}{b_0}X\arrow[d,"\phi"]\arrow[r]&X\arrow[d,"\phi"'] \arrow[r] & X/\tfrac{a}{b_0}X\arrow[d,"\phi"']\arrow[r]&0\\
0\arrow[r]&\tfrac{a}{b_0}Y\arrow[r] &Y \arrow[r]& Y/\tfrac{a}{b}Y\arrow[r]&0
\end{tikzcd}
\end{document}