I am writing a document in the exam class. For question with multiple parts (a), (b),... you are supposed to use the parts environment. Using it works fine, until I add a solution to the question that also contains a parts environment.
The document compiles to the correct result, but I see LaTeX Warnings in the log (which is annoying because vim will show them to me every time!):
LaTeX Warning: Label `part@2@1' multiply defined.
LaTeX Warning: Label `part@2@2' multiply defined.
.....
LaTeX Warning: There were multiply-defined labels.
I remember that this used to work. Am I doing something wrong here?
A minimal working example would be:
\documentclass[letterpaper, 12pt, answers]{exam}
\begin{document}
\begin{questions}
\question The exam document class defines labels for parts.
\begin{parts}
\part Are these labels unique for you?
\part Why are they not unique for me?
\end{parts}
\begin{solution}
\begin{parts}
\part Maybe, I don't know.
\part That's my questions.
\end{parts}
\end{solution}
\end{questions}
\end{document}
\labelat all? If not, using\def\label#1{}in your document preamble will remove that functionality and remove the warnings. – Werner Feb 18 at 22:24