When dealing with a large tex file manually labeling definitions and equations can become quite a hassle: for sanity, I like to keep a single numbering system on my labels (so for example I star with \label{d1}
for Definition 1 and \label{eq2}
for the equation that would come right after and so on), that way I can just reference things as I go inside a chapter.
However this becomes a problem when I (inevitably) have to replace or remove some parts of the text, which would make me have to shift forward or backwards all of my previously defined labels. So my question is: is there a more efficient way of dealing with labels so that I don't have to change all my labels from a certain point if I alter some text in between?
\label
is to avoid this problem. You do not need to relabel as you edit.\label
\label
if you reference, so leave it out and just make up a name as you add the reference, using the same in\label
and\ref