<div dir="ltr"><div>If in {enumerate} item does not have a custom "label" then supplying it with a \label{A} works: \ref{A} returns a value of the standard label.</div><div><br></div><div>On the other hand, if item has a custom label then \label{C} fails: \ref{C} returns either empty (as in the example below) or value of the larger environment (say, section)</div><div><br></div><div>This happens both with/without enumitem package.</div><div><br></div><div><br></div><div><br></div><div>%%%%%%%%%%%%</div><div>\documentclass[12pt]{article}</div><div>%\usepackage{enumitem}</div><div>%\usepackage{hyperref}</div><div>\begin{document}</div><div><br></div><div>%%%Standard labels%%%</div><div>\begin{enumerate}</div><div>\item one\label{A}</div><div>\item two\label{B}</div><div>\end{enumerate}</div><div><br></div><div>\ref{A} \ref{B}</div><div><br></div><div>%%%Custom labels%%%</div><div>\begin{enumerate}</div><div>\item[oh] one\label{C}</div><div>\item[ah] two\label{D}</div><div>\end{enumerate}</div><div><br></div><div>\ref{C} \ref{D}</div><div>\end{document}</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Victor<br>Victor Ivrii</div></div>
</div>