diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex | 115 |
1 files changed, 115 insertions, 0 deletions
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 new file mode 100644 index 00000000000..5ac5a3bef05 --- /dev/null +++ b/Master/texmf-dist/doc/latex/esami/doc/examples/testA-sol.tex @@ -0,0 +1,115 @@ +\documentclass[a4paper,english]{article} + +\usepackage[shuffle,xyz,pointsonright,solutions,quizsolutions,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{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 | +% +=============================+ + +\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)} + +\randomi=\seme + +\permuta +% +=============================+ +% | STUFF DEFINED IN CFG FILE | +% +=============================+ + +\testa%%% the heading +\istruzionii%%% some instructions + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\section*{Part One} + + +\begin{test}[8] +\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 +} +%%% all the problems of a file +\selectallproblems[random]{test11} +\fi\fi + +\end{questions} + +Some other questions\\[5mm] + + +\begin{questions} %% a new set of questions +\esercizi{test12, +test13 +} +\end{questions} +\end{test} + +\section*{Part two} +\istruzioniii%%% Some other instructions + +\esercizi{problem1} +\closevers +\newpage % + % +\setcounter{page}{1} %%% dvi +} + +\end{document} |