[Tex/LaTex] How to number only labeled equations

cross-referencingequationsnumbering

I'm writing all my equations with

\begin{equation} ... \end{equation}

so all of them are numbered but only some of them are labeled. I don't want all of them with numbers but only the labeled ones.

Since I have a real big document I don't wanna do this manually using * for all the others. How can I do this automatically?

Best Answer

You have a possibility, with the mathtools package (that loads amsmath, so it's useless to load the latter): write

\mathtoolsset{showonlyrefs,showmanualtags}

in your preamble, and only the referenced equations will be numbered (use \eqref). It's not exactly what you ask (number labelled equations), but you can try to make ‘fake references’ at the very end of your document.

Related Question