I'm going crazy with this error:
Bad math environment delimiter. \end{equation}
You can't use `\eqno' in restricted horizontal mode. \end{equation}
of the following MWE:
\documentclass[border=1 pt]{standalone}
\usepackage{amsmath}
\usepackage{mathrsfs}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}[row sep=huge, column sep=huge]
\textbf{B} \arrow[r,"M"] & \text{Y}\\
\textbf{X} \arrow[r,swap,"M"] \arrow[u,"project"] & \text{A} \arrow[u,"project", swap]
\end{tikzcd}
\begin{equation}
project \circ M = M \circ project
\end{equation}
\end{document}
\documentclass{article}to\documentclass[border=1 pt]{standalone}, the error goes away. – Oct 22 '17 at 04:19