Debian Codegraph @

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

raw
1 % This file is public domain
2 \documentclass[a4paper]{article}
3
4 \usepackage{probsoln}
5 % uncomment the following line to display the answers
6 % \showanswers
7
8 % The following will generate a different set of
9 % problems each year
10 %\PSNrandseed{\year}
11
12 % Load 1 problem randomly selected from the given file
13 % and store in database 'firstprinciples':
14 \loadrandomproblems[firstprinciples]{1}{prob-1stprncp}
15
16 % Load 5 problems randomly selected from the given file
17 % and store in database 'easy':
18 \loadrandomproblems[easy]{5}{prob-easy}
19
20 % Load 2 problems randomly selected from the given file
21 % and store in database 'implicit':
22 \loadrandomproblems[implicit]{2}{prob-implicit}
23
24 % Load 2 problems randomly selected from the given file
25 % and store in database 'probspaces':
26 \loadrandomproblems[probspaces]{2}{prob-probspaces}
27
28 % Load 1 problem randomly selected from the given file
29 % and store in database 'mchoice':
30 \loadrandomproblems[mchoice]{1}{prob-mchoice}
31
32 % Load 1 problem randomly selected from the given file
33 % and store in database 'nosoln':
34 \loadrandomproblems[nosoln]{1}{prob-nosoln}
35
36
37 \begin{document}
38 \title{Sample Problem Sheet}
39 \author{Nicola Talbot}
40 \maketitle
41
42 \begin{enumerate}
43 % Differentiation from first principles
44 \foreachproblem[firstprinciples]{\item \thisproblem}
45
46 \item Differentiate the following functions:
47 \begin{enumerate}
48 \foreachproblem[easy]{\item \thisproblem}
49 \end{enumerate}
50
51 % Implicit differentiation
52 \foreachproblem[implicit]{\item \thisproblem}
53
54 % Finite probability spaces
55 \foreachproblem[probspaces]{\item \thisproblem}
56
57 % Multiple choice question
58 \foreachproblem[mchoice]{\item \thisproblem}
59
60 % select one essay style question that doesn't come with a solution
61
62 \foreachproblem[nosoln]{\item \thisproblem}
63 \end{enumerate}
64 \end{document}