summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/esami/doc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-14 03:01:14 +0000
committerNorbert Preining <norbert@preining.info>2022-01-14 03:01:14 +0000
commit45623da68203ac8d7aa04b779a6ed65c92c3f866 (patch)
tree151ca3ede3ee826360d4b32c0029cfc106346ec9 /macros/latex/contrib/esami/doc
parentee3f9ca89b21a2174f7e427d9d48247b1912e130 (diff)
CTAN sync 202201140301
Diffstat (limited to 'macros/latex/contrib/esami/doc')
-rw-r--r--macros/latex/contrib/esami/doc/esami-doc-en.pdfbin481289 -> 480874 bytes
-rw-r--r--macros/latex/contrib/esami/doc/esami-doc-en.tex17
-rw-r--r--macros/latex/contrib/esami/doc/esami-doc-it.pdfbin489492 -> 488964 bytes
-rw-r--r--macros/latex/contrib/esami/doc/esami-doc-it.tex20
-rw-r--r--macros/latex/contrib/esami/doc/examples/problem2-tabella.tex4
-rw-r--r--macros/latex/contrib/esami/doc/examples/problem3-matching.tex6
-rw-r--r--macros/latex/contrib/esami/doc/examples/test2.tex7
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-luatex-sol.pdfbin65018 -> 115953 bytes
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-luatex-sol.tex124
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-luatex.pdfbin55273 -> 91759 bytes
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-luatex.tex123
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-sol.pdfbin211514 -> 257725 bytes
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-sol.tex49
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-xetex-sol.pdfbin61685 -> 68345 bytes
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-xetex-sol.sol.tex84
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-xetex-sol.tex124
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-xetex.pdfbin52621 -> 58499 bytes
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA-xetex.tex124
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA.pdfbin178754 -> 217098 bytes
-rw-r--r--macros/latex/contrib/esami/doc/examples/testA.tex52
20 files changed, 675 insertions, 59 deletions
diff --git a/macros/latex/contrib/esami/doc/esami-doc-en.pdf b/macros/latex/contrib/esami/doc/esami-doc-en.pdf
index 017a1b28d8..d7dddc90ab 100644
--- a/macros/latex/contrib/esami/doc/esami-doc-en.pdf
+++ b/macros/latex/contrib/esami/doc/esami-doc-en.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/esami-doc-en.tex b/macros/latex/contrib/esami/doc/esami-doc-en.tex
index 33e51db7cd..05788c147f 100644
--- a/macros/latex/contrib/esami/doc/esami-doc-en.tex
+++ b/macros/latex/contrib/esami/doc/esami-doc-en.tex
@@ -20,6 +20,7 @@
\usepackage{fancyvrb}
\usepackage[lmargin=3.5cm,rmargin=3.5cm]{geometry}
\usepackage[colorlinks=true,pdftex,hyperindex=true]{hyperref}
+
\newcounter{esempio}
\newsavebox{\fcolbox} %\newlength{\fcolwidth}
\newenvironment{esempio}
@@ -78,6 +79,7 @@
\changes{Version 2.4}{2018/02/10}{Documentation corrected. }
\changes{Version 2.5}{2018/05/06}{Corrected a misprint in the code. Improved the selection of random exercises.}
\changes{Version 2.6}{2021/10/11}{Improved the spacing in \cmd{\FPsignpol}. Corrected the code to avoid some spourios spaces. }
+\changes{Version 2.7}{2022/01/11}{Improved the spacing in \cmd{\sempli} and \cmd{\FPsignpol}. Corrected a misprint in the code.}
%\IndexPrologue{\section*{Index} Numbers written in italic refer to the page where the item is described; underlined numebers refer to the line of code in which the item is described; other references are to the line of code where the item is used.}
\GlossaryPrologue{\section*{Changelog}}
@@ -87,8 +89,8 @@
\fontshape\updefault
\footnotesize}
\GetFileInfo{esami.sty}
-\def\fileversion{versione 2.6}
-\def\filedate{2021/10/11}
+\def\fileversion{versione 2.7}
+\def\filedate{2022/01/11}
\title{Package esami\thanks{This document
@@ -122,7 +124,7 @@ Package \pkgname{esami} depends on some other non standard packages\footnote{The
\end{enumerate}
Moreover following packages are optional, but recommended:
\begin{enumerate}
- \item \pkgname{ifluatex} and \pkgname{ifxetex} to compile with \Hologo{XeLaTeX} and \Hologo{LuaLaTeX} (here below we will refer only to the compilation with \hologo{pdfLaTeX})\nuovo{vers. 2.0}\footnote{At the moment the support for \Hologo{XeLaTeX} and \Hologo{LuaLaTeX} is only partial and it is not possibile to use some type of exercises.}.
+ \item \pkgname{ifluatex} and \pkgname{ifxetex} to compile with \Hologo{XeLaTeX} and \Hologo{LuaLaTeX} (here below we will refer only to the compilation with \hologo{pdfLaTeX})\nuovo{vers. 2.0}\footnote{At the moment the use of package with \Hologo{XeLaTeX} and \Hologo{LuaLaTeX}has not completely been tested and it is possibile that some type of exercises do not work as expected.}.
\item \pkgname{lmodern} and \pkgname{amsfonts}: useful for a good pdf output;
\item \pkgname{numprint}: to have a better output and different formats for numbers, depending on language;
%\item \pkgname{icomma}: from \pkgname{ws} package, for a correct format of commas;
@@ -307,7 +309,7 @@ The environment \envname{esdb}\marg{nome db} defines a virtual database of exerc
The environment generates a file \texttt{nome db.tex} which contains the references to all the exercises chosen. When the environment is closed, exercises are automatically written with the command \cmd{\esercizidb}\marg{nome db} (not to be written). If more than one environment \envname{esdb} is used, each one must be given a different name.
-Also this environment is a modified version of a similar environment in \pkgname{probsoln} and, at the moment, does not work nor with \hologo{XeLaTeX} nor with \hologo{LuaLaTeX}.
+Also this environment is a modified version of a similar environment in \pkgname{probsoln}.
In the file of the exercises, in
@@ -459,7 +461,7 @@ The optional parameter \meta{type} defines the way in which the blank space is d
If the answer contains mathematical expressions, it must be written between \$\ even if the command \cmd{\fillin} is already contained in a mathematical environment.
-This kind of exercise cannot be used, at the moment, with \Hologo{XeLaTeX} or \Hologo{LuaLaTeX}.
+%This kind of exercise cannot be used, at the moment, with \Hologo{XeLaTeX} or \Hologo{LuaLaTeX}.
\paragraph{domanda:}\DescribeEnv{domanda} (the word ``domanda'' means ``question'' in Italian)
this environment must contain the text of the exercise (not the solution). It is used in \envname{problem} and \envname{problem*} and with the package option \optname{solutionsonly} only the solution of the exercise is printed and not the text. In previous versions of this package (not released to CTAN) there was another environment in order to obtain this.
\paragraph{risposta:}\DescribeEnv{risposta} This environment generates a ruled or boxed space in which the student has to write the answer of an exercise (``risposta'' is the Italian word for ``answer'').
@@ -507,7 +509,7 @@ The two lists are shuffled and then printed with the command \cmd{\matching}.
\end{esempio}
The solutions show the correct matching.
-Also this kind of exercise does not work with \Hologo{XeLaTeX} or \Hologo{LuaLaTeX}.
+%Also this kind of exercise does not work with \Hologo{XeLaTeX} or \Hologo{LuaLaTeX}.
\paragraph{tabella:}\DescribeEnv{tabella} (the word ``tabella'' means ``table'' in Italian) it is used to create exercises with many short open answers in column.
The syntax is (the \cs{cr} at the end of the line is necessary):
@@ -521,7 +523,7 @@ The syntax is (the \cs{cr} at the end of the line is necessary):
The first parameter (default 2) is the number of columns of the table visible in the text of the exercise. The last column is invisible in the text and visible in the solutions.
The second parameter gives the alignment of the visible columns (the same for all the columns) and the third one the alignment of the hidden column.
-This kind of exercise works with \Hologo{XeLaTeX}, but not with \Hologo{LuaLaTeX}.
+%This kind of exercise works with \Hologo{XeLaTeX}, but not with \Hologo{LuaLaTeX}.
\begin{esempio}
With the code
\begin{verbatim}
@@ -793,6 +795,7 @@ Inside this file you should use only one command, \cmd{\def \textbackslash eserc
\item[Version 2.4 (2018/02/10)] Documentation corrected.
\item[Version 2.5 (2018/05/06)] Corrected a misprint in the code. Improved the selection of random exercises.
\item[Version 2.6 (2021/10/11)] Improved the spacing in \cmd{\FPsignpol}. Corrected the code to avoid some spourios spaces.
+ \item[Version 2.7 (2021/10/11)] Improved the spacing in \cmd{\sempli} and \cmd{\FPsignpol}. Corrected a misprint in the code
\end{description}
\bibliographystyle{plain}
diff --git a/macros/latex/contrib/esami/doc/esami-doc-it.pdf b/macros/latex/contrib/esami/doc/esami-doc-it.pdf
index 8b32737ca2..b706c809d3 100644
--- a/macros/latex/contrib/esami/doc/esami-doc-it.pdf
+++ b/macros/latex/contrib/esami/doc/esami-doc-it.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/esami-doc-it.tex b/macros/latex/contrib/esami/doc/esami-doc-it.tex
index d8e8363ee8..3ac7495edb 100644
--- a/macros/latex/contrib/esami/doc/esami-doc-it.tex
+++ b/macros/latex/contrib/esami/doc/esami-doc-it.tex
@@ -77,6 +77,7 @@
\changes{Versione 2.4}{2018/02/10}{Corretta la documentazione .}
\changes{Versione 2.5}{2018/05/06}{Corretto un errore di battitura nel codice. Migliorata la scelta aleatoria degli esercizi.}
\changes{Versione 2.6}{2021/10/11}{Migliorata la spaziatura in \cmd{\FPsignpol}. Corretto il codice per eliminare alcuni spazi spuri.}
+\changes{Versione 2.7}{2022/01/11}{Migliorata la spaziatura in \cmd{\sempli} e \cmd{\FPsignpol}. Corretto un errore nel codice}
%\IndexPrologue{\section*{Indice} I numeri scritti in italico rimandano alla pagina dove è descritto l'item; i numeri sottolineati rimandano alla riga di codice in cui l'item è descritto; le altre referenze sono alla riga di codice dove l'item è usato.}
\GlossaryPrologue{\section*{Changelog}}
@@ -86,8 +87,8 @@
\fontshape\updefault
\footnotesize}
\GetFileInfo{esami.sty}
-\def\fileversion{versione 2.6}
-\def\filedate{2021/10/11}
+\def\fileversion{versione 2.7}
+\def\filedate{2022/01/11}
\title{Il pacchetto esami\thanks{Questo documento
@@ -121,7 +122,7 @@ Il pacchetto \pkgname{esami} dipende da alcuni altri pacchetti non standard\foot
\end{enumerate}
Inoltre i seguenti pacchetti sono opzionali, ma raccomandati:
\begin{enumerate}
- \item \pkgname{ifluatex} e \pkgname{ifxetex} per la compilazione con \Hologo{XeLaTeX} e \Hologo{LuaLaTeX} (nel seguito si farà riferimento solo alla compilazione con \hologo{pdfLaTeX})\nuovo{vers. 2.0}\footnote{Al momento il supporto per \Hologo{XeLaTeX} e \Hologo{LuaLaTeX} è molto parziale e alcune tipologie di esercizio non sono utilizzabili.}.
+ \item \pkgname{ifluatex} e \pkgname{ifxetex} per la compilazione con \Hologo{XeLaTeX} e \Hologo{LuaLaTeX} (nel seguito si farà riferimento solo alla compilazione con \hologo{pdfLaTeX})\nuovo{vers. 2.0}\footnote{Al momento l'utilizzo del pacchetto con \Hologo{XeLaTeX} e \Hologo{LuaLaTeX} non è stato del tutto testato e alcune tipologie di esercizio potrebbero non essere utilizzabili.}.
\item \pkgname{lmodern} and \pkgname{amsfonts}: necessari per un buon output in pdf;
\item \pkgname{numprint}: per un output migliore dei numeri e per avere formati numerici diversi a seconda del linguaggio;
\item \pkgname{eurosym}: per usare la valuta;
@@ -316,7 +317,7 @@ L'ambiente \envname{esdb}\marg{nome db} definisce un database virtuale di eserci
L'ambiente genera un file \texttt{nome db.tex} che contiene i riferimenti agli esercizi scelti. Alla chiusura dell'ambiente gli esercizi vengono mandati automaticamente in output mediante il comando \cmd{\esercizidb}\marg{nome db} (da non dare esplicitamente). Ovviamente se si usano più ambienti \envname{esdb} ad ognuno deve essere assegnato un nome diverso.
-Anche questo ambiente è una versione modificata di un analogo ambiente presente nel pacchetto \pkgname{probsoln} e, al momento non funziona né con \hologo{XeLaTeX} né con \hologo{LuaLaTeX}.
+Anche questo ambiente è una versione modificata di un analogo ambiente presente nel pacchetto \pkgname{probsoln}.
Nel file degli esercizi, la sintassi da usare all'interno di
\cmd{\newproblem} è la seguente:
@@ -476,7 +477,7 @@ Se la risposta contiene espressioni matematiche, deve essere inserita esplicitam
%All'interno del comando \cmd{\fillin} (nello spazio per la risposta) non è possibile usare i comandi \cmd{\sempli} o \cmd{\semplix} (si veda la sezione \ref{sec:comandi}).
-Questo tipo di esercizio non può al momento essere usato né con \Hologo{XeLaTeX} né con \Hologo{LuaLaTeX}
+%Questo tipo di esercizio non può al momento essere usato né con \Hologo{XeLaTeX} né con \Hologo{LuaLaTeX}
\paragraph{domanda:}\DescribeEnv{problema} questo ambiente deve contenere il testo dell'esercizio (non le soluzioni). Viene usato negli ambienti \envname{problema} e \envname{problema*}, con l'opzione \optname{solutionsonly} non viene stampato il testo degli esercizi, ma solo la soluzione. Nelle versioni precedenti del pacchetto per lo stesso scopo veniva usato un altro ambiente.
\paragraph{risposta:}\DescribeEnv{risposta} serve per creare, in esercizi a risposta aperta lunga, lo spazio per inserire la risposta in un box o su righe.
@@ -521,7 +522,7 @@ L'elenco dei nomi (mischiati in ordine casuale su ciascuna colonna) viene visual
\end{esempio}
Nelle soluzioni viene invece visualizzato l'abbinamento corretto.
-Anche questo esercizio non funziona né con \Hologo{XeLaTeX} né con \Hologo{LuaLaTeX}.
+%Anche questo esercizio non funziona né con \Hologo{XeLaTeX} né con \Hologo{LuaLaTeX}.
\paragraph{tabella:}\DescribeEnv{tabella} serve per creare esercizi con più risposte aperte incolonnate.
La sintassi è
@@ -534,7 +535,7 @@ La sintassi è
Il primo parametro (il cui valore di default è 2) indica il numero di colonne della tabella il cui contenuto deve essere visibile anche nel testo dell'esercizio (e non solo nella soluzione), mentre è possibile avere solo una colonna il cui contenuto è invisibile nel testo, ma appare nella soluzione. Il secondo parametro consente di scegliere l'allineamento delle colonne il cui contenuto è sempre visibile e il terzo l'allineamento della colonna invisibile.
Come per le domande a risposta chiusa, le risposte che contengono il carattere di tabulazione \&\ devono essere racchiuse tra parentesi graffe.
-Questo tipo di esercizio funziona con \Hologo{XeLaTeX}, ma non con \Hologo{LuaLaTeX}.
+%Questo tipo di esercizio funziona con \Hologo{XeLaTeX}, ma non con \Hologo{LuaLaTeX}.
\begin{esempio}
Con il codice
\begin{verbatim}
@@ -793,8 +794,9 @@ Al suo interno si deve usare un solo comando, \cmd{\def \textbackslash esercizio
\item[Versione 2.2 (2017/07/01)] Introdotta la possibilità di avere due semi diversi per la scelta degli esercizi (\cmd{\semeex}) e per le permutazioni e scelta dei parametri (\cmd{\seme}): di default sono uguali. Leggermente modificato il comando \cmd{\estrai} così da poter essere usato per estrarre parametri numerici da una lista. Integrata la documentazione.
\item[Versione 2.3 (2017/09/18)] Corretto un errore di battitura nel codice.
\item[Versione 2.4 (2018/02/10)] Corretta la documentazione .
- \item[Versione 2.5 (2018/05/06)] Corretto un errore di battitura nel codice. Migliorata la scelta aleatoria degli esercizi.
- \item[Versione 2.6 (2021/10/11)] Migliorata la spaziatura in \cmd{\FPsignpol}. Corretto il codice per eliminare alcuni spazi spuri.
+ \item[Versione 2.5 (2018/05/06)] Corretto un errore di battitura nel codice. Migliorata la scelta aleatoria degli esercizi.
+ \item[Versione 2.6 (2021/10/11)] Migliorata la spaziatura in \cmd{\FPsignpol}. Corretto il codice per eliminare alcuni spazi spuri.
+ \item[Versione 2.7 (2022/01/11)] Migliorata la spaziatura in \cmd{\sempli} e \cmd{\FPsignpol}. Corretto un errore nel codice
\end{description}
diff --git a/macros/latex/contrib/esami/doc/examples/problem2-tabella.tex b/macros/latex/contrib/esami/doc/examples/problem2-tabella.tex
index 8929d2c84d..efb14edddf 100644
--- a/macros/latex/contrib/esami/doc/examples/problem2-tabella.tex
+++ b/macros/latex/contrib/esami/doc/examples/problem2-tabella.tex
@@ -4,6 +4,7 @@
\begin{problem}[4]
Solve the following equations:
+\begin{center}
\begin{tabella}[1]{l}{r}
Equation & Solution \cr
\hline
@@ -15,6 +16,7 @@ $x^2+\FPsv{a-b}x-\FPsv{a*b}=0$& $x=-\a;\; x=\b$ \cr
\hline
$x^2-\FPsv{a-b}x-\FPsv{a*b}=0$& $x=\a;\; x=-\b $\cr
\end{tabella}
+\end{center}
\end{problem}
}
@@ -22,6 +24,7 @@ $x^2-\FPsv{a-b}x-\FPsv{a*b}=0$& $x=\a;\; x=-\b $\cr
\begin{problem}[5]
Complete the following table of derivatives:
+\begin{center}
\begin{tabella}[1]{l}{r}
Function & Derivative \cr
\hline
@@ -31,5 +34,6 @@ $f(x)=\sin x$ & $f'(x)=\cos x$\cr
\hline
$f(x)=\cos x $& $f'(x)=-\sin x$\cr
\end{tabella}
+\end{center}
\end{problem}
}
diff --git a/macros/latex/contrib/esami/doc/examples/problem3-matching.tex b/macros/latex/contrib/esami/doc/examples/problem3-matching.tex
index ede6dddc74..58bc22d4e8 100644
--- a/macros/latex/contrib/esami/doc/examples/problem3-matching.tex
+++ b/macros/latex/contrib/esami/doc/examples/problem3-matching.tex
@@ -21,12 +21,12 @@
\FPsetpar{c}{2}{4}
\FPsetpar{k}{3}{5}
$a=\a$, $b=\b$, $c=\c$
-
+
\pair{$\FPsv{k*a}:\a$}{$\k$}
\pair{$\k^{\c}$}{$\FPsv{k^c}$}
\pair{$\a \times \b$}{$\FPsv{a*b}$}
-
+\pair{$\a \times \b$}{$\FPsv{a*b}$}
+\pair{$\a \times \b$}{$\FPsv{a*b}$}
\matching
-
\end{problem}
}
diff --git a/macros/latex/contrib/esami/doc/examples/test2.tex b/macros/latex/contrib/esami/doc/examples/test2.tex
index ff3f0dee60..d0f07b16b4 100644
--- a/macros/latex/contrib/esami/doc/examples/test2.tex
+++ b/macros/latex/contrib/esami/doc/examples/test2.tex
@@ -4,9 +4,8 @@
\FPsetpar{c}{2}{8}
\item \PTs{1} exercise 2a $a=\a$, $b=\b$, $c=\c$
-seme=\seme
-semeex=\semeex
+
\begin{answers}{1}\bChoices[random]
\Ans1 answer 1 correct\eAns
\Ans0 answer 2 wrong\eAns
@@ -22,9 +21,7 @@ semeex=\semeex
\item \PTs{1} exercise 2b $a=\a$, $b=\b$, $c=\c$
-seme=\seme
-semeex=\semeex
\begin{answers}{1}\bChoices[random]
\Ans1 answer 1 correct\eAns
\Ans0 answer 2 wrong\eAns
@@ -41,9 +38,7 @@ semeex=\semeex
\item \PTs{1} exercise 2c $a=\a$, $b=\b$, $c=\c$
-seme=\seme
-semeex=\semeex
\begin{answers}{1}\bChoices[random]
\Ans1 answer 1 correct\eAns
\Ans0 answer 2 wrong\eAns
diff --git a/macros/latex/contrib/esami/doc/examples/testA-luatex-sol.pdf b/macros/latex/contrib/esami/doc/examples/testA-luatex-sol.pdf
index 74b27a1343..69ba6afe98 100644
--- a/macros/latex/contrib/esami/doc/examples/testA-luatex-sol.pdf
+++ b/macros/latex/contrib/esami/doc/examples/testA-luatex-sol.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/examples/testA-luatex-sol.tex b/macros/latex/contrib/esami/doc/examples/testA-luatex-sol.tex
new file mode 100644
index 0000000000..3c4a9444c8
--- /dev/null
+++ b/macros/latex/contrib/esami/doc/examples/testA-luatex-sol.tex
@@ -0,0 +1,124 @@
+\documentclass[a4paper,italian]{article}
+ \usepackage{luatextra} % also loads fixltx2e, fontspec, xunicode
+ \usepackage[utf8]{luainputenc}
+
+\usepackage[shuffle,xyz,pointsonright,solutions,quizsolutions,twocolumns]{esami}%%%%% TEMA
+
+% +=============================+
+% | DEFINITIONS |
+% +=============================+
+
+\def\examname{The name of the exam}
+\def\numcompiti{4}%%% The number of the versions
+\date{2022/01/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
+\def\Data{\longdate}%%% or \shortdate: the date in the heading
+%\def\cartella{pop}%%% The folder where are the exercises: by default the current folder%
+%\def\Acapo{\newpage}
+\usepackage{babel}
+
+\renewcommand{\checkpoints}{ } % So we don't check if the total points of an exercise is correct
+
+\begin{document}
+\testversioni
+\pagestyle{esame}
+
+\whiledo{\thevers<\numcompiti}{\stepvers
+% +=============================+
+% | THE SEED |
+% +=============================+
+
+%\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
+%%% OR SOME OTHER LIKE
+\FPeval\seme{round(\thenomefile*(\thevers)+1-trunc(\thenomefile*(\thevers)/(2^31-1):0)*(2^31-1):0)}
+%\FPeval\seme{round(1+abs(\thenomefile/(\thevers)+sin(\thevers)*(\thevers)^(2)):0)}
+%\FPeval\semeex{round(\thenomefile+1-trunc(\thenomefile/(2^31-1):0)*(2^31-1):0)}
+\randomi=\seme
+
+\permuta
+% +=============================+
+% | STUFF DEFINED IN CFG FILE |
+% +=============================+
+
+\testa%%% the heading
+\istruzionii%%% some instructions
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\section*{Part One}
+
+
+\begin{test}[15]
+ \textsc{some exercises from 2 files}
+
+
+\begin{questions}
+%\ifluatex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else\ifxetex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else
+
+
+
+\begin{esdb}{mydb} %% some exercises from 2 files
+ \selectrandomlyn{3}{test2}
+ \selectrandomlyn{2}{test3}
+ \end{esdb}
+
+\esercizi{
+test14,
+test1,
+test4,
+test9,
+test5-fillin
+}
+
+\textsc{All the problems of a file}
+
+
+\selectallproblems[random]{test11}
+%\fi\fi
+
+\end{questions}
+
+\textsc{Some other questions}\\[5mm]
+
+
+\begin{questions} %% a new set of questions
+\esercizi{test12,
+test13
+}
+\end{questions}
+\end{test}
+
+\newpage
+\section*{Part two}
+\istruzioniii%%% Some other instructions
+
+\esercizi{problem1}
+\newpage
+An example of matching question.
+
+\esercizi{problem3-matching}
+
+\newpage
+An example of ``tabella'' question.
+
+\esercizi{problem2-tabella}
+\closevers
+\newpage %
+ %
+\setcounter{page}{1} %%% dvi
+}
+
+\end{document}
diff --git a/macros/latex/contrib/esami/doc/examples/testA-luatex.pdf b/macros/latex/contrib/esami/doc/examples/testA-luatex.pdf
index 73b4e342a4..01b466cb05 100644
--- a/macros/latex/contrib/esami/doc/examples/testA-luatex.pdf
+++ b/macros/latex/contrib/esami/doc/examples/testA-luatex.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/examples/testA-luatex.tex b/macros/latex/contrib/esami/doc/examples/testA-luatex.tex
new file mode 100644
index 0000000000..4f66e66f3d
--- /dev/null
+++ b/macros/latex/contrib/esami/doc/examples/testA-luatex.tex
@@ -0,0 +1,123 @@
+\documentclass[a4paper,italian]{article}
+ \usepackage{luatextra} % also loads fixltx2e, fontspec, xunicode
+ \usepackage[utf8]{luainputenc}
+\usepackage[shuffle,xyz,pointsonright,nosolutions,noquizsolutions,twocolumns]{esami}
+
+% +=============================+
+% | DEFINITIONS |
+% +=============================+
+
+\def\examname{The name of the exam}
+\def\numcompiti{4}%%% The number of the versions
+\date{2022/01/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
+\def\Data{\longdate}%%% or \shortdate: the date in the heading
+%\def\cartella{pop}%%% The folder where are the exercises: by default the current folder%
+%\def\Acapo{\newpage}
+\usepackage{babel}
+
+\renewcommand{\checkpoints}{ } % So we don't check if the total points of an exercise is correct
+
+\begin{document}
+\testversioni
+\pagestyle{esame}
+
+\whiledo{\thevers<\numcompiti}{\stepvers
+% +=============================+
+% | THE SEED |
+% +=============================+
+
+%\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
+%%% OR SOME OTHER LIKE
+\FPeval\seme{round(\thenomefile*(\thevers)+1-trunc(\thenomefile*(\thevers)/(2^31-1):0)*(2^31-1):0)}
+%\FPeval\seme{round(1+abs(\thenomefile/(\thevers)+sin(\thevers)*(\thevers)^(2)):0)}
+%\FPeval\semeex{round(\thenomefile+1-trunc(\thenomefile/(2^31-1):0)*(2^31-1):0)}
+\randomi=\seme
+
+\permuta
+% +=============================+
+% | STUFF DEFINED IN CFG FILE |
+% +=============================+
+
+\testa%%% the heading
+\istruzionii%%% some instructions
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\section*{Part One}
+
+
+\begin{test}[15]
+ \textsc{some exercises from 2 files}
+
+
+\begin{questions}
+%\ifluatex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else\ifxetex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else
+
+
+
+\begin{esdb}{mydb} %% some exercises from 2 files
+ \selectrandomlyn{3}{test2}
+ \selectrandomlyn{2}{test3}
+ \end{esdb}
+
+\esercizi{
+test14,
+test1,
+test4,
+test9,
+test5-fillin
+}
+
+\textsc{All the problems of a file}
+
+
+\selectallproblems[random]{test11}
+%\fi\fi
+
+\end{questions}
+
+\textsc{Some other questions}\\[5mm]
+
+
+\begin{questions} %% a new set of questions
+\esercizi{test12,
+test13
+}
+\end{questions}
+\end{test}
+
+\newpage
+\section*{Part two}
+\istruzioniii%%% Some other instructions
+
+\esercizi{problem1}
+\newpage
+An example of matching question.
+
+\esercizi{problem3-matching}
+
+\newpage
+An example of ``tabella'' question.
+
+\esercizi{problem2-tabella}
+\closevers
+\newpage %
+ %
+\setcounter{page}{1} %%% dvi
+}
+
+\end{document}
diff --git a/macros/latex/contrib/esami/doc/examples/testA-sol.pdf b/macros/latex/contrib/esami/doc/examples/testA-sol.pdf
index 4970190095..634f2950b0 100644
--- a/macros/latex/contrib/esami/doc/examples/testA-sol.pdf
+++ b/macros/latex/contrib/esami/doc/examples/testA-sol.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/examples/testA-sol.tex b/macros/latex/contrib/esami/doc/examples/testA-sol.tex
index f0d8d42076..5302238910 100644
--- a/macros/latex/contrib/esami/doc/examples/testA-sol.tex
+++ b/macros/latex/contrib/esami/doc/examples/testA-sol.tex
@@ -5,14 +5,11 @@
%\usepackage[shuffle,xyz,pointsonright,nosolutions,noquizsolutions,twocolumns]{esami}%%%%% TEMA
\ifluatex
\usepackage{luatextra} % also loads fixltx2e, fontspec, xunicode
- \usepackage{unicode-math}
- \setmathfont{Latin Modern Math}
\usepackage[utf8]{luainputenc}
\else\ifxetex
\usepackage{fixltx2e}
\usepackage{fontspec}
- \usepackage{unicode-math}
- \XeTeXinputencoding utf8
+ \XeTeXinputencoding utf8
\else
\usepackage{fixltx2e}
\usepackage[T1]{fontenc}
@@ -27,12 +24,14 @@
\def\examname{The name of the exam}
\def\numcompiti{4}%%% The number of the versions
-\date{2014/07/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
+\date{2022/01/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
\def\Data{\longdate}%%% or \shortdate: the date in the heading
%\def\cartella{pop}%%% The folder where are the exercises: by default the current folder%
%\def\Acapo{\newpage}
\usepackage{babel}
+\renewcommand{\checkpoints}{ } % So we don't check if the total points of an exercise is correct
+
\begin{document}
\testversioni
\pagestyle{esame}
@@ -46,7 +45,7 @@
%%% OR SOME OTHER LIKE
\FPeval\seme{round(\thenomefile*(\thevers)+1-trunc(\thenomefile*(\thevers)/(2^31-1):0)*(2^31-1):0)}
%\FPeval\seme{round(1+abs(\thenomefile/(\thevers)+sin(\thevers)*(\thevers)^(2)):0)}
-
+%\FPeval\semeex{round(\thenomefile+1-trunc(\thenomefile/(2^31-1):0)*(2^31-1):0)}
\randomi=\seme
\permuta
@@ -62,7 +61,10 @@
\section*{Part One}
-\begin{test}[18]
+\begin{test}[15]
+ \textsc{some exercises from 2 files}
+
+
\begin{questions}
%\ifluatex
%\esercizi{
@@ -79,39 +81,54 @@
%test9
%}
%\else
+
+
+
\begin{esdb}{mydb} %% some exercises from 2 files
\selectrandomlyn{3}{test2}
\selectrandomlyn{2}{test3}
\end{esdb}
\esercizi{
-%prova-colombia,
test14,
test1,
test4,
test9,
-test5-fillin,
+test5-fillin
}
-%%% all the problems of a file
+
+\textsc{All the problems of a file}
+
+
\selectallproblems[random]{test11}
%\fi\fi
\end{questions}
-Some other questions\\[5mm]
+\textsc{Some other questions}\\[5mm]
-%\begin{questions} %% a new set of questions
-%\esercizi{test12,
-%test13
-%}
-%\end{questions}
+\begin{questions} %% a new set of questions
+\esercizi{test12,
+test13
+}
+\end{questions}
\end{test}
+\newpage
\section*{Part two}
\istruzioniii%%% Some other instructions
\esercizi{problem1}
+\newpage
+An example of matching question.
+
+\esercizi{problem3-matching}
+
+\newpage
+An example of ``tabella'' question.
+
+\esercizi{problem2-tabella}
\closevers
\newpage %
%
diff --git a/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.pdf b/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.pdf
index fc64643065..26b70dcc96 100644
--- a/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.pdf
+++ b/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.sol.tex b/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.sol.tex
new file mode 100644
index 0000000000..00cc5e002c
--- /dev/null
+++ b/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.sol.tex
@@ -0,0 +1,84 @@
+\begin{minipage}{.33\textwidth}{\large\textbf{Soluzione\ Versione\ n. 1}}
+\begin{enumerate}
+\item\ref{e:1-file:test2-q:i}
+\item\ref{e:1-file:test3-q:ii}
+\item\ref{e:1-file:test2-q:ii}
+\item\ref{e:1-file:test2-q:iii}
+\item\ref{e:1-file:test3-q:i}
+\item\ref{e:1-file:test1-q:i}
+\item\ref{e:1-file:test9-q:ii}
+\item\ref{e:1-file:test14-q:i}
+\item\ref{e:1-file:test4-q:v}
+\item \makeatletter \input{qftest5-fillinqiie1.parametri}\makeatother
+ \FPsv [2]{b/k}
+\item\ref{e:1-file:test11-q:i}
+\item\ref{e:1-file:test11-q:ii}
+\par\end{enumerate}\vspace{3ex}
+\begin{enumerate}
+\item\ref{e:1-file:test12-q:i}
+\item\ref{e:1-file:test13-q:ii}
+\par\end{enumerate}\vspace{3ex}
+\end{minipage}
+\begin{minipage}{.33\textwidth}{\large\textbf{Soluzione\ Versione\ n. 2}}
+\begin{enumerate}
+\item\ref{e:2-file:test2-q:iii}
+\item\ref{e:2-file:test3-q:i}
+\item\ref{e:2-file:test2-q:ii}
+\item\ref{e:2-file:test3-q:iv}
+\item\ref{e:2-file:test2-q:i}
+\item\ref{e:2-file:test1-q:ii}
+\item \makeatletter \input{qftest5-fillinqiie2.parametri}\makeatother
+ \FPsv [2]{a/c}
+\item\ref{e:2-file:test9-q:iii}
+\item\ref{e:2-file:test14-q:i}
+\item\ref{e:2-file:test4-q:ii}
+\item\ref{e:2-file:test11-q:i}
+\item\ref{e:2-file:test11-q:ii}
+\par\end{enumerate}\vspace{3ex}
+\begin{enumerate}
+\item\ref{e:2-file:test13-q:iii}
+\item\ref{e:2-file:test12-q:iii}
+\par\end{enumerate}\vspace{3ex}
+\end{minipage}
+\begin{minipage}{.33\textwidth}{\large\textbf{Soluzione\ Versione\ n. 3}}
+\begin{enumerate}
+\item\ref{e:3-file:test2-q:iii}
+\item\ref{e:3-file:test3-q:i}
+\item\ref{e:3-file:test2-q:i}
+\item\ref{e:3-file:test3-q:ii}
+\item\ref{e:3-file:test2-q:ii}
+\item\ref{e:3-file:test14-q:i}
+\item \makeatletter \input{qftest5-fillinqiie3.parametri}\makeatother
+ \FPsv [2]{b/k}
+\item\ref{e:3-file:test4-q:iii}
+\item\ref{e:3-file:test1-q:i}
+\item\ref{e:3-file:test9-q:iv}
+\item\ref{e:3-file:test11-q:i}
+\item\ref{e:3-file:test11-q:ii}
+\par\end{enumerate}\vspace{3ex}
+\begin{enumerate}
+\item\ref{e:3-file:test12-q:i}
+\item\ref{e:3-file:test13-q:iv}
+\par\end{enumerate}\vspace{3ex}
+\end{minipage}
+\begin{minipage}{.33\textwidth}{\large\textbf{Soluzione\ Versione\ n. 4}}
+\begin{enumerate}
+\item\ref{e:4-file:test2-q:ii}
+\item\ref{e:4-file:test2-q:i}
+\item\ref{e:4-file:test3-q:i}
+\item\ref{e:4-file:test3-q:ii}
+\item\ref{e:4-file:test2-q:iii}
+\item\ref{e:4-file:test4-q:v}
+\item\ref{e:4-file:test9-q:iii}
+\item\ref{e:4-file:test1-q:ii}
+\item\ref{e:4-file:test14-q:i}
+\item \makeatletter \input{qftest5-fillinqiie4.parametri}\makeatother
+ \FPsv [2]{a/c}
+\item\ref{e:4-file:test11-q:i}
+\item\ref{e:4-file:test11-q:ii}
+\par\end{enumerate}\vspace{3ex}
+\begin{enumerate}
+\item\ref{e:4-file:test13-q:iii}
+\item\ref{e:4-file:test12-q:iii}
+\par\end{enumerate}\vspace{3ex}
+\end{minipage}
diff --git a/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.tex b/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.tex
new file mode 100644
index 0000000000..3b57a2dbd6
--- /dev/null
+++ b/macros/latex/contrib/esami/doc/examples/testA-xetex-sol.tex
@@ -0,0 +1,124 @@
+\documentclass[a4paper,italian]{article}
+ \usepackage{fixltx2e}
+ \usepackage{fontspec}
+ \XeTeXinputencoding utf8
+\usepackage[shuffle,xyz,pointsonright,solutions,quizsolutions,twocolumns]{esami}%%%%% TEMA
+
+% +=============================+
+% | DEFINITIONS |
+% +=============================+
+
+\def\examname{The name of the exam}
+\def\numcompiti{4}%%% The number of the versions
+\date{2022/01/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
+\def\Data{\longdate}%%% or \shortdate: the date in the heading
+%\def\cartella{pop}%%% The folder where are the exercises: by default the current folder%
+%\def\Acapo{\newpage}
+\usepackage{babel}
+
+\renewcommand{\checkpoints}{ } % So we don't check if the total points of an exercise is correct
+
+\begin{document}
+\testversioni
+\pagestyle{esame}
+
+\whiledo{\thevers<\numcompiti}{\stepvers
+% +=============================+
+% | THE SEED |
+% +=============================+
+
+%\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
+%%% OR SOME OTHER LIKE
+\FPeval\seme{round(\thenomefile*(\thevers)+1-trunc(\thenomefile*(\thevers)/(2^31-1):0)*(2^31-1):0)}
+%\FPeval\seme{round(1+abs(\thenomefile/(\thevers)+sin(\thevers)*(\thevers)^(2)):0)}
+%\FPeval\semeex{round(\thenomefile+1-trunc(\thenomefile/(2^31-1):0)*(2^31-1):0)}
+\randomi=\seme
+
+\permuta
+% +=============================+
+% | STUFF DEFINED IN CFG FILE |
+% +=============================+
+
+\testa%%% the heading
+\istruzionii%%% some instructions
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\section*{Part One}
+
+
+\begin{test}[15]
+ \textsc{some exercises from 2 files}
+
+
+\begin{questions}
+%\ifluatex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else\ifxetex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else
+
+
+
+\begin{esdb}{mydb} %% some exercises from 2 files
+ \selectrandomlyn{3}{test2}
+ \selectrandomlyn{2}{test3}
+ \end{esdb}
+
+\esercizi{
+test14,
+test1,
+test4,
+test9,
+test5-fillin
+}
+
+\textsc{All the problems of a file}
+
+
+\selectallproblems[random]{test11}
+%\fi\fi
+
+\end{questions}
+
+\textsc{Some other questions}\\[5mm]
+
+
+\begin{questions} %% a new set of questions
+\esercizi{test12,
+test13
+}
+\end{questions}
+\end{test}
+
+\newpage
+\section*{Part two}
+\istruzioniii%%% Some other instructions
+
+\esercizi{problem1}
+\newpage
+An example of matching question.
+
+\esercizi{problem3-matching}
+
+\newpage
+An example of ``tabella'' question.
+
+\esercizi{problem2-tabella}
+\closevers
+\newpage %
+ %
+\setcounter{page}{1} %%% dvi
+}
+
+\end{document}
diff --git a/macros/latex/contrib/esami/doc/examples/testA-xetex.pdf b/macros/latex/contrib/esami/doc/examples/testA-xetex.pdf
index 30aad4bfd9..024e322ab1 100644
--- a/macros/latex/contrib/esami/doc/examples/testA-xetex.pdf
+++ b/macros/latex/contrib/esami/doc/examples/testA-xetex.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/examples/testA-xetex.tex b/macros/latex/contrib/esami/doc/examples/testA-xetex.tex
new file mode 100644
index 0000000000..7a6cf40946
--- /dev/null
+++ b/macros/latex/contrib/esami/doc/examples/testA-xetex.tex
@@ -0,0 +1,124 @@
+\documentclass[a4paper,italian]{article}
+ \usepackage{fixltx2e}
+ \usepackage{fontspec}
+ \XeTeXinputencoding utf8
+\usepackage[shuffle,xyz,pointsonright,nosolutions,noquizsolutions,twocolumns]{esami}
+
+% +=============================+
+% | DEFINITIONS |
+% +=============================+
+
+\def\examname{The name of the exam}
+\def\numcompiti{4}%%% The number of the versions
+\date{2022/01/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
+\def\Data{\longdate}%%% or \shortdate: the date in the heading
+%\def\cartella{pop}%%% The folder where are the exercises: by default the current folder%
+%\def\Acapo{\newpage}
+\usepackage{babel}
+
+\renewcommand{\checkpoints}{ } % So we don't check if the total points of an exercise is correct
+
+\begin{document}
+\testversioni
+\pagestyle{esame}
+
+\whiledo{\thevers<\numcompiti}{\stepvers
+% +=============================+
+% | THE SEED |
+% +=============================+
+
+%\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
+%%% OR SOME OTHER LIKE
+\FPeval\seme{round(\thenomefile*(\thevers)+1-trunc(\thenomefile*(\thevers)/(2^31-1):0)*(2^31-1):0)}
+%\FPeval\seme{round(1+abs(\thenomefile/(\thevers)+sin(\thevers)*(\thevers)^(2)):0)}
+%\FPeval\semeex{round(\thenomefile+1-trunc(\thenomefile/(2^31-1):0)*(2^31-1):0)}
+\randomi=\seme
+
+\permuta
+% +=============================+
+% | STUFF DEFINED IN CFG FILE |
+% +=============================+
+
+\testa%%% the heading
+\istruzionii%%% some instructions
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\section*{Part One}
+
+
+\begin{test}[15]
+ \textsc{some exercises from 2 files}
+
+
+\begin{questions}
+%\ifluatex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else\ifxetex
+%\esercizi{
+%test14,
+%test1,
+%test4,
+%test9
+%}
+%\else
+
+
+
+\begin{esdb}{mydb} %% some exercises from 2 files
+ \selectrandomlyn{3}{test2}
+ \selectrandomlyn{2}{test3}
+ \end{esdb}
+
+\esercizi{
+test14,
+test1,
+test4,
+test9,
+test5-fillin
+}
+
+\textsc{All the problems of a file}
+
+
+\selectallproblems[random]{test11}
+%\fi\fi
+
+\end{questions}
+
+\textsc{Some other questions}\\[5mm]
+
+
+\begin{questions} %% a new set of questions
+\esercizi{test12,
+test13
+}
+\end{questions}
+\end{test}
+
+\newpage
+\section*{Part two}
+\istruzioniii%%% Some other instructions
+
+\esercizi{problem1}
+\newpage
+An example of matching question.
+
+\esercizi{problem3-matching}
+
+\newpage
+An example of ``tabella'' question.
+
+\esercizi{problem2-tabella}
+\closevers
+\newpage %
+ %
+\setcounter{page}{1} %%% dvi
+}
+
+\end{document}
diff --git a/macros/latex/contrib/esami/doc/examples/testA.pdf b/macros/latex/contrib/esami/doc/examples/testA.pdf
index 16f1ca17ab..78f7234f83 100644
--- a/macros/latex/contrib/esami/doc/examples/testA.pdf
+++ b/macros/latex/contrib/esami/doc/examples/testA.pdf
Binary files differ
diff --git a/macros/latex/contrib/esami/doc/examples/testA.tex b/macros/latex/contrib/esami/doc/examples/testA.tex
index b468611935..0a443d7518 100644
--- a/macros/latex/contrib/esami/doc/examples/testA.tex
+++ b/macros/latex/contrib/esami/doc/examples/testA.tex
@@ -1,25 +1,21 @@
\documentclass[a4paper,italian]{article}
-\usepackage{ifxetex}%%NUOVO
-\usepackage{ifluatex}%%%NUOVO
+\usepackage{ifxetex}
+\usepackage{ifluatex}
-%\usepackage[shuffle,xyz,pointsonright,nosolutions,noquizsolutions,twocolumns]{esami}%%%%% TEMA
\ifluatex
\usepackage{luatextra} % also loads fixltx2e, fontspec, xunicode
- \usepackage{unicode-math}
- \setmathfont{Latin Modern Math}
\usepackage[utf8]{luainputenc}
\else\ifxetex
\usepackage{fixltx2e}
\usepackage{fontspec}
- \usepackage{unicode-math}
- \XeTeXinputencoding utf8
+ \XeTeXinputencoding utf8
\else
\usepackage{fixltx2e}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern,textcomp}
\fi\fi
-\usepackage[shuffle,xyz,pointsonright,nosolutions,noquizsolutions,twocolumns]{esami}%%%%% TEMA
+\usepackage[shuffle,xyz,pointsonright,nosolutions,noquizsolutions,twocolumns]{esami}
% +=============================+
% | DEFINITIONS |
@@ -27,12 +23,14 @@
\def\examname{The name of the exam}
\def\numcompiti{4}%%% The number of the versions
-\date{2014/07/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
+\date{2022/01/22}%%% THE DATE IN THE FORMAT YYYY/M/D or D/M/YYYY
\def\Data{\longdate}%%% or \shortdate: the date in the heading
%\def\cartella{pop}%%% The folder where are the exercises: by default the current folder%
%\def\Acapo{\newpage}
\usepackage{babel}
+\renewcommand{\checkpoints}{ } % So we don't check if the total points of an exercise is correct
+
\begin{document}
\testversioni
\pagestyle{esame}
@@ -63,6 +61,9 @@
\begin{test}[15]
+ \textsc{some exercises from 2 files}
+
+
\begin{questions}
%\ifluatex
%\esercizi{
@@ -79,39 +80,54 @@
%test9
%}
%\else
+
+
+
\begin{esdb}{mydb} %% some exercises from 2 files
\selectrandomlyn{3}{test2}
\selectrandomlyn{2}{test3}
\end{esdb}
\esercizi{
-%prova-colombia,
test14,
test1,
test4,
test9,
-test5-fillin,
+test5-fillin
}
-%%% all the problems of a file
+
+\textsc{All the problems of a file}
+
+
\selectallproblems[random]{test11}
%\fi\fi
\end{questions}
-Some other questions\\[5mm]
+\textsc{Some other questions}\\[5mm]
-%\begin{questions} %% a new set of questions
-%\esercizi{test12,
-%test13
-%}
-%\end{questions}
+\begin{questions} %% a new set of questions
+\esercizi{test12,
+test13
+}
+\end{questions}
\end{test}
+\newpage
\section*{Part two}
\istruzioniii%%% Some other instructions
\esercizi{problem1}
+\newpage
+An example of matching question.
+
+\esercizi{problem3-matching}
+
+\newpage
+An example of ``tabella'' question.
+
+\esercizi{problem2-tabella}
\closevers
\newpage %
%