Most of the things that can be referenced, e.g. sectioning commands, figures, tables, theorems, etc, appear to have counters associated with them that the LaTeX referencing system uses to keep track of everything. Is this the case for all reference-able things?
Following on from my earlier questions, I'm trying to think of a way I could collect a list of environments in a manner that would allow them to be referenced later on in the document. One of the requirements for the environment definition is—and this is the difficult bit—that the numbering needs to be configurable by the package user.
I'm contemplating having two counter-like things, one of which is the "real" counter used for references, and the other is the "display" counter that the user will customise. When a reference is made to an instance of one of these environments, internally LaTeX should use the former counter, but display the latter one in labels. It's all a bit vague at the moment, and admittedly I don't have an MWE yet, but 90% of coding is thinking and planning, and I don't know enough to know if what I seek is possible.