blob: 015f52db0f9b6c5ab0895f50ad065d1797b65463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
% https://tex.stackexchange.com/q/155630/
\documentclass{article}
\usepackage{xsim}
\DeclareExerciseCollection{foo}
\xsimsetup{collect}
\begin{document}
\begin{exercise}
foo
\end{exercise}
\begin{exercise}
bar
\end{exercise}
\begin{exercise}
baz
\end{exercise}
% shuffle around for a different version:
\printexercise{exercise}{1}
\printexercise{exercise}{3}
\printexercise{exercise}{2}
\end{document}
|