diff options
Diffstat (limited to 'macros/latex/contrib/probsoln/samples/sample5.tex')
-rw-r--r-- | macros/latex/contrib/probsoln/samples/sample5.tex | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/macros/latex/contrib/probsoln/samples/sample5.tex b/macros/latex/contrib/probsoln/samples/sample5.tex new file mode 100644 index 0000000000..ac294c11ca --- /dev/null +++ b/macros/latex/contrib/probsoln/samples/sample5.tex @@ -0,0 +1,34 @@ + % This file is public domain +\documentclass[a4paper]{report} + +\usepackage{probsoln} + +\begin{document} +\hideanswers + +\chapter{Easy Problems} +\loadrandomproblems[easyproblems]{5}{prob-easy2} + +\renewcommand{\theenumi}{\thechapter.\arabic{enumi}} +\begin{enumerate} +\foreachproblem[easyproblems]{\item\label{prob:\thisproblemlabel}\thisproblem} +\end{enumerate} + +\chapter{Probability Spaces} +\loadrandomproblems[probspaces]{2}{prob-probspaces2} + +\renewcommand{\theenumi}{\thechapter.\arabic{enumi}} +\begin{enumerate} +\foreachproblem[probspaces]{\item\label{prob:\thisproblemlabel}\thisproblem} +\end{enumerate} + +\appendix +\chapter{Solutions} +\showanswers +\begin{enumerate} +\foreachdataset{\thisdataset}{% +\foreachproblem[\thisdataset]{\item[\ref{prob:\thisproblemlabel}]\thisproblem} +} +\end{enumerate} + +\end{document} |