texlive[61596] Master/texmf-dist: esami (13jan22)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 13 21:58:25 CET 2022


Revision: 61596
          http://tug.org/svn/texlive?view=revision&revision=61596
Author:   karl
Date:     2022-01-13 21:58:24 +0100 (Thu, 13 Jan 2022)
Log Message:
-----------
esami (13jan22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/esami/README
    trunk/Master/texmf-dist/doc/latex/esami/VERSION
    trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA.pdf
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex
    trunk/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
    trunk/Master/texmf-dist/tex/latex/esami/esami.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex
    trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex

Modified: trunk/Master/texmf-dist/doc/latex/esami/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/README	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/README	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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 @@
 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

Modified: trunk/Master/texmf-dist/doc/latex/esami/VERSION
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/VERSION	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/VERSION	2022-01-13 20:58:24 UTC (rev 61596)
@@ -1 +1 @@
-VERSION 2.6 DATE=October 11, 2021
+VERSION 2.7 DATE=January 11, 2022

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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 @@
 \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 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 @@
 
 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 @@
 \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 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 @@
         \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}

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/esami-doc-it.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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 @@
 \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 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 @@
 
 %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 @@
 \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 @@
 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 @@
 	\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}

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem2-tabella.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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 @@
 \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 @@
 \begin{problem}[5]
 Complete the following table of derivatives:
 
+\begin{center}
 \begin{tabella}[1]{l}{r}
 Function & Derivative \cr
 \hline
@@ -31,5 +34,6 @@
 \hline
 $f(x)=\cos x $& $f'(x)=-\sin x$\cr
 \end{tabella}
+\end{center}
  \end{problem}
  }

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/problem3-matching.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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}
  }

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/test2.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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 @@
 
 \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 @@
 
 \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

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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}


Property changes on: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex-sol.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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}


Property changes on: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-luatex.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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,6 +81,9 @@
 %test9
 %}
 %\else
+
+
+
 \begin{esdb}{mydb} %% some exercises from 2 files
   \selectrandomlyn{3}{test2}
  \selectrandomlyn{2}{test3}
@@ -85,33 +90,45 @@
   \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                                                                            %
                                                                 %

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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}


Property changes on: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.sol.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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}


Property changes on: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex-sol.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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}


Property changes on: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA-xetex.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex	2022-01-13 20:58:24 UTC (rev 61596)
@@ -1,18 +1,14 @@
 \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}
@@ -19,7 +15,7 @@
         \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,6 +80,9 @@
 %test9
 %}
 %\else
+
+
+
 \begin{esdb}{mydb} %% some exercises from 2 files
   \selectrandomlyn{3}{test2}
  \selectrandomlyn{2}{test3}
@@ -85,33 +89,45 @@
   \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                                                                            %
                                                                 %

Modified: trunk/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
===================================================================
--- trunk/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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  %%

Modified: trunk/Master/texmf-dist/tex/latex/esami/esami.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/esami/esami.sty	2022-01-13 15:49:43 UTC (rev 61595)
+++ trunk/Master/texmf-dist/tex/latex/esami/esami.sty	2022-01-13 20:58:24 UTC (rev 61596)
@@ -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 at num{round((\fp at n/\fp at restoold):0)}%
 	\FPeval\fp at den{round((\fp at d/\fp at restoold):0)}%
-		\FPifneg\segnofrac{-}
+		\FPifneg\segnofrac{-\:}
 		\else{}
 		\fi
 	\ifthenelse{\fp at den=1}{%
@@ -547,27 +551,45 @@
 %========================================================%
 
 \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 at plo}{1}
 	\expandafter\edef\csname match at numi\number\i at sh\endcsname{(\Alph{match at plu})}
 	\vspace{2ex}
+	
 	\begin{tabular}{p{.05\textwidth}p{.40\textwidth}p{.01\textwidth}p{.40\textwidth}}
-	\underbar{\makebox[.5cm]{\match at ans@color{\csname match at numi\number\i at sh\endcsname}}}  & \csname match at qsti\number\i at sh\endcsname&&(\Alph{match at plo})\hspace{3mm}\csname match at ansi\number\i at sh\endcsname%\tabularnewline
-	\end{tabular}
+   \underbar{\makebox[.5cm]{\match at ans@color{\csname match at numi\number\i at sh\endcsname}}}  & \csname match at qsti\number\i at sh\endcsname&&(\Alph{match at plo})\hspace{3mm}\csname match at ansi\number\i at sh\endcsname%\tabularnewline
+	\end{tabular} 
+   %% ADD next line
+  % \vspace{2ex} \\
+   %%
  \advance\i at sh by-1
  \ifnum\i at sh > 0 \fi
  \fi



More information about the tex-live-commits mailing list.