According to p. 86 of the cleveref
user guide,
With amsmath, the original \label
command is stored in \ltx@label
, and \label@in@display
replaces \label
inside [single-line] equations. \label@in@display
just saves the label for later, and defining it is left until the end of the equation, when \ltx@label
is finally called.
Hence, you may want to include the following code in the preamble, after loading the amsmath
package:
\makeatletter
\let\ltxxlabel\ltx@label
\makeatother
so that you have a command that doesn't contain the "secret letter" @
. Alternatively, you could execute the command \let\ltxxlabel\label
before loading the amsmath
package. Then, replace all \label
commands in your document -- except, of course, those that are actually associated with equation numbers -- with \ltxxlabel
.
I cannot try out this suggested solution myself since I don't have a clear idea as to how you use the \label
command in your document for purposes other than creating associations with equation numbers. Nevertheless, I would encourage you to try out this method.
Addendum: The cleveref
user guide has the following to say about the treatment of the \label
macro in the multiline equation environments (such as gather
, align
, and multline
) of the amsmath
environment:
The amsmath
multi-line equation environments scan their bodies twice: Once to measure, once to typeset. In the measure phase, the \label
command is disabled by letting it to \@gobble
. ... Unfortunately, amsmath
wasn't designed with redefinitions of \label
in mind ... The multline
environment works a bit differently to the other amsmath
environments, in that \label
is disabled during the typesetting phase, and enabled during the measuring phase.
Given these observations, it would seem that only the adventurous and daring may want to delve into redefining the ways that amsmath
works with the \label
command in its multiline equation environments. I must admit to not being sufficiently daring, at least not in this category...
\label{...}
commands to one equation, or do you want more than one "tag" (equation number, etc) to show up next to the object of interest? Theamsmath
package provides the command\tag{...}
, which lets users create fairly elaborate tags.\label
commands you're trying to make compatible withamsmath
. Without such a MWE, it's very difficult (impossible?) to figure out what's going one and what may have to be done. Thanks.