xsim icon indicating copy to clipboard operation
xsim copied to clipboard

`collectexercises` don't work with TeX Live 2025.2

Open lekcyjna123 opened this issue 10 months ago • 1 comments

Hi, recently I have updated my Arch Linux and one of the updated packages was TeX Live, which has been updated to 2025.2 version. After that the code which worked on previous versions stopped to compile. I was able to create a minimal example and I have also found a workaround. If I use activatecollection / deactivatecollection then everything if OK, but if I would like to collect exercises using collectexercises then I got an error.

\documentclass{article}

\usepackage{xsim}
\usepackage{tikz}

\DeclareExerciseCollection[tags=L1]{setBar}

%\activatecollection{setBar}
%\xsimsetup{exercise/collect=true}
\collectexercises{setBar}
\begin{document}
\begin{exercise}[tags={L1}]
Foo bar
\end{exercise}
%\deactivatecollection{setBar}
\printcollection{setBar}

\end{document}

The above code is NOK. Comment collectexercises and uncomment rest of lines to get an OK case. If I remove usepackage{tikz} in this example then it also starts to works, but in an bigger document with more packages removing tikz doesn't solve the problem.

lekcyjna123 avatar Apr 06 '25 09:04 lekcyjna123

This is the correct order:

\documentclass{article}
\usepackage{xsim}
\usepackage{tikz}

\DeclareExerciseCollection[tags=L1]{setBar}

\begin{document}

\collectexercises{setBar}
\begin{exercise}[tags={L1}]
Foo bar
\end{exercise}
\printcollection{setBar}
\collectexercisesstop{setBar}

\end{document}

ptoche avatar May 11 '25 10:05 ptoche