Debian Codegraph @

texmf-dist/doc/latex/probsoln/samples/sample5.tex

raw
1 % This file is public domain
2 \documentclass[a4paper]{report}
3
4 \usepackage{probsoln}
5
6 \begin{document}
7 \hideanswers
8
9 \chapter{Easy Problems}
10 \loadrandomproblems[easyproblems]{5}{prob-easy2}
11
12 \renewcommand{\theenumi}{\thechapter.\arabic{enumi}}
13 \begin{enumerate}
14 \foreachproblem[easyproblems]{\item\label{prob:\thisproblemlabel}\thisproblem}
15 \end{enumerate}
16
17 \chapter{Probability Spaces}
18 \loadrandomproblems[probspaces]{2}{prob-probspaces2}
19
20 \renewcommand{\theenumi}{\thechapter.\arabic{enumi}}
21 \begin{enumerate}
22 \foreachproblem[probspaces]{\item\label{prob:\thisproblemlabel}\thisproblem}
23 \end{enumerate}
24
25 \appendix
26 \chapter{Solutions}
27 \showanswers
28 \begin{enumerate}
29 \foreachdataset{\thisdataset}{%
30 \foreachproblem[\thisdataset]{\item[\ref{prob:\thisproblemlabel}]\thisproblem}
31 }
32 \end{enumerate}
33
34 \end{document}