Following this question the consistent way to write a function is f\colon A\to B
, but if I want to write a cospan like the following
\documentclass[border=1mm]{standalone}
\usepackage{mathtools}
\begin{document}
\(0\colon 1\to I\leftarrow 1\colon 1\)
\end{document}
it gives this result
in which the second \colon
has not the correct spacing. So, is there a way to be consistent with the document and have correct spacing?