I have itemize environment and I want to cross-reference between two items. How do I do that?
1 Answer
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}
.
-
1this 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.– rkocharCommented Feb 11, 2023 at 23:11
\item
s in anitemize
or anenumerate
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.