1

I often give rather arbitrary \label{name}, and it can be a challenge to recall things and write \ref{name}, or \pageref{name}.

Are there recommended practices, which may be helpful. Literature suggestions are welcome.

Sigur
  • 37,330
  • 6
    Usually I do \label{tab:foo} or \label{eq:foo} and so on... fig:, sec: etc – Sigur May 05 '23 at 01:36
  • @Sigur tabular, equation, figure, section? foo? – Frode Alfson Bjørdal May 05 '23 at 05:49
  • I usually use hierarchical label names similar to https://tex.stackexchange.com/questions/228022/label-naming-strategy (but I use . instead of :) and usual prefixes like shown by Sigur above. But I think that's more or less a matter of personal taste and document-dependent requirements. – cabohah May 05 '23 at 07:02
  • There's no point in \labeling a tabular environment, as no counter is associated with it. @Sigur has already provided a hint for how to approach the \labeling of equation and table objects. This convention can be extended in a very naturally to figure and section objects. The key is that these objects need to be associated with a number that \label can latch on to. I have no idea what foo could stand for. E.g., is it an object that is numbered in some systematic way? If it's not, there's again no point in affixing a \label directive to begin with. – Mico May 05 '23 at 07:21
  • 1
    foo is a non meaning word used when we want to say that it should be replace by anything. foo, faa, bla and others.... – Sigur May 05 '23 at 16:49

0 Answers0