summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-07-06 21:26:59 +0000
committerKarl Berry <karl@freefriends.org>2017-07-06 21:26:59 +0000
commit57d4d64524ef6e9e6589a8f2744a981649606ea0 (patch)
tree647a07c2bc4b76f4526c001593dbce339523a279 /Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
parent34144b78db92736c00a10650d04b947c56429504 (diff)
esami (6jul17)
git-svn-id: svn://tug.org/texlive/trunk@44758 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/esami/esami-xyz.cfg')
-rw-r--r--Master/texmf-dist/doc/latex/esami/esami-xyz.cfg114
1 files changed, 109 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg b/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
index 2a2faf91ba4..59a96af21a7 100644
--- a/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
+++ b/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
@@ -1,11 +1,11 @@
%% Package `esami' to use with LaTeX 2e
-%% Copyright (C) 2008-2016 G. Messineo e S. Vassallo
+%% Copyright (C) 2008-2017 G. Messineo e S. Vassallo
%%
%% This is file `esami-xyz.cfg',
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% esami-xyz.cfg, 2016-07-27 %%
-%% Copyright (C) 2008-2016 G. Messineo e S. Vassallo %%
+%% esami-xyz.cfg, 2017-07-01 %%
+%% Copyright (C) 2008-2017 G. Messineo e S. Vassallo %%
%% %%
%% This program can be redistributed and/or modified %%
%% under the terms of the LaTeX Project Public License %%
@@ -129,8 +129,8 @@ n. \thevers} -- %%
\sffamily \textbf{INSTRUCTIONS}
\begin{itemize}
\item Write here your instructions
- \item two
- \item three
+ \item two è con accento
+ \item three è à é ò ù
\end{itemize}}}
\def\istruzioniii{\setlength{\fboxsep}{1.5ex}\setlength{\fboxrule}{1.2pt}{\sffamily
@@ -143,6 +143,12 @@ n. \thevers} -- %%
%\immediate\write\sols{\string\vspace{5ex}}}
% }
+%%% THIS CODE IS TO CHECK the total score of exercises
+
+\ifluatex
+\else
+\ifxetex
+\else
\AtEndOfPackage{
\newdimen\punteggio %% NEW 2016/04/11 to check the total score of exercises
\setlength{\punteggio}{0pt}
@@ -161,6 +167,8 @@ n. \thevers} -- %%
\global\punteggio=0pt%
}
}
+\fi
+\fi
%%%% %%%%% HERE I GET RID OF THE MINIPAGE IN MULTIPLE CHOICE QUESTIONS
%\AtEndOfPackage{
@@ -252,3 +260,99 @@ n. \thevers} -- %%
%\immediate\closeout\params
%\fi }
%}
+%\makeatletter
+
+
+
+
+%\AtEndOfPackage{
+%\newcount\old@rando
+%\renewcommand{\shuffle}[3][]{% %%% this command has been adapted from probsoln
+%\old@rando=\number\randomi
+ %\randomi=\thenomefile
+ %\@shfctr=1\relax
+ %\whiledo{\@shfctr < 101}%
+ %{%
+ %\setrannum{\@shfA}{1}{#3}\setrannum{\@shfB}{1}{#3}
+ %\ifnum\@shfA=\@shfB
+ %\else
+ %\edef\@@tmpA{\csname#2\romannumeral\@shfA\endcsname}%
+ %\let\@tmpA=\@@tmpA
+ %\edef\@@tmpB{\csname#2\romannumeral\@shfB\endcsname}%
+ %\let\@tmpB=\@@tmpB
+ %\expandafter\xdef\csname#2\romannumeral\@shfA\endcsname{\@tmpB}%
+ %\expandafter\xdef\csname#2\romannumeral\@shfB\endcsname{\@tmpA}%
+ %\fi
+ %\advance\@shfctr by 1\relax
+ %\ifthenelse{\equal{#1}{}}{}{
+ %\@shfA=0%
+ %\loop
+ %\advance\@shfA by1
+ %\expandafter\xdef\csname#1\romannumeral\@shfA\endcsname{\csname#2\romannumeral\@shfA\endcsname}
+ %\ifnum\@shfA<#3 \repeat
+%}
+ %}%
+%\randomi=\number\old@rando
+%}
+
+%\newcommand{\shufflees}[3][]{% %%% this command has been adapted from probsoln
+%%\old@rando=\number\randomi
+%% \randomi=404
+ %\@shfctr=1\relax
+ %\whiledo{\@shfctr < 101}%
+ %{%
+ %\setrannum{\@shfA}{1}{#3}\setrannum{\@shfB}{1}{#3}
+ %\ifnum\@shfA=\@shfB
+ %\else
+ %\edef\@@tmpA{\csname#2\romannumeral\@shfA\endcsname}%
+ %\let\@tmpA=\@@tmpA
+ %\edef\@@tmpB{\csname#2\romannumeral\@shfB\endcsname}%
+ %\let\@tmpB=\@@tmpB
+ %\expandafter\xdef\csname#2\romannumeral\@shfA\endcsname{\@tmpB}%
+ %\expandafter\xdef\csname#2\romannumeral\@shfB\endcsname{\@tmpA}%
+ %\fi
+ %\advance\@shfctr by 1\relax
+ %\ifthenelse{\equal{#1}{}}{}{
+ %\@shfA=0%
+ %\loop
+ %\advance\@shfA by1
+ %\expandafter\xdef\csname#1\romannumeral\@shfA\endcsname{\csname#2\romannumeral\@shfA\endcsname}
+ %\ifnum\@shfA<#3 \repeat
+%}
+ %}%
+%%\randomi=\number\old@rando
+%}
+
+%\renewcommand{\esercizidb}[1]{
+ %\icount=0
+%\input{#1.tex}%
+%\i@sh=0
+%\loop
+%\advance\i@sh by1
+%\expandafter\edef\csname ftemp\romannumeral\i@sh \endcsname {\romannumeral\i@sh}
+%\ifnum\i@sh <\number\icount
+%\repeat
+%\shufflees{ftemp}{\icount}
+%\setcounter{n@par}{1}
+%\io=\icount
+%\loop
+%\ifes@test
+%\begin{minipage}{.95\linewidth}
+%\fi
+%\ifes@shuffleQuestions
+%\csname prbl\csname ftemp\romannumeral\io\endcsname\endcsname
+%\else
+%\csname prbl\romannumeral\io \endcsname
+%\fi
+%\def\probchosen{\problabel-\probnumber}
+%\csname @probi-\problabel-\probnumber \endcsname
+%\ifes@test
+ %\vspace{5mm}\end{minipage}
+ %\Acapo
+%\vspace{4mm}
+ %\fi
+ %\advance\io by-1
+ %\ifnum\io > 0 \repeat
+ %\par}
+ %}
+%\makeatother