3

I am trying to use the enumitem-zref package in order to reference automatically all item of an enumeration. Here is a simple example (found on the Internet, but seems to agree with the documentation):

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{hyperref}
\usepackage{enumitem,enumitem-zref}

\begin{document}

\begin{enumerate}[start=34,label=(\arabic*),name=thelist]
\item stuff
\item more stuff \label{more stuff}
\item yet more
\end{enumerate}

This is \refitem{thelist,35} or \refitem{thelist{35}}
and this is also \refitem{more stuff}

\end{document}

Unfortunately, I can't make it work; I get the following error (extract of the log from pdflatex):

...
Package zref Info: New property list: zen@list on input line 108.
Package zref Info: New property: zen@ on input line 110.
Package zref Info: New property: zen@page on input line 117.
...
Package zref Info: New property: zen@counter on input line 135.
! Package zref Error: Property `zen@default,zen@page,zen@type,zen@depth,zen@lis
tctr,zen@listname,zen@index,zen@label,zen@ref,zen@starlabel,zen@parents,zen@ref
item,zen@commaref,zen@item,zen@currentlabel,zen@counter' does not exist.
See the zref package documentation for explanation.
Type H <return> for immediate help.

I tried small changes (including zref explicitly, changing order of inclusions...), without success. I don't know if the problem can come from my configuration (pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Arch Linux)). I could not find any equivalent package, and neither could I write a simple workaround (I'm quite new to LaTeX). All I want is to be able to write something like:

\begin{enumerate}[name=mylist,label=\arabic*.]
   \item First item;
   \item Second item;
      \begin{enumerate}[label=(\alph*)]
        \item first subitem,
        \item second subitem,
        \item third subitem;
      \end{enumerate}
   \item Third item.
\end{enumerate}

all items being automatically referenced (for example by item:mylist.1, item:mylist.2, item:mylist.2.1, item:mylist.2.2, etc.), so that \ref{item:mylist.2.3} displays an hyperrlink "2.(c)", or something similar.

Thanks for your help.

closed as too localized by Marco Daniel, Thorsten, Claudio Fiandrino, Stefan Kottwitz Apr 20 '13 at 8:57

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I suspect a bad bug in enumitem-zref. – egreg Mar 15 '13 at 22:51
  • Then maybe I should report this to the author... – Benjamin Mar 16 '13 at 11:49
  • I voted to close because it's a bug of the package. – Marco Daniel Apr 20 '13 at 7:08