summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex')
-rw-r--r--Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex88
1 files changed, 63 insertions, 25 deletions
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 10518d63d81..ca2029d88ae 100644
--- a/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex
+++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA.tex
@@ -1,21 +1,37 @@
-\documentclass[a4paper,UKenglish]{article}
-\usepackage[shufflerandom,xyz,pointsonright,autopstoff,twocolumns,nosolutions]{esami}%%%%% TEMA
-\usepackage{lmodern,textcomp}
-\usepackage[utf8]{inputenc}
-\usepackage[T1]{fontenc}
+\documentclass[a4paper,english]{article}
+
+\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
+\else
+ \usepackage{fixltx2e}
+ \usepackage[T1]{fontenc}
+ \usepackage[utf8]{inputenc}
+ \usepackage{lmodern,textcomp}
+\fi\fi
+
% +=============================+
% | DEFINITIONS |
% +=============================+
\def\examname{The name of the exam}
-\def\numcompiti{4}%%% The number of the versions
-\date{2014/1/3}%%% THE DATE IN THE FORMAT AAAA/M/D
+\def\numcompiti{10}%%% The number of the versions
+\date{2014/07/22}%%% THE DATE IN THE FORMAT AAAA/M/D
\def\Data{\longdate}%%% or \shortdate: the date in the heading
%\def\cartella{d:/folder}%%% The folder where are the exercises: by default the current folder%
-
+%\def\Acapo{\newpage}
\begin{document}
\testversioni
\pagestyle{esame}
+
\whiledo{\thevers<\numcompiti}{\stepvers
% +=============================+
% | THE SEED |
@@ -41,37 +57,59 @@
\section*{Part One}
-
\begin{test}[8]
\begin{questions}
-\proofingsymbol{$\blacktriangleright$}%%% or something else
+\ifluatex
+\esercizi{
+test14,
+test1,
+test4,
+test9
+}
+\else\ifxetex
\esercizi{
+test14,
test1,
-test2,
-test3,
-test4}
-%test5-fillin}
-\end{questions}
-\begin{questions}
-\esercizi{test11,
-test12,
-test13,
+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
}
+%%% all the problems of a file
+\selectallproblems[random]{test11}
+\fi\fi
+
\end{questions}
-\end{test}
-\newpage
+Some other questions\\[5mm]
+
+
+\begin{questions} %% a new set of questions
+\esercizi{test12,
+test13
+}
+\end{questions}
+\end{test}
\section*{Part two}
-\istruzioniii%%% Some other instructons
+\istruzioniii%%% Some other instructions
-\esercizi{problem1,problem2-tabella,problem3-matching,problem4-fillin}
-\newpage
-%\esercizi{problem3-matching,problem4-fillin}
+\esercizi{problem1}
\closevers
\newpage %
%
\setcounter{page}{1} %%% dvi
}
+
\end{document}