blob: 5f75082a42080a037cb26679ac094f93dad9ddfa (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
\documentclass{article}
\usepackage{xsim}
\usepackage{lipsum}
\DeclareExerciseCollection[difficulty=easy]{easy}
\DeclareExerciseCollection[difficulty=medium]{medium}
\DeclareExerciseTagging{difficulty}
\xsimsetup{collect}
\begin{document}
\begin{exercise}[use,print]
outside before
\end{exercise}
\begin{exercise}[difficulty=easy,points=1]
foo one \lipsum[4]
\end{exercise}
\begin{solution}
foo one \lipsum[4]
\end{solution}
\begin{exercise}[difficulty=medium,points=1]
foo two \lipsum[4]
\end{exercise}
\begin{solution}
foo two \lipsum[4]
\end{solution}
\begin{exercise}[difficulty=easy,points=1]
foo three \lipsum[4]
\end{exercise}
\begin{solution}
foo three \lipsum[4]
\end{solution}
\section{Easy}
\printcollection{easy}
\section{Medium}
\printcollection{medium}
\printsolutions[difficulty=medium]
\end{document}
|