I provide this pre-amble of my main desired output, having been told that my below approach is inherently misguided (due to \nameref not being designed or able to obtain only a numeral, instead of a descriptive label).
I would nonetheless like to be able to have a command, like \nameref, that given a label retrieves the enumerate counter associated with its respective item.
My goal is to be able to refer to enumerate items in both a single (as currently accomplished with \ref) and multiple-label contexts. For example, I would like to be able to continue to do \ref{<label1>}, but also to do something like \multirefs{<label1>, <label2>} and have this result in the following outputs:
\ref{<label1>} : (A_{1}) ← this currently works
\multirefs{<label1>, <label2>} : (A_{1}, A_{2}) ← this is what I would like
I am, however, most interested in more general approaches, similar to the linked answer.
I am trying to get \nameref to work properly with enumitem. To do so, I am using the preamble code provided in the existing answer on this topic.
I am then wrapping the document code from that answer, within a custom command, as shown below (and partly adapted from another answer):
\newcommand{\labelleditem}[1]{%
\stepcounter{enumi}%
\item[{\theenumi{}}\label{#1}]%
}
I want to make use of the description environment, with the optional arguments of an enumerate environment, as follows:
\begin{description}[label={($\text{A}_{\arabic*}$)}, series=name, resume=name]
\labelleditem{Broken} XXX
\item XXX
\end{description}
This does not work, presumably in part due to the description environment not fully-implementing or making accessible the enumitem optional arguments.
To clarify, I only wish to use the enumerate list, as shown in the below MWE. I do not, however, know how to properly adapt the existing answer on this topic, which uses a description list, to an enumerate list.
How might I be able to get this to work, similar to the existing answer on this topic, but with my additional specifications, shown above?
Alternatively, how can I get \nameref to work via a more general or direct patch to enumitem?
MWE:
\documentclass{article}
\usepackage{enumitem}
\makeatletter
\newcommand\enit@descriptionlabel@hook[1]{}
\def\enit@description@i#1#2#3#4{%
\ifnum#1>#3\relax
\enit@toodeep
\else
\enit@list{}%
{\let\enit@type\tw@
\advance#1\@ne
\labelwidth\z@
\enit@align@left
\let\makelabel\descriptionlabel
\enit@style@standard
\enit@preset{#2}{#1}{#4}%
\enit@calcleft
\let\enit@svlabel\makelabel
\def\makelabel##1{%
\NR@gettitle{##1}%
\labelsep\z@
\ifenit@boxdesc
\enit@svlabel{\enit@align{\enit@format{\enit@descriptionlabel@hook{##1}}}}%
\else
\nobreak
\enit@svlabel{\enit@format{\enit@descriptionlabel@hook{##1}}}%
\aftergroup\enit@postlabel
\fi}%
\enit@before
\enit@negwidth%
}%
\enit@keyfirst
\fi}
\usepackage{hyperref}
\AtBeginDocument{\let\descriptionlabel\NRorg@descriptionlabel}
\renewcommand\enit@descriptionlabel@hook[1]{\NR@gettitle{#1}#1}
\newcommand{\labelleditem}[1]{%
%\label{#1}%
\stepcounter{enumi}%
\item[{\theenumi{}}\label{#1}]%
%
}
% -------------------------------------
\begin{document}
\begin{description}
\item [{Test}\label{Test}] Some text
\end{description}
\begin{description}[label={($\text{A}_{\arabic*}$)}, series=name, resume=name]
\labelleditem{Broken} XXX
\item XXX
\end{description}
\nameref{Test}
\nameref{Broken}
\end{document}
The above produces:
It also outputs the following error:
Missing control sequence inserted.
<inserted text>
\inaccessible
l.57 ...}_{\arabic*}$)}, series=name, resume=name]
I also provide this MWE on Overleaf.


\nameref, as implemented in thedescriptionmodifications from the linked answer. I must just be misunderstanding how that was done, and I'm not sure how to adapt it. – Coby Viner Oct 10 '19 at 17:13(A_{1})vs., say,(A_{10}), in this example. – Coby Viner Oct 10 '19 at 19:58\hyperref[\nameref{<label>}]{<label>}, obtaining, say,(A_{1}), that properly links to that item. – Coby Viner Oct 10 '19 at 20:06cleveref? As far as I can tell, it has already invented the wheel you want. – cfr Oct 11 '19 at 23:28hyperref. – Coby Viner Oct 12 '19 at 00:33