summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex')
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/esami-doc-en.tex112
1 files changed, 69 insertions, 43 deletions
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 80e2e2e7cd2..f12342dd08b 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
@@ -10,6 +10,7 @@
\usepackage[braces]{colordoc}
\usepackage[T1]{fontenc}
\usepackage{calc}
+\usepackage{hologo}
%\usepackage{textcomp}
\usepackage{lmodern}
\usepackage{comandi}
@@ -70,7 +71,8 @@
%
\changes{Version 1.0}{2013/03/08}{First version released to CTAN}
-\changes{Version 1.1}{2013/12/09}{Inserted the dependance on the package \texttt{environ} to remove some errors in the \LaTeX\ compilation. Removed the dependance on the package \texttt{icomma} in the italian localization file es-italian.lng because of the introduction of new features in the package \texttt{babel} for the Italian langaguage (macro \texttt{IntelligentComma}).}
+\changes{Version 1.1}{2013/12/09}{Inserted the dependance on the package \texttt{environ} to remove some errors in the \LaTeX\ compilation. Removed the dependance on the package \texttt{icomma} in the italian localization file es-italian.lng because of the introduction of new features in the package \texttt{babel} for the Italian language (macro \texttt{IntelligentComma}).}
+\changes{Version 2.0}{2015/02/25}{Eliminated the dependance on \texttt{pstricks}. Modified the use of \emph{fill-in} questions. Inserted the possibility to extract more than one variant from a file. Now it is possible to view the solutions in tests. Modified the visualization of decimal places in command \texttt{FPsv}. Modified the definition of \texttt{FPval} to allow the use of decimal places. Modified the algorithm of choice of a variant of an exercise, now completely deterministic. Added the command \texttt{Acapo}. Added the serbian localization (latin alphabet). The compilation produces a new file with the list of the chosen exercises.}
\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}}
@@ -80,14 +82,14 @@
\fontshape\updefault
\footnotesize}
\GetFileInfo{esami.sty}
-\def\fileversion{versione 1.1}
-\def\filedate{2013/12/09}
+\def\fileversion{version 2.0}
+\def\filedate{2015/02/25}
\title{Package esami\thanks{This document
refers to the package \textsf{esami}~\fileversion, with date \filedate.}}
\author{Grazia Messineo <grazia.messineo@unicatt.it> \\ Salvatore Vassallo <salvatore.vassallo@unicatt.it>}
-\newcommand{\nuovo}[1]{\marginpar{\raggedleft{ \footnotesize{\textsf{Nuovo #1}}}}}
+\newcommand{\nuovo}[1]{\marginpar{\raggedleft{ \footnotesize{\textsf{New #1}}}}}
\maketitle
@@ -104,35 +106,37 @@ Package \texttt{esami} (i.e. exams in Italian) was created to generate texts and
The package allows to write various type of exercises (multiple choiche questions with answers varying in random order, with closed or open answer, \emph{matching}, problems, and so on). Questions 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, as far as we know, it is the only package which allows to do this just using \LaTeX\ ad not auxiliary programs.
-The development of the package has begun in 2008 with the aim of unify and extend some properties of the packages \pkgname{exerquiz} e \pkgname{eqexam} by D.P. Story \cite{acrotex} and \pkgname{probsoln} by N.Talbot \cite{probsoln}.
+The development of the package has begun in 2008 (\cite{esami}, \cite{tug}) with the aim of unify and extend some properties of the packages \pkgname{exerquiz} e \pkgname{eqexam} by D.P. Story \cite{acrotex} and \pkgname{probsoln} by N.Talbot \cite{probsoln}.
\section{Required packages}
-Package \pkgname{esami} depends on some other non standard packages:
+Package \pkgname{esami} depends on some other non standard packages\footnote{The complete list of the packages used in a normal compilation of an exam is: etex, graphicx, enumerate, fp, currfile, array, environ, ifthen, xargs, xkeyval, multicol, amssymb, amsfonts, xcolor, babel, etoolbox, icomma, numprint, amsmath, fontenc, inputenc, lmodern. Obviously, every loaded package can have other dependencies.}:
\begin{enumerate}
\item \pkgname{fp}: for mathematical operations;
\item \pkgname{currfile}: to obtain the file and folder names;
\item \pkgname{xargs}: to have more than one optional parameter;
-\item \pkgname{pstricks}, \pkgname{pstricks-add} e \pkgname{auto-pst-pdf}: for graphics (our choice was \pkgname{pstricks} instead of other similar packages because we are used to it);
+\item \pkgname{environ}: to transform commands in environments;
\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{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;
+%\item \pkgname{icomma}: from \pkgname{ws} package, for a correct format of commas;
\item \pkgname{eurosym}: (optional) to use the euro symbol in Financial Mathematics exercises;
-\item \pkgname{icomma}: from the package \pkgname{ws} for a correct formatting of commas. This package can be substituted, for the Italian language, by the macro \cmd{\IntelligentComma} of the package \pkgname{babel}: this is the default option in the italian localization file \texttt{es-italian.lng} and can be modified by commenting the macro \cmd{\IntelligentComma} (or by using the macro \cmd{\NoIntelligentComma}).
+\item \pkgname{icomma}: from the package \pkgname{ws} for a correct formatting of commas. This package can be substituted, for the Italian language, by the macro \cmd{\IntelligentComma} of the package \pkgname{babel}: this is the default option in the italian localization file \texttt{es-italian.lng} and can be modified by commenting the macro \cmd{\IntelligentComma} (or by using the macro \cmd{\NoIntelligentComma});\nuovo{vers. 1.1}
+\item \pkgname{pstricks, pstricks-add} and \pkgname{auto-pst-pdf} or \pkgname{tikz} or another package for graphics.\nuovo{vers. 2.0}
\end{enumerate}
-All these packages are available both in \TeX Live and in Mik\TeX.
+All these packages are available both in \TeX Live and in MiK\TeX.
\section{Installation}
-The package contains the file {\tt esami.sty}, some configuration files {\tt *.cfg}, 3 templates for the compilation and the documentation files. File {\tt sty} and files {\tt cfg} and {\tt lng} must be copied in a folder where \LaTeX\ can find them (i.e. {\tt texmf-local/tex/latex/esami}). An update of the database must be run.
+The package contains the file {\tt esami.sty}, some configuration files {\tt *.cfg}, the localization files, 3 templates for the compilation and the documentation files. File {\tt sty} and files {\tt cfg} and {\tt lng} must be copied in a folder where \LaTeX\ can find them (i.e. {\tt texmf-local/tex/latex/esami}). An update of the database must be run.
\section{How to write an exam}
In this section we will see how to build an exam using the ``esami'' package.
\subsection{Preamble}
\begin{verbatim}
-\documentclass[<language>]{article}
+\documentclass[language]{article}
\usepackage[<options>]{esami}
\end{verbatim}
Options are discussed in section \ref{sec:opzioni}.
@@ -145,12 +149,12 @@ Command \cmd{\date} is the standard \LaTeX\ command, but the date must be writte
\subsection{The document}
\begin{verbatim}
\begin{document}
-\date{\Data} \pagestyle{esame}
-%% \immediate\openout\sols=\thenomefile.sol.tex
+\pagestyle{esame}
+%\setcounter{vers}{m}
\end{verbatim}
- Command \cmd{\pagestyle} is defined in a configuration file (see section \ref{sec:cfg}) and defines headers and footers. The commented command is used in the solutions file to generate another file which contains the string of the correct answers to MCQ.
+ Command \cmd{\pagestyle} is defined in a configuration file (see section \ref{sec:cfg}) and defines headers and footers. The commented command \cmd{\setcounter}\{vers\}\{$m$\} is used, jointly to the command \cmd{\numcompiti} with inside a number $n$ (greater than $m$), to generate the versions from $m+1$ to $n$.
\begin{verbatim}
-\whiledo{\thevers<\numcompiti}{\stepcounter{vers}
+ \whiledo{\thevers<\numcompiti}{\stepvers
\end{verbatim}
the routine for the compilation of variants begins here and it will end at the end of document.
\begin{verbatim}
@@ -159,35 +163,36 @@ the routine for the compilation of variants begins here and it will end at the e
\end{verbatim}
generates the seed for the randomization process and assigns it also to \cmd{\randomi}.
\begin{verbatim}
-%%\immediate\write\sols{\string\begin{minipage}{.33\string\textwidth}
-\string\large\string\textbf{Solution of Version n. \thevers}}
+\permuta
\testa
\istruzionii
\end{verbatim}
- \cmd{\testa}, \cmd{\istruzionii} are defined in the configuration file and contain the instructions for the heading and the instructions for the exam, while the commented command generates the string of the correct answers in the solutions file.
+ \cmd{\testa}, \cmd{\istruzionii} are defined in the configuration file and contain the instructions for the heading and the instructions for the exam, while the macro \cmd{\permuta} allows the randomization of exercises order.
\begin{verbatim}
\begin{test}[points]
\begin{questions}
\esercizi{test1,test2,test3,test4}
+\begin{esdb}{dbone}
+ \selectrandomlyn{2}{dbtest1}
+\selectrandomlyn{4}{dbtest2}
+\end{esdb}
\end{questions}
\end{test}
-%%\immediate\write\sols{\string\par\string\end\string{enumerate\string}\string\end{minipage}
-%% \string\vspace{1.5cm}}
\end{verbatim}
-Here we define an environment for a test with (usually) MCQ. The command \cmd{\esercizi} chooses randomly the exercises from the files written in it and scrambles them. As before, the commented commands are used in the solutions file to generate the string of the correct answers.
+Here we define an environment for a test with (usually) MCQ. The command \cmd{\esercizi} chooses randomly the exercises from the files written in it and scrambles them, the environment \envname{esdb} defines a virtual database of exercises in which they are put by the command \cmd{\selectrandomlyn}.
\begin{verbatim}
\esercizi{problema1, problema2}
\end{verbatim}
chooses between two exercises with open answer.
\begin{verbatim}
-\setcounter{page}{1}
+\closevers
}
-%%\immediate\closeout\sols
-%%\stringasol
+%%\def\stringasol{}
\end{document}
\end{verbatim}
-It ends the routine for the compilation and closes the string of correct answers in the solution file.
+It ends the routine for the compilation. The macro \verb+\def\stringasol{}+ is used to avoid the generation of the string of correct answers in the solution file, if you don't want it.
+The compilation produces a pdf file with all the desired variants. The compilation of the solutions file produces also another file, namely \texttt{filename-sol.loe} (loe = list of exercises) which contains the labels assigned to the chosen exercises, to identify them: each chosen exercise is identified by a string such as \emph{e:number of version -file:name of file-q:number of question in roman digits}. \nuovo{vers. 2.0}
\section{Package options}\label{sec:opzioni}
The package can be loaded with the usual command
@@ -199,16 +204,17 @@ The package can be loaded with the usual command
\item \optname{pointsonright}: it is a boolean option that generates a little box on the right of the page with the score of the exercise;
\item \optname{nosolutions}: with this option the exam is generated without solutions (default);
\item \optname{solutions}: it generates the solutions file;
- \item \optname{solutionsonly}: it generates a file with the solutions only if the environment \envname{domanda} is used;
+ \item \optname{noquizsolutions}: it generates the test without solutions in MCQ;\nuovo{vers. 2.0}
+ \item \optname{quizsolutions}: it generates the test with the solutions in MCQ;\nuovo{vers. 2.0}
\item \optname{prova}: it is the Italian word for trial. Compiling the file \verb|totale-versioni| with this option, a PDF file is generated with all the variants of an exercise; automatically the correct answers of MCQ and the solutions of the exercises are shown;
\item \optname{param}: with this option, used only in conjunction with the option \optname{prova}, the versions of the exercise are printed in parametric form, moreover it shows the range of variation of the parameters;
\item \optname{correzione}: it is the Italian word for correction. It can be used only with the option \optname{prova}. It prints only the text of all the exercises, without solution;
- \item \optname{fillb}: this option is necessary in order to have the correct answers in the string of solutions if there are exercises of \verb|fillin| type;
+ \item \optname{fillb}: it is an old option not anymore used, it remains for compatibility with old versions; \nuovo{vers. 2.0}
\item \optname{twocolumns}: with this option the multiple choice questions are printed in two columns;
\item \optname{sansserif}: a \textit{sans serif} font is used.
- \item \optname{autopston} e \optname{autopstoff}: both these options load the package \pkgname{auto-pst-pdf} but the second one with the option \optname{off}; in this way it is possible to compile the file directly with PDF\LaTeX\ also if the exercises contain graphics in \pkgname{pstricks}, the graphics package we use. With the first one the images are generated and included in the document, while the second one does not generate the images but includes them if they exist.\VerbatimFootnotes
-\footnote{The package \pkgname{auto-pst-pdf} requires PDF\LaTeX\ to be called with the \texttt{shell-escape} (in \TeX Live) or \texttt{write18} (in MiK\TeX) option}.
-\item {\optname{language}}: it reads the localisation file es-language.lng (see \ref{sec:lngsec:lng}). In this file there are the translations of the labels (exercise, solution, \dots), of the error messages, of the headings contained in the file (\texttt{esami-xyz.cfg}). By default Italian language is chosen. Since these language options have the same name of the languages in \pkgname{babel} it's possible to put the option in \cmd{\documentclass}.
+ \item \optname{autopston} e \optname{autopstoff}: both these options load the packages \pkgname{pstricks}, \pkgname{pstricks-add} and \pkgname{auto-pst-pdf} but the second one with the option \optname{off}; in this way it is possible to compile the file directly with pdf\LaTeX\ also if the exercises contain graphics in \pkgname{pstricks}, the graphics package we use. With the first one the images are generated and included in the document, while the second one does not generate the images but includes them if they exist.\VerbatimFootnotes
+\footnote{The package \pkgname{auto-pst-pdf} requires pdf\LaTeX\ to be called with the \texttt{shell-escape} (in \TeX Live) or \texttt{write18} (in MiK\TeX) option}.
+\item {\optname{language}}: it reads the localisation file es-language.lng (see \ref{sec:lng}). In this file there are the translations of the labels (exercise, solution, \dots), of the error messages, of the headings contained in the file (\texttt{esami-xyz.cfg}). By default Italian language is chosen. Since these language options have the same name of the languages in \pkgname{babel} it's possible to put the option in \cmd{\documentclass}.
\end{itemize}
@@ -236,7 +242,7 @@ The environment is created by the command
\end{test}
\end{verbatim}
\DescribeMacro{points}
-The optional parameter \oarg{points} must be an integer number greater or equal to 1, which is the total number of points given to the whole group of questions.
+The optional parameter \oarg{points} represents the total number of points given to the whole group of questions.
\DescribeEnv{questions}
The questions of each group, in the master file, are enclosed in the environment \emph{questions} which is a modified version of the environment with the same name in the package \pkgname{exerquiz}:
@@ -260,11 +266,11 @@ It is possibile to insert in a \envname{test} environment more than one \envname
\end{verbatim}
\end{esempio}
\DescribeMacro{\esercizi}
-Inside this environment, questions are loaded by the command \cmd{\esercizi} (exercises in Italian):
+Inside this environment, questions are ``loaded'' in two ways: with the environment \envname{esdb} which will be described later, or with the command \cmd{\esercizi} (exercises in Italian):
\begin{verbatim}
\esercizi{name of source file 1, name of source file 2,...}
\end{verbatim}
-The mandatory parameter is the name of each exercise you want to insert into the test, separated by a comma\footnote{We will describe other commands for loading the exercises in subsection \ref{list}.}.
+The mandatory parameter is the name of each exercise you want to insert into the test, separated by a comma\footnote{We will describe other similar commands for loading the exercises in subsection \ref{list}.}.
It is possibile both to insert all the exercises in a unique command and to use more than one command \cmd{\esercizi} or \cmd{\estraies} (see \ref{estraies}).\label{duecolonne}
This is useful for example if you want exercises from two different subsets (5 exercises on limits chosen among 7 and 3 exercises on derivatives chosen among 5) or if you want to have some exercises on two columns and other on one column, for a better layout of the page. In this case you must precede the part on two columns with
@@ -281,6 +287,16 @@ This is useful for example if you want exercises from two different subsets (5 e
\end{esempio}
In this way, exercises \texttt{es1,es2,es3} are typeset on two columns, while exercises \texttt{es4,es5,es6} are typeset on one column.
+\DescribeEnv{esdb}
+\DescribeMacro{selectrandomlyn}
+
+The environment \envname{esdb}\marg{nome db} defines a virtual database of exercises named \emph{nome db} (the name of the database \textbf{must} be different from the name of every other file of exercises, of other databases and from the name given to the master file, because it is the name of a file written during the compilation). Within this environment, one or more exercises can be chosen with the commands \cmd{\selectrandomlyn}\marg{numero esercizi}\marg{nome file}, where \emph{nome file} is the name of the file from which exercises are extracted and \emph{numero esercizi} is the number of exercises to be extracted (if the number of exercises is ``all'' or is greater than the number of variants in the file, all the exercises are chosen)\nuovo{vers. 2.0}.
+
+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}.
+
+
In the file of the exercises, in
\cmd{\newproblem} you must write:
\begin{verbatim} \item \PTs{points}
@@ -321,6 +337,8 @@ introduces answers split on the specified number of columns. Answers will be ran
\item {\color{blue}{\cmd{\Ans1}}} introduces the correct answer
\item {\color{blue}{\cmd{\eFreeze}}} introduces (if desireded) one or more answers which will not be randomly shuffled.
\end{itemize}
+\DescribeEnv{solution}
+The environment \envname{solution} can be inserted \emph{after} the environment \envname{answers} and shows, using the option \optname{quizsolutions}, the solutions of the exercise.\nuovo{vers. 2.0}
\begin{esempio}
\begin{verbatim}
\newproblem{
@@ -408,12 +426,15 @@ We have defined other new kinds of exercise:
\paragraph{fillin:} \DescribeMacro{\fillin}
it is used to create exercises in which some parts of the text is left blank and must be filled by the student. It can also be used to create exercises with an open short answer. This kind of exercise is similar to the one introduced by D. P. Story in \pkgname{eqexam}.
+These exercises are introduced with a slightly different syntax and they are defined in the text by the command \cmd{\newfillinproblem} or by \cmd{\newproblem}\cmd{\fillinproblem}\texttt{\{text of the problem\}}. \nuovo{vers. 2.0}
The syntax is:\\
\cs{fillin}\verb+[+\meta{type}\verb+]{+\meta{width of blank}\verb+}{+\meta{answer}\verb+}+
The two mandatory parameters are the width of the blank space, expressed as a length, and the correct answer (text or number) that the student has to write: it will be printed only in the solutions.
The optional parameter \meta{type} defines the way in which the blank space is denoted: \texttt{u} (\emph{underlined}), the default, produces an underlined space, \texttt{b} (\emph{boxed}) produces a little box , \texttt{e} (\emph{empty}) produces an empty space.
In the blank space it is not possible to use the commands \cmd{\sempli} or \cmd{\semplix} (see Section \ref{sec:comandi}).
+
+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'').
@@ -460,6 +481,8 @@ The two lists are shuffled and then printed with the command \cmd{\matching}.
\end{minipage}
\end{esempio}
The solutions show the correct matching.
+
+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):
@@ -473,6 +496,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}.
\begin{esempio}
With the code
\begin{verbatim}
@@ -531,7 +555,7 @@ These commands are based on the package \pkgname{fp} \cite{fp}, which allows the
{\color{blue}{\cmd{\FPsetpar}\oarg{seed}\marg{parameter-name}\marg{first value}\marg{last value}\oarg{{excl-values}}}}.
The name of the random parameter will be\cs{param-name} and its range will be between \texttt{inf} and \texttt{sup} (included).
-The parameter will be an integer number.\footnote{Even if it is possible to define rational or (pseudo)real parameters, as in the package \pkgname{rangen} \cite{rangen}, we preferred to limit the choice to integer numbers and to obtain the other cases with operations on parameters}
+The parameter will be an integer number.\footnote{Even if it is possible to define rational or (pseudo)real parameters, as in the package \pkgname{rangen} \cite{rangen}, we preferred to limit the choice to integer numbers and to obtain the other cases with operations on parameters.}
The optional parameter \oarg{seed} is used to have a different seed for the generation of the random number. The default value is \cmd{\seme} (the Italian word for seed): it is defined in the preamble and it is based on the date of the exam and on the number of version.
It's possible to exclude one or more values from the choice (parameter \oarg{excl-values}). If the excluded values are more than one, they are enclosed in braces. The lower and the upper bounds (\marg{inf} and \marg{sup}, with \marg{inf} $<$ \marg{sup}) and the excluded values can be random parameters defined before. In order to satisfy the conditions, the generation of the random number is repeated many times: the maximum number of repetitions is given by the command \cmd{\maxLoopLimit}, by default $10$ (it can be redefined in the preamble of the document).
@@ -554,7 +578,7 @@ create two parameters, \cmd{\a} (which can be a random value between 2 and 10, e
You can work on the parameters defined with this command as on numbers and we have defined commands which allow to work on them showing both the numerical result and the operations in a parametric form.
\begin{itemize}
- \item {\color{blue}{\cmd{\FPsv}\oarg{decimal}\marg{operation}}}:\DescribeMacro{\FPsv}\ it is used to do operations (on numbers or parameters) obtaining or the numeric value with \meta{decimal} decimal places (by default 0 decimal places) or, with the option \optname{param} in the package, the typesetting of the operation (if you choose the option \optname{param} in the package \pkgname{esami}).
+ \item {\color{blue}{\cmd{\FPsv}\oarg{decimal}\marg{operation}}}:\DescribeMacro{\FPsv}\ it is used to do operations (on numbers or parameters) obtaining or the numeric value with \meta{decimal} decimal places (by default 0 decimal places), eliminating the useless zeroes or, with the option \optname{param} in the package, the typesetting of the operation (if you choose the option \optname{param} in the package \pkgname{esami}).
\begin{esempio}
\begin{center}
@@ -592,7 +616,7 @@ The fundamental characteristics of the command \cmd{\FPsv} are (in the examples,
\item {\color{blue}{\cmd{\FPval}\marg{name}\marg{operation}}}:\DescribeMacro{\FPval}\
it assigns to \marg{nome} the rounded value of the operation (it is the command \cmd{\FPeval} from \pkgname{fp}, modified) or it prints the operation if you choose the option \optname{param} in the package \pkgname{esami}, as
- con \cmd{\FPsv}.
+ with \cmd{\FPsv}. The result is given with the chosen number of decimal places, eliminating the useless zeroes.
\begin{esempio}
Let $k=2$. The code
\begin{verbatim}
@@ -618,6 +642,7 @@ If $k=1$:
\end{tabular}
\end{center}
\end{esempio}
+In the log file it is possible to see if and in which exercises the result of this operation is $1$ or $-1$ (see below).
\item {\color{blue}{\cmd{\semplix}\marg{num}\marg{den}}}:\DescribeMacro{\semplix}\ it simplifies a fraction where \marg{num} and \marg{den} can contain parameters, but where the result $1$ does not appear and the result $-1$ is shown like a minus sign ``$-$'' (for example it can be used before a $x$).
It works exactly as the command \cmd{\sempli}.
@@ -657,7 +682,7 @@ If the parameter $k$ is equal to $2$:
\end{tabular}
\end{center}
\end{esempio}
- \item {\color{blue}{\cmd\sempliz\marg{num}\marg{den}}}:\DescribeMacro{\sempliz}\ simplifies fractions that can assume the value $0$ (for example, in answers). While with the other commands the result $0$ gives an error and stops the compilation, with this command the value $0$ is written.
+ \item {\color{blue}{\cmd\sempliz\marg{num}\marg{den}}}:\DescribeMacro{\sempliz}\ simplifies fractions that can assume the value $0$ (for example, in answers). While with the other commands the result $0$ gives an \textbf{error} and stops the compilation, with this command the value $0$ is written.
It works exactly as the command \cmd{\sempli}.
\item {\color{blue}{\cmd{\simpsqrt}\marg{ind}\marg{rad}}}:\DescribeMacro{\simpsqrt}\ With this command it's possible to extract factors from radicals. With these factors is not possible to do other operations. The first mandatory parameter \marg{ind} is the index of the radical and can be parametric; the second one, \marg{rad} is the radicand and can be also a parameter or an operation (also in this case \cmd{\FPsv} must not be used inside it).
@@ -675,7 +700,7 @@ If $a$ is equal to $2$ and $b$ is equal to $1$
Besides the command \cmd{\esercizi} that we have already presented there are other commands to choose exercises, or, more in general, objects, from a list.
The first command allows to choose randomly $n-m$ elements of a list
-\DescribeMacro{\estrai}.\ The command \cmd{\estrai}\oarg{m}\marg{list}\marg{name} is the user command to extract the elements from the list \marg{list} excluding \oarg{m} of them. The chosen elements will have the name \cmd{\namei}, \cmd{\nameii}, \dots.
+\DescribeMacro{\estrai}.\ The command \cmd{\estrai}\oarg{m}\marg{list}\marg{name} is the user command to extract the elements from the list \marg{list} excluding \emph{m} of them. The chosen elements will have the name \cmd{\namei}, \cmd{\nameii}, \dots.
The elements of the list must be comma separated.
\begin{esempio}
@@ -688,11 +713,11 @@ The elements of the list must be comma separated.
With the command \cmd{\estraialfa[2]\{a,b,c,d\}\{alpha\}} you choose 2 elements from the set, preserving the alphabetical order, and these elements will be named \cmd{\alphai} and \cmd{\alphaii}.
\end{esempio}
-\DescribeMacro{\estraies} \label{estraies} The command \cmd{\estraies}\oarg{m}\marg{list}\marg{name} works as the command \cmd{\estrai}, but only on a list of exercises. Once the elements have been chosen, it prints them as the command \cmd{\esercizi}.
+\DescribeMacro{\estraies} \label{estraies} The command \cmd{\estraies}\oarg{m}\marg{list} works as the command \cmd{\estrai}, but only on a list of exercises. Once the elements have been chosen, it prints them as the command \cmd{\esercizi}.
\section{The auxiliary files}
\subsection{The localisation file}\label{sec:lng}
- The package has localisations in Italian (the default), UK English, US English, French, Spanish (thanks to Maria Hernandez Cifre), German (thanks to Kerstin von Kirschhausen), Greek (thanks to Sotiris Hasapis). Using greek language (and maybe other non latin localisations) it's necessary to load the packages \pkgname{fontenc}, \pkgname{inputenc} e \pkgname{babel} before the package \pkgname{esami}\footnote{The option \optname{greek} requires at this moment the option \optname{iso-8859-7} for the package \pkgname{inputenc}}. In this file one can also load some language dependent packages, such as \pkgname{numprint}, \pkgname{geometry}, etc. and there are the definitions of the commands \cmd{\shortdate} and \cmd{\longdate} to write the date.
+ The package has localisations in Italian (the default), UK English, US English, French, Spanish (thanks to Maria Hernandez Cifre), German (thanks to Kerstin von Kirschhausen), Serbian with latin alphabet (thanks to Dusko Latas), Greek (thanks to Sotiris Hasapis). Using greek language (and maybe other non latin localisations) it's necessary to load the packages \pkgname{fontenc}, \pkgname{inputenc} e \pkgname{babel} before the package \pkgname{esami}\footnote{The option \optname{greek} requires at this moment the option \optname{iso-8859-7} for the package \pkgname{inputenc}}. In this file one can also load some language dependent packages, such as \pkgname{numprint}, \pkgname{geometry}, etc. and there are the definitions of the commands \cmd{\shortdate} and \cmd{\longdate} to write the date.
\subsection{The configuration file}\label{sec:cfg}
The configuration file \texttt{esami-xyz.cfg} contains various definitions, i.e. the header (command \cmd{\testa}), the footer, the format for the solution file, the page style, the instructions for the exam.
\subsection{The \texttt{master} and \texttt{master-sol} files}
@@ -706,11 +731,12 @@ It is also possible to define the name of the parts in which the test is divided
\subsection{The \texttt{totale-versioni} file}\label{sec:totale}
The file \texttt{totale-versioni} is used to generate all the variants of an exercise. With this file the package has always the option \optname{prova} and you can use the option \optname{param} to generate the parametric version of exercises.
-Inside this file you should use only one command, \cmd{\def \textbackslash esercizio \{name\}}, that should contain the name of the exercise to compile. If you compile the parametric version, the parameters and their intervals are shown at the end of the exercise.
+Inside this file you should use only one command, \cmd{\def \textbackslash esercizio\{name\}}, that should contain the name of the exercise to compile. If you compile the parametric version, the parameters and their intervals are shown at the end of the exercise.
\section{Changelog}
\begin{description}
- \item[Version 1.0 (2013/03/08)]First version released to CTAN.
+ \item[Version 1.0 (2013/03/08)] First version released to CTAN.
\item[Version 1.1 (2013/12/09)] Inserted the dependance on the package \texttt{environ} to remove some errors in the \LaTeX\ compilation. Removed the dependance on the package \texttt{icomma} in the italian localization file es-italian.lng because of the introduction of new features in the package \texttt{babel} for the Italian langaguage (macro \texttt{IntelligentComma}).
+ \item[Version 2.0 (2015/02/25)] Eliminated the dependance on \pkgname{pstricks}. Modified the use of \emph{fill-in} questions. Inserted the possibility to extract more than one variant from a file. Now it is possible to view the solutions in tests. Modified the visualization of decimal places in command \cmd{\FPsv}. Modified the definition of \cmd{\FPval} to allow the use of decimal places. Modified the algorithm of choice of a variant of an exercise, now completely deterministic. Added the command \cmd{\Acapo}. Added the serbian localization (latin alphabet). The compilation produces a new file with the list of the chosen exercises.
\end{description}
\bibliographystyle{plain}