diff options
author | Karl Berry <karl@freefriends.org> | 2018-05-07 21:16:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-05-07 21:16:27 +0000 |
commit | 399edc70fe9561ba35bc7430366119ef3a11e27f (patch) | |
tree | 076b5ced6ae996675c7c6afad9670428fd3a7554 /Master/texmf-dist/tex/latex/esami | |
parent | d1d53570fa0c8c761ea05cb385f1312faad7e41d (diff) |
esami (7may18)
git-svn-id: svn://tug.org/texlive/trunk@47639 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/esami')
-rw-r--r-- | Master/texmf-dist/tex/latex/esami/esami.sty | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/esami/esami.sty b/Master/texmf-dist/tex/latex/esami/esami.sty index 9fa8271c92b..8d1e7e445ed 100644 --- a/Master/texmf-dist/tex/latex/esami/esami.sty +++ b/Master/texmf-dist/tex/latex/esami/esami.sty @@ -42,9 +42,12 @@ % Version 2.4 % 2018/02/10 % Documentation corrected. +% Version 2.5 +% 2018/05/06 +%Corrected a misprint in the code. Improved the selection of random exercises. \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{esami} - [2018/02/10 v2.4 An Exam Construction Package] + [2018/05/06 v2.5 An Exam Construction Package] % +=============================+ % | THE OPTIONS | @@ -945,6 +948,7 @@ \FPeval\restotrentasei{round(\thevers+\thenomefile+1+base\nome-trunc((\thevers+\thenomefile+base\nome)/36:0)*36:0)}}{ \FPeval\restotrentasei{round(1+\thenomefile+1+base\nome-trunc((1+\thenomefile+base\nome)/36:0)*36:0)} } +\randomi=\number\old@rando %%% AGGIUNTO 2018/04/28 per giro sbagliato \ifcase\@probN\or \def\j@n{1}%%% just one variant \or%%% 2 variants @@ -1681,6 +1685,8 @@ \def\prendiv#1#2#3#4#5#6{\ifcase\restotrenta\or \scegliv{#1}{#5}{#3}{#2}{#4}{#6}\or% \scegliv{#2}{#3}{#5}{#1}{#4}{#6}\or% +\scegliv{#1}{#4}{#5}{#3}{#2}{#6}\or% +\scegliv{#5}{#3}{#1}{#4}{#2}{#6}\or% \scegliv{#3}{#1}{#4}{#5}{#2}{#6}\or% \scegliv{#4}{#2}{#3}{#5}{#1}{#6}\or% \scegliv{#5}{#1}{#2}{#4}{#3}{#6}\or% @@ -1689,20 +1695,18 @@ \scegliv{#3}{#4}{#1}{#2}{#5}{#6}\or% \scegliv{#4}{#5}{#1}{#3}{#2}{#6}\or% \scegliv{#5}{#3}{#4}{#1}{#2}{#6}\or% +\scegliv{#3}{#1}{#4}{#2}{#5}{#6}\or% \scegliv{#4}{#1}{#5}{#3}{#2}{#6}\or% \scegliv{#1}{#4}{#3}{#2}{#5}{#6}\or% \scegliv{#2}{#5}{#1}{#4}{#3}{#6}\or% \scegliv{#5}{#2}{#4}{#1}{#3}{#6}\or% \scegliv{#4}{#5}{#3}{#1}{#2}{#6}\or% -\scegliv{#3}{#4}{#2}{#5}{#1}{#6}\or% -\scegliv{#3}{#1}{#4}{#2}{#5}{#6}\or% \scegliv{#1}{#5}{#2}{#3}{#4}{#6}\or% \scegliv{#5}{#4}{#3}{#2}{#1}{#6}\or% -\scegliv{#1}{#4}{#5}{#3}{#2}{#6}\or% -\scegliv{#5}{#3}{#1}{#4}{#2}{#6}\or% -\scegliv{#1}{#2}{#4}{#3}{#5}{#6}\or% \scegliv{#3}{#2}{#4}{#1}{#5}{#6}\or% +\scegliv{#1}{#2}{#4}{#3}{#5}{#6}\or% \scegliv{#4}{#2}{#1}{#3}{#5}{#6}\or% +\scegliv{#3}{#4}{#2}{#5}{#1}{#6}\or% \scegliv{#2}{#3}{#5}{#4}{#1}{#6}\or% \scegliv{#3}{#1}{#2}{#5}{#4}{#6}\or% \scegliv{#5}{#2}{#4}{#3}{#1}{#6}\or% @@ -1719,13 +1723,14 @@ \sceglivi{#3}{#4}{#5}{#6}{#1}{#2}{#7}\or% \sceglivi{#1}{#3}{#6}{#4}{#2}{#5}{#7}\or% \sceglivi{#4}{#2}{#3}{#1}{#6}{#5}{#7}\or% -\sceglivi{#3}{#1}{#4}{#5}{#6}{#2}{#7}\or% -\sceglivi{#1}{#6}{#2}{#4}{#5}{#3}{#7}\or% +\sceglivi{#6}{#4}{#2}{#1}{#5}{#3}{#7}\or% +\sceglivi{#5}{#3}{#2}{#4}{#1}{#6}{#7}\or% \sceglivi{#2}{#5}{#4}{#1}{#3}{#6}{#7}\or% \sceglivi{#3}{#1}{#6}{#2}{#4}{#5}{#7}\or% \sceglivi{#2}{#1}{#3}{#5}{#4}{#6}{#7}\or% -\sceglivi{#5}{#1}{#3}{#4}{#2}{#6}{#7}\or% +\sceglivi{#5}{#2}{#3}{#4}{#1}{#6}{#7}\or% \sceglivi{#1}{#3}{#6}{#5}{#4}{#2}{#7}\or% +\sceglivi{#6}{#1}{#5}{#4}{#3}{#2}{#7}\or% \sceglivi{#3}{#2}{#5}{#4}{#1}{#6}{#7}\or% \sceglivi{#1}{#4}{#3}{#2}{#6}{#5}{#7}\or% \sceglivi{#4}{#6}{#2}{#5}{#1}{#3}{#7}\or% @@ -1734,8 +1739,7 @@ \sceglivi{#4}{#1}{#2}{#6}{#3}{#5}{#7}\or% \sceglivi{#1}{#6}{#5}{#4}{#2}{#3}{#7}\or% \sceglivi{#5}{#4}{#6}{#3}{#1}{#2}{#7}\or% -\sceglivi{#6}{#1}{#5}{#3}{#2}{#4}{#7}\or% -\sceglivi{#6}{#1}{#5}{#4}{#3}{#2}{#7}\or% +\sceglivi{#6}{#5}{#1}{#3}{#2}{#4}{#7}\or% \sceglivi{#5}{#1}{#4}{#3}{#2}{#6}{#7}\or% \sceglivi{#2}{#3}{#4}{#6}{#5}{#1}{#7}\or% \sceglivi{#4}{#2}{#6}{#1}{#3}{#5}{#7}\or% @@ -1750,8 +1754,8 @@ \expandafter\def\csname #8vi\endcsname{#6}\expandafter\def\csname #8vii\endcsname{#7}} \def\prendivii#1#2#3#4#5#6#7#8{\ifcase\restotrenta\or% \sceglivii{#5}{#7}{#1}{#4}{#6}{#3}{#2}{#8}\or% -\sceglivii{#1}{#5}{#2}{#6}{#7}{#4}{#3}{#8}\or% \sceglivii{#6}{#3}{#4}{#2}{#1}{#5}{#7}{#8}\or% +\sceglivii{#2}{#5}{#1}{#6}{#7}{#4}{#3}{#8}\or% \sceglivii{#1}{#2}{#7}{#5}{#3}{#4}{#6}{#8}\or% \sceglivii{#5}{#6}{#4}{#1}{#7}{#3}{#2}{#8}\or% \sceglivii{#6}{#4}{#1}{#5}{#3}{#2}{#7}{#8}\or% @@ -1759,25 +1763,25 @@ \sceglivii{#7}{#2}{#4}{#6}{#5}{#3}{#1}{#8}\or% \sceglivii{#3}{#4}{#7}{#2}{#6}{#1}{#5}{#8}\or% \sceglivii{#4}{#5}{#6}{#7}{#3}{#2}{#1}{#8}\or% -\sceglivii{#3}{#6}{#7}{#4}{#1}{#2}{#5}{#8}\or% \sceglivii{#5}{#7}{#4}{#3}{#2}{#1}{#6}{#8}\or% +\sceglivii{#3}{#6}{#7}{#4}{#1}{#2}{#5}{#8}\or% \sceglivii{#1}{#2}{#6}{#7}{#5}{#3}{#4}{#8}\or% \sceglivii{#6}{#1}{#4}{#3}{#7}{#2}{#5}{#8}\or% \sceglivii{#3}{#4}{#5}{#1}{#6}{#7}{#2}{#8}\or% -\sceglivii{#5}{#1}{#4}{#3}{#2}{#6}{#7}{#8}\or% \sceglivii{#7}{#6}{#1}{#4}{#3}{#5}{#2}{#8}\or% -\sceglivii{#2}{#4}{#7}{#3}{#5}{#1}{#6}{#8}\or% +\sceglivii{#5}{#1}{#4}{#3}{#2}{#6}{#7}{#8}\or% \sceglivii{#6}{#5}{#2}{#1}{#3}{#7}{#4}{#8}\or% +\sceglivii{#2}{#4}{#7}{#3}{#5}{#1}{#6}{#8}\or% \sceglivii{#7}{#3}{#6}{#5}{#2}{#4}{#1}{#8}\or% \sceglivii{#4}{#2}{#3}{#6}{#5}{#7}{#1}{#8}\or% -\sceglivii{#1}{#3}{#4}{#2}{#7}{#6}{#5}{#8}\or% -\sceglivii{#4}{#5}{#6}{#3}{#1}{#7}{#2}{#8}\or% \sceglivii{#5}{#6}{#1}{#2}{#3}{#4}{#7}{#8}\or% +\sceglivii{#4}{#5}{#6}{#3}{#1}{#7}{#2}{#8}\or% \sceglivii{#1}{#3}{#5}{#4}{#2}{#7}{#6}{#8}\or% -\sceglivii{#2}{#7}{#3}{#5}{#6}{#1}{#4}{#8}\or% +\sceglivii{#2}{#3}{#7}{#5}{#6}{#1}{#4}{#8}\or% \sceglivii{#1}{#6}{#4}{#2}{#7}{#5}{#3}{#8}\or% \sceglivii{#7}{#5}{#2}{#4}{#1}{#3}{#6}{#8}\or% \sceglivii{#2}{#7}{#3}{#1}{#6}{#5}{#4}{#8}\or% +\sceglivii{#1}{#3}{#4}{#2}{#7}{#6}{#5}{#8}\or% \sceglivii{#3}{#5}{#1}{#6}{#2}{#4}{#7}{#8}\fi} %%% pseudorandom versions (permutations of 8 esercises) \def\scegliviii#1#2#3#4#5#6#7#8#9{\expandafter\def\csname #9i\endcsname{#1}\expandafter\def\csname #9ii\endcsname{#2}%% @@ -1787,31 +1791,31 @@ \scegliviii{#2}{#8}{#6}{#7}{#4}{#3}{#1}{#5}{#9}\or% \scegliviii{#8}{#5}{#1}{#3}{#7}{#6}{#4}{#2}{#9}\or% \scegliviii{#7}{#1}{#8}{#6}{#3}{#2}{#5}{#4}{#9}\or% -\scegliviii{#1}{#3}{#7}{#5}{#6}{#4}{#2}{#8}{#9}\or% +\scegliviii{#6}{#3}{#7}{#5}{#1}{#4}{#2}{#8}{#9}\or% \scegliviii{#4}{#1}{#2}{#3}{#5}{#7}{#8}{#6}{#9}\or% \scegliviii{#3}{#8}{#7}{#1}{#6}{#4}{#5}{#2}{#9}\or% \scegliviii{#5}{#3}{#8}{#6}{#1}{#7}{#2}{#4}{#9}\or% \scegliviii{#8}{#6}{#3}{#4}{#7}{#2}{#5}{#1}{#9}\or% -\scegliviii{#6}{#3}{#8}{#7}{#5}{#1}{#4}{#2}{#9}\or% +\scegliviii{#6}{#4}{#8}{#7}{#5}{#1}{#3}{#2}{#9}\or% \scegliviii{#3}{#2}{#7}{#5}{#4}{#6}{#1}{#8}{#9}\or% \scegliviii{#4}{#3}{#6}{#7}{#8}{#1}{#2}{#5}{#9}\or% \scegliviii{#3}{#7}{#5}{#2}{#4}{#8}{#6}{#1}{#9}\or% +\scegliviii{#4}{#8}{#7}{#3}{#2}{#1}{#6}{#5}{#9}\or% \scegliviii{#7}{#2}{#4}{#8}{#5}{#6}{#1}{#3}{#9}\or% \scegliviii{#1}{#7}{#2}{#3}{#4}{#5}{#6}{#8}{#9}\or% \scegliviii{#7}{#1}{#8}{#5}{#2}{#4}{#3}{#6}{#9}\or% -\scegliviii{#1}{#5}{#3}{#4}{#8}{#2}{#6}{#7}{#9}\or% +\scegliviii{#8}{#3}{#5}{#4}{#1}{#2}{#6}{#7}{#9}\or% \scegliviii{#5}{#1}{#8}{#3}{#4}{#6}{#7}{#2}{#9}\or% \scegliviii{#4}{#7}{#2}{#5}{#1}{#8}{#6}{#3}{#9}\or% \scegliviii{#5}{#3}{#1}{#6}{#2}{#4}{#8}{#7}{#9}\or% -\scegliviii{#1}{#2}{#7}{#3}{#4}{#8}{#5}{#6}{#9}\or% +\scegliviii{#2}{#1}{#7}{#3}{#4}{#8}{#5}{#6}{#9}\or% \scegliviii{#1}{#8}{#6}{#4}{#5}{#2}{#3}{#7}{#9}\or% \scegliviii{#3}{#1}{#8}{#5}{#4}{#7}{#6}{#2}{#9}\or% -\scegliviii{#6}{#5}{#4}{#1}{#3}{#2}{#7}{#8}{#9}\or% \scegliviii{#5}{#4}{#3}{#2}{#6}{#7}{#8}{#1}{#9}\or% +\scegliviii{#6}{#5}{#4}{#1}{#3}{#2}{#7}{#8}{#9}\or% \scegliviii{#1}{#6}{#2}{#8}{#3}{#5}{#7}{#4}{#9}\or% -\scegliviii{#5}{#8}{#3}{#4}{#7}{#6}{#1}{#2}{#9}\or% \scegliviii{#2}{#7}{#8}{#1}{#4}{#3}{#5}{#6}{#9}\or% -\scegliviii{#4}{#8}{#7}{#3}{#2}{#1}{#6}{#5}{#9}\or% +\scegliviii{#5}{#8}{#3}{#4}{#7}{#6}{#1}{#2}{#9}\or% \scegliviii{#7}{#4}{#2}{#5}{#1}{#6}{#8}{#3}{#9}\or% \scegliviii{#2}{#3}{#7}{#1}{#6}{#5}{#4}{#8}{#9}\fi} |