summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-13 20:58:24 +0000
committerKarl Berry <karl@freefriends.org>2022-01-13 20:58:24 +0000
commita23370aa985dab90107baf2674cecce72e815d9e (patch)
treea9a6be6e5597cab7ba42f684846ba2ed464a1d65 /Master
parent755cccc747cfc4d674898392d645d05644aa2c8a (diff)
esami (13jan22)
git-svn-id: svn://tug.org/texlive/trunk@61596 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/esami/README6
-rw-r--r--Master/texmf-dist/doc/latex/esami/VERSION2
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.pdfbin481289 -> 480874 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex17
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.pdfbin489492 -> 488964 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex20
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex4
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex6
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex7
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.pdfbin65018 -> 115953 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex124
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.pdfbin55273 -> 91759 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex123
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.pdfbin211514 -> 257725 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex49
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.pdfbin61685 -> 68345 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex84
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex124
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.pdfbin52621 -> 58499 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex124
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA.pdfbin178754 -> 217098 bytes
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex52
-rw-r--r--Master/texmf-dist/doc/latex/esami/esami-xyz.cfg6
-rw-r--r--Master/texmf-dist/tex/latex/esami/esami.sty56
24 files changed, 723 insertions, 81 deletions
diff --git a/Master/texmf-dist/doc/latex/esami/README b/Master/texmf-dist/doc/latex/esami/README
index 0703530247b..c81c86eb439 100644
--- a/Master/texmf-dist/doc/latex/esami/README
+++ b/Master/texmf-dist/doc/latex/esami/README
@@ -1,6 +1,6 @@
-The esami package v. 2.6
+The esami package v. 2.7
For generation of texts and solutions of exams in LaTeX
-2021/10/11
+2022/01/11
File: README
Author: Grazia Messineo and Salvatore Vassallo
@@ -14,7 +14,7 @@ varying in random order, with closed or open answer, matching, problems, and so
of each group are randomly scrambled across the exam and variants of each exercise are chosen
randomly from a file which contains them all and.
-Copyright: (C) 2008--2021 Grazia Messineo & Salvatore Vassallo
+Copyright: (C) 2008--2022 Grazia Messineo & Salvatore Vassallo
Licence: LPPL
FILES IN DISTRIBUTION
diff --git a/Master/texmf-dist/doc/latex/esami/VERSION b/Master/texmf-dist/doc/latex/esami/VERSION
index 655ad0fa4f8..d312737d7ee 100644
--- a/Master/texmf-dist/doc/latex/esami/VERSION
+++ b/Master/texmf-dist/doc/latex/esami/VERSION
@@ -1 +1 @@
-VERSION 2.6 DATE=October 11, 2021
+VERSION 2.7 DATE=January 11, 2022
diff --git a/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.pdf b/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.pdf
index 017a1b28d86..d7dddc90ab3 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex b/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex
index 33e51db7cdc..05788c147f5 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.pdf b/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.pdf
index 8b32737ca20..b706c809d3f 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex b/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex
index d8e8363ee87..3ac7495edbd 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex
index 8929d2c84d7..efb14edddf7 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex
index ede6dddc74e..58bc22d4e8c 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex
index ff3f0dee602..d0f07b16b48 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.pdf b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.pdf
index 74b27a13434..69ba6afe984 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex
new file mode 100644
index 00000000000..3c4a9444c85
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.pdf b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.pdf
index 73b4e342a43..01b466cb05f 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex
new file mode 100644
index 00000000000..4f66e66f3de
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.pdf b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.pdf
index 49701900959..634f2950b0b 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex
index f0d8d42076d..53022389105 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.pdf b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.pdf
index fc64643065f..26b70dcc967 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex
new file mode 100644
index 00000000000..00cc5e002ca
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex
new file mode 100644
index 00000000000..3b57a2dbd6c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.pdf b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.pdf
index 30aad4bfd9a..024e322ab16 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex
new file mode 100644
index 00000000000..7a6cf409466
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/esami/doc/examples/testA.pdf b/Master/texmf-dist/doc/latex/esami/doc/examples/testA.pdf
index 16f1ca17ab9..78f7234f837 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA.pdf
+++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex b/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex
index b4686119350..0a443d7518e 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex
+++ b/Master/texmf-dist/doc/latex/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 %
%
diff --git a/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg b/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
index 0d766419791..13484158d25 100644
--- a/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
+++ b/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
@@ -1,11 +1,11 @@
%% Package `esami' to use with LaTeX 2e
-%% Copyright (C) 2008-2021 G. Messineo e S. Vassallo
+%% Copyright (C) 2008-2022 G. Messineo e S. Vassallo
%%
%% This is file `esami-xyz.cfg',
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% esami-xyz.cfg, 2021-10-11 %%
-%% Copyright (C) 2008-2021 G. Messineo e S. Vassallo %%
+%% esami-xyz.cfg, 2022-01-11 %%
+%% Copyright (C) 2008-2022 G. Messineo e S. Vassallo %%
%% %%
%% This program can be redistributed and/or modified %%
%% under the terms of the LaTeX Project Public License %%
diff --git a/Master/texmf-dist/tex/latex/esami/esami.sty b/Master/texmf-dist/tex/latex/esami/esami.sty
index 668bef76068..2968a0d60dd 100644
--- a/Master/texmf-dist/tex/latex/esami/esami.sty
+++ b/Master/texmf-dist/tex/latex/esami/esami.sty
@@ -2,8 +2,8 @@
%% This is file `esami.sty',
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% esami.sty package, 2021-10-11 %%
-%% Copyright (C) 2008-2021 G. Messineo e S. Vassallo %%
+%% esami.sty package, 2022-01-11 %%
+%% Copyright (C) 2008-2022 G. Messineo e S. Vassallo %%
%% %%
%% This program can be redistributed and/or modified %%
%% under the terms of the LaTeX Project Public License %%
@@ -47,10 +47,14 @@
%Corrected a misprint in the code. Improved the selection of random exercises.
% Version 2.6
% 2021/10/11
-%Corrected a misprint in the code. Improved the selection of random exercises.
+%Improved the spacing in \cmd{\FPsignpol}. Corrected the code to avoid some spourios spaces.
+% Version 2.7
+% 2022/01/11
+%Improved the spacing in \cmd{\sempli} and \cmd{\FPsignpol}. Corrected a misprint in the code.
+%
\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{esami}
- [2021/10/11 v2.6 An Exam Construction Package]
+ [2022/01/11 v2.7 An Exam Construction Package]
% +=============================+
% | THE OPTIONS |
@@ -428,7 +432,7 @@
}
\FPeval\fp@num{round((\fp@n/\fp@restoold):0)}%
\FPeval\fp@den{round((\fp@d/\fp@restoold):0)}%
- \FPifneg\segnofrac{-}
+ \FPifneg\segnofrac{-\:}
\else{}
\fi
\ifthenelse{\fp@den=1}{%
@@ -547,26 +551,44 @@
%========================================================%
\newcommand{\FPsignpol}[2] %%% adapted from code contributed by Hjalmar Basile NEW 2016/04/11
+%{\FPval\tempsign{#1}
+ %\ifthenelse{\equal{#2}{}}
+ %{%
+ %\ifnum \tempsign<0 {\:\sempli{\tempsign}{1}#2}
+ %\else
+ %\ifnum \tempsign>0{\:+\:\sempli{\tempsign}{1}#2}
+ %\else{}
+ %\fi
+ %\fi
+ %}
+ %{%
+ %\ifnum \tempsign<0 {\:\semplix{\tempsign}{1}#2\:}
+ %\else
+ %\ifnum \tempsign>0{\:+\:\semplix{\tempsign}{1}#2}
+ %\else{}
+ %\fi
+ %\fi
+ %}
+%} %% improved for spacing 2021/10/11
{\FPval\tempsign{#1}
\ifthenelse{\equal{#2}{}}
{%
\ifnum \tempsign<0 {\:\sempli{\tempsign}{1}#2}
\else
- \ifnum \tempsign>0{\:+\:\sempli{\tempsign}{1}#2}
- \else{}
- \fi
+ \ifnum \tempsign>0{+\:\sempli{\tempsign}{1}#2}
+ \else{}
+ \fi
\fi
}
{%
\ifnum \tempsign<0 {\:\semplix{\tempsign}{1}#2\:}
\else
- \ifnum \tempsign>0{\:+\:\semplix{\tempsign}{1}#2}
- \else{}
- \fi
+ \ifnum \tempsign>0{\:+\:\semplix{\tempsign}{1}#2}
+ \else{}
+ \fi
\fi
}
-} %% improved for spacing 2021/10/11
-
+} %% improved for spacing 2021/10/11
%========================================================%
% Commands adapted from exerquiz %
@@ -926,9 +948,13 @@
\addtocounter{match@plo}{1}
\expandafter\edef\csname match@numi\number\i@sh\endcsname{(\Alph{match@plu})}
\vspace{2ex}
+
\begin{tabular}{p{.05\textwidth}p{.40\textwidth}p{.01\textwidth}p{.40\textwidth}}
- \underbar{\makebox[.5cm]{\match@ans@color{\csname match@numi\number\i@sh\endcsname}}} & \csname match@qsti\number\i@sh\endcsname&&(\Alph{match@plo})\hspace{3mm}\csname match@ansi\number\i@sh\endcsname%\tabularnewline
- \end{tabular}
+ \underbar{\makebox[.5cm]{\match@ans@color{\csname match@numi\number\i@sh\endcsname}}} & \csname match@qsti\number\i@sh\endcsname&&(\Alph{match@plo})\hspace{3mm}\csname match@ansi\number\i@sh\endcsname%\tabularnewline
+ \end{tabular}
+ %% ADD next line
+ % \vspace{2ex} \\
+ %%
\advance\i@sh by-1
\ifnum\i@sh > 0 \fi
\fi