Debian Codegraph @

texmf-dist/doc/latex/esami/doc/examples/testA-pdflatex-sol.tex

raw
1 \documentclass[a4paper,italian]{article}
2
3
4 \usepackage[shuffle,xyz,pointsonright,solutions,quizsolutions,twocolumns]{esami}%%%%% TEMA
5
6 % +=============================+
7 % | DEFINITIONS |
8 % +=============================+
9
10 \def\examname{The name of the exam}
11 \def\numcompiti{4}%%% The number of the versions
12 \date{2023/07/14}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
13 \def\Data{\longdate}%%% or \shortdate: the date in the heading
14 %\def\cartella{pop}%%% The folder where are the exercises: by default the current folder%
15 %\def\Acapo{\newpage}
16 \usepackage{babel}
17
18 \renewcommand{\checkpoints}{ } % So we don't check if the total points of an exercise is correct
19
20 \begin{document}
21 \testversioni
22 \pagestyle{esame}
23
24 \whiledo{\thevers<\numcompiti}{\stepvers
25 % +=============================+
26 % | THE SEED |
27 % +=============================+
28
29 %\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
30 %%% OR SOME OTHER LIKE
31 \FPeval\seme{round(\thenomefile*(\thevers)+1-trunc(\thenomefile*(\thevers)/(2^31-1):0)*(2^31-1):0)}
32 %\FPeval\seme{round(1+abs(\thenomefile/(\thevers)+sin(\thevers)*(\thevers)^(2)):0)}
33 %\FPeval\semeex{round(\thenomefile+1-trunc(\thenomefile/(2^31-1):0)*(2^31-1):0)}
34 \randomi=\seme
35
36 \permuta
37 % +=============================+
38 % | STUFF DEFINED IN CFG FILE |
39 % +=============================+
40
41 \testa%%% the heading
42 \istruzionii%%% some instructions
43
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45
46 \section*{Part One}
47
48
49 \begin{test}[15]
50 \textsc{some exercises from 2 files}
51
52
53 \begin{questions}
54 %\ifluatex
55 %\esercizi{
56 %test14,
57 %test1,
58 %test4,
59 %test9
60 %}
61 %\else\ifxetex
62 %\esercizi{
63 %test14,
64 %test1,
65 %test4,
66 %test9
67 %}
68 %\else
69
70
71
72 \begin{esdb}{mydb} %% some exercises from 2 files
73 \selectrandomlyn{3}{test2}
74 \selectrandomlyn{2}{test3}
75 \end{esdb}
76
77 \esercizi{
78 test14,
79 test1,
80 test4,
81 test9,
82 test5-fillin
83 }
84
85 \textsc{All the problems of a file}
86
87
88 \selectallproblems[random]{test11}
89 %\fi\fi
90
91 \end{questions}
92
93 \textsc{Some other questions}\\[5mm]
94
95
96 \begin{questions} %% a new set of questions
97 \esercizi{test12,
98 test13
99 }
100 \end{questions}
101 \end{test}
102
103 \newpage
104 \section*{Part two}
105 \istruzioniii%%% Some other instructions
106
107 \esercizi{problem1}
108 \newpage
109 An example of matching question.
110
111 \esercizi{problem3-matching}
112
113 \newpage
114 An example of ``tabella'' question.
115
116 \esercizi{problem2-tabella}
117 \closevers
118 \newpage %
119 %
120 \setcounter{page}{1} %%% dvi
121 }
122
123 \end{document}