1

Suppose I have an enumerate list of problems (say 50 questions) in a page and another enumerate list of hints in another page (50 items). How can one link each item of the problem-list to the corresponding item of the hint-list and vice-versa? I want to click to the problem item to go to the corresponding hint item and vice-versa. Example: a click on problem item 34 brings me to the hint item 34; and also a click on the hint item 34 brings me to the problem item 34.

The following example is only one sided, i.e., one can go from question to the answer but not from answer to the question. If there is a way, please help.

\documentclass{article}
\usepackage{hyperref}
\pagestyle{empty}
\begin{document}
Questions
\begin{enumerate}
\item[\ref{item:earth}.] What is the diameter of Earth?
\item[\ref{item:dwarfs}.] How many dwarfs were there in
  \emph{Sleeping Beauty?}
\end{enumerate}

\newpage
Answers
\begin{enumerate}
\item 6400\,km\label{item:earth}
\item Seven\label{item:dwarfs}
\end{enumerate}

\end{document} 
Tammo
  • 91
  • You have a \label in the answer and a \ref in the quesiton, which you say works. So, just add a \label in the question and a \ref to question in the answer. – Peter Grill Nov 19 '17 at 10:08
  • 2
    Wouldn't it be easier to use a package like answers for this porpous? For a MWE see this answer: https://tex.stackexchange.com/a/45428/134144 – leandriis Nov 19 '17 at 10:31
  • @PeterGrill. It works for the first item only. The item number remains indicated as 1 for other items. – Tammo Nov 19 '17 at 10:37
  • @leandriis. It works in a way. Need some modifications. Thanks for the link. – Tammo Nov 19 '17 at 10:56

0 Answers0