cgnieder/xsim

\addpoints in collection

MaxSchlueter opened this issue · 1 comments

Just found out that \addpoints doesn't add the points to the exercise when it's part of a collection. Tested it with this code:

\documentclass{article}

\usepackage{xsim}
\DeclareExerciseCollection{foo}

\begin{document}

\collectexercises{foo}
\begin{exercise}[points=2] 
  % shows 2 points
\end{exercise}
\begin{exercise}
\addpoints{3} % shows 0 points
\end{exercise}
\collectexercisesstop{foo}

\printcollection{foo}
  
\end{document}

Is this a bug or is there another way to add points to an exercise like this?

This is a bug.
Collections have more problems right now.
This hopefully gets fixed once I get to the re-implementation of collections that I have in mind…