Since autonum doesn't play nicely with cleveref (nor does the mathtools automatic numbering option work for me), I'm looking for a simpler solution. I'd like equations to be numbered automatically if they have a label in them and not otherwise. How do I accomplish this?
See enter link description here to see what the problem is with autonum and cleveref.
\documentclass{amsart}
\usepackage{cleveref}
\begin{document}
\begin{multline} \label{eq:one} % must have a number
z=a+b+c+d+e+f+g\\
+ h+i+j+k+\ell+m+n+o+p+q+r+s+t+u+v+w+x+y.
\end{multline}
\begin{multline} % must not have a number
z=a+b+c+d+e+f+g\\
+ h+i+j+k+\ell+m+n+o+p+q+r+s+t+u+v+w+x+y.
\end{multline}
\begin{gather} \label{eq:two} % must have a number
x=y
\end{gather}
\begin{gather} % must not have a number
x=y
\end{gather}
\end{document}
