I would like to give one equation two separate labels; can I do this? The purpose of this is to have a long section in which I give a long list of equations, explaining them as I go along. I then de-dimentionalise them for which I will need to say something like 'de-dimentionalising equations (1) to (20) yields...'. Thus I need to be able to refer to label equation (1) twice, once as the first equation in the list and secondly as the equation I want to discuss. Of course I could give it only one label, but it would be convenient to give it two labels such that if I reorder/add in equations I can move the 'first equation' label, and then everything will still make sense.
As a concise example, what I want to do is
\begin{equation}
\label{first_equation} \label{special_equation}
a=b
\end{equation}
Edit: The above code does compile, but the inclusion of the amsmath
package prevents it from doing so. Is there any way to use the features in this package and have the ability to multi-label?
\label
s in anequation
environment. Just use one. Alternatively, use agather
environment to typeset multiple equations in one fell swoop (you can use as many\label
s as lines in that type of environment). If you're concerned about maintainabilty of your code (rearranging the order of your equations, etc.), I suggest you come up with some consistent naming scheme for your labels. For instance, a pair of related equations could be labelledcontinuity_eq
andcontinuity_eq_nodim
or something like that. No risk of getting the cross-references mixed-up then.label
per equation; try out the OP's example code (and create cross-references using the two labels) to verify this claim. It's just that all labels associated with a given equation will have the exact same number; hence it makes no real sense to provide more than one label per equation. By the way, I fully agree with your recommendation to develop a consistent naming system for the labels in one's document!