diff options
Diffstat (limited to 'macros/latex/contrib/xsim/examples/xsim.collections.tex')
-rw-r--r-- | macros/latex/contrib/xsim/examples/xsim.collections.tex | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/macros/latex/contrib/xsim/examples/xsim.collections.tex b/macros/latex/contrib/xsim/examples/xsim.collections.tex new file mode 100644 index 0000000000..5f75082a42 --- /dev/null +++ b/macros/latex/contrib/xsim/examples/xsim.collections.tex @@ -0,0 +1,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} |