blob: 2edb7bfdad2cc0c2988dc3552ebea0a06ae0990c (
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
26
|
% https://tex.stackexchange.com/q/155630/
\documentclass{article}
\usepackage{xsim}
\DeclareExerciseCollection{foo}
\begin{document}
\collectexercises{foo}
\begin{exercise}
foo
\end{exercise}
\begin{exercise}
bar
\end{exercise}
\begin{exercise}
baz
\end{exercise}
\collectexercisesstop{foo}
% shuffle around for a different version:
\printexercise{exercise}{1}
\printexercise{exercise}{3}
\printexercise{exercise}{2}
\end{document}
|