Suppose I have the following code. I want to cross reference the numbers between the 2 lists. Basically, by clicking on number 1 in question section the document should automatically bring you to the number 1 of the answer section.
\documentclass[12pt, a4]{article}
\usepackage{listings}
\usepackage{enumitem}
\begin{document}
\textbf{Questions}
\begin{enumerate}
\item \label{question-01} What colour was Napoleon's white horse?
\end{enumerate}
\textbf{Answers}
\begin{enumerate}%[label= ...]
\item White
\end{enumerate}
\end{document}
Tried with \label
and \ref
, but the reference creates another number 1, while I want the cross reference to be inside the number of the list.
Maybe I should work on the \label
command after \begin{enumerate}
.
Hope to have been enough clear.