5

I have itemize environment and I want to cross-reference between two items. How do I do that?

3
  • 2
    Are the \items in an itemize or an enumerate environment? LaTeX's cross-referencing mechanism works with objects that are associated with some counter variables: figures, tables, sections, footnotes, etc. enumerated list items will work, but not unnumbered ones.
    – Mico
    Commented May 21, 2014 at 4:23
  • 3
    I would wait for the OP to clear his/her intentions before closing.
    – Jesse
    Commented May 21, 2014 at 4:46
  • No, I did not. The OP was prompted for closing several hours ago and then I added the comment above. Therefore, I did to vote for closing :)-.
    – Jesse
    Commented May 21, 2014 at 8:26

1 Answer 1

12

The easiest way to refer to all types of lists, is to use the packages enumitem and enumitem-zref. Then you may refer to all three types of list.

If you want to refer items in a bullet list, you have to set up enumitem-zref correctly. I have to refer you to the manual, which describes the set up in detail.

If you only want to refer to enumerated lists, you can do that easely with enumitem. Take a look at section 3 in the enumitem-manual, to find out how to set up references. You just give the item a \label:

\begin{enumerate}
   \item this is an item \label{itemone}
   \item this is an item \label{itemtwo}
\end{enumerate}

In the text, you refer to the items with \ref{itemone} and \ref{itemtwo}.

2
  • 1
    this does not work. the manual you recommended also does not have any section called set-up or like this Commented Feb 26, 2022 at 20:05
  • 2
    @user3352632 what exactly are you looking for? Code snippet works for me.
    – rkochar
    Commented Feb 11, 2023 at 23:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .