Consider a commutative diagram such as
\documentclass{scrartcl}
\usepackage{mathtools, tikz-cd}
\begin{document}
\begin{equation}
\begin{tikzcd}
0 \rar & A \dar \rar & B \dar \rar & C \dar \rar & 0 &[3em] \text{(\textit{i})}\\
0 \rar & A' \rar & B' \rar & C' \rar & 0 & \text{(\textit{ii})}
\end{tikzcd}
\end{equation}
\end{document}
As you can see, I'd like to add labels to the rows of the diagram. Now, you'll agree that this solution is rather ugly. Is it possible to add labels to the rows that appear at the margin; i.e., instead of what you see, I'd like to have, e.g.,
Which I produced using
\documentclass{scrartcl}
\usepackage{mathtools, amsmath, tikz-cd}
\tikzset{every picture/.append style={remember picture}}
\begin{document}
\begin{gather}
\begin{tikzcd}[ampersand replacement=\&]
0 \rar \& |[alias=A]| A \rar \& B \rar \& C \rar \& 0
\end{tikzcd}\\
\begin{tikzcd}[ampersand replacement=\&]
0 \rar \& A' \ar[from=A] \rar \& B' \rar \& C' \rar \& 0
\end{tikzcd}
\end{gather}
\end{document}
which is certainly not the way to go, since it is not particularly stable, and the proper alignment of the cells, which I was too lazy fore here, will be a mess.
\text
in the first example makes no sense at all.\text
should never be used to make something non-italic, because that is not what\text
does.\text
is for putting text in math, and a label is certainly closer to text than to math. And who tells you that I don't want the labels match the surrounding text shape? :P But yes, that's not the point of my question.