I'm typesetting a math book. Since the book spirals, and there are different types of questions in each assignment, I'd like a simple way to refer students to problem types.
I tried using a simple index, using the imakeidx package, but that only refers to the page number. Since there are at least 5 problems, this is not ideal; I want the actual problem number. My numbers do resume, and there are some 800 problems scattered across 120 pages, therefore the problem number would be most helpful.
I can envision a system of using \label{NumOne} after every single item, but that seems a bit too tedious, don't you think? Is there a different package or maybe even a counter that I can define to help ease this implementation?
MWE:
\documentclass{book} \usepackage{enumitem} \usepackage{imakeidx} \makeindex[intoc] \begin{document} \begin{enumerate}[resume] \item Problem\index{ProbType} \end{enumerate} \printindex \end{document}
\documentclass{book}along with\usepackage{enumitem}. My numbers are laid out quite normally:\begin{enumerate}[resume] \item Problem\index{ProbType} \end{enumerate}The\indexat the end shows the page number, but it would be better to have the problem number. Maybe a\renewcommandwould help me change something inimakeidx?