[texhax] enumerate inconsistency
news3 at nililand.de
Sun Nov 8 17:46:47 CET 2015
Am Sun, 8 Nov 2015 12:54:53 +0000 schrieb David Carlisle:
>> No, \ref looks at \@currentlabel, and there is no real technical
>> reason why the optional argument doesn't change it, it is a design
>> reason, which one can find arguable.
> LaTeX does this consistently (eg unnumbered sections similarly
> don't set the label)
> This was probably the correct design decision at the time it was made
> as then the main point of \ref was to generate an automatically generated
> label. If the item used \item[X] then there was no point in using \ref,
> you could just use X.
Well if you don't know yet, if you want to use \item[X] or \item[Y]
then it could be useful if you could use \ref and so decide later.
In the case of unnumbered section I agree that there is no "natural"
value for \@currentlabel -- why should one use the title, when the
\ref of other section gives a number?
More information about the texhax