\documentclass[a4paper,10pt]{article} \usepackage{myXsim} \author{Benjamin Bertrand} \title{Programmation - Exercices} \date{2022-02-07} \DeclareExerciseCollection[step=1]{banque} \xsimsetup{collect} \begin{document} \input{exercises.tex} \printcollection{banque} \end{document}