This is in response to the OP's request to be ale to designate a different set of numbers and label style to commutative diagrams.
It uses my numberedblock
package that was intended to numbering code blocks, but used here for commutative diagrams. It has a labeling/referencing system, and the tag location and appearance can be customized.
Unfortunately, this solution is a little inconvenient, because I cannot stick the tikzcd
environment in directly as the argument to a \numblock
. SO I have to put it first in a temporary box and then apply the \numblock
to the box.
\documentclass{article}
\usepackage{tikz-cd}
\usepackage{numberedblock,lipsum}
\setlength\blockindent{0in}
\begin{document}
\lipsum[1]
\setbox0=\hbox{\begin{tikzcd}
R \arrow{r}{\phi} \arrow[swap]{d}{\chi} & S \arrow{d}{\Psi} \\
R/I \arrow{ur}{\psi} \arrow{r}{\Phi} & T
\end{tikzcd}}
\numblock{\nblabel{cdA}\makebox[\textwidth]{\box0}}
\lipsum[4]
\setbox0=\hbox{\begin{tikzcd}
R \arrow{r}{\phi} \arrow[swap]{d}{\chi} & S \arrow{d}{\Psi} \\
blah blah R/I \arrow{ur}{\psi} \arrow{r}{\Phi} & T (blah-blah wider)
\end{tikzcd}}
\numblock{\nblabel{cdB}\makebox[\textwidth]{\box0}}
In commutative diagrams \ref{cdA} and \ref{cdB}, we see\ldots
\end{document}

gathered
env. I would not usefigure
for atikzcd
env, it is a math construction and should thus have a math eq number.tikzcd
environment in an equation.align
for single line displays (and\xymatrix
counts for a single line).\caption{...}
so if you add some text for the diagram in\caption
it will b enumbered