summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/esami/esami.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-01-08 22:44:48 +0000
committerKarl Berry <karl@freefriends.org>2014-01-08 22:44:48 +0000
commitfed7194263a54d728638502089d1ec5afe88a886 (patch)
tree901f344cab95973317092381bd6381d085cd1002 /Master/texmf-dist/tex/latex/esami/esami.sty
parent52faf550c50c298c62bf9721f45c7c5366c3cd70 (diff)
esami (8jan14)
git-svn-id: svn://tug.org/texlive/trunk@32608 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/esami/esami.sty')
-rw-r--r--Master/texmf-dist/tex/latex/esami/esami.sty33
1 files changed, 19 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/esami/esami.sty b/Master/texmf-dist/tex/latex/esami/esami.sty
index c9dd1e51bc7..ad26df52236 100644
--- a/Master/texmf-dist/tex/latex/esami/esami.sty
+++ b/Master/texmf-dist/tex/latex/esami/esami.sty
@@ -15,9 +15,13 @@
%%%%%% CHANGELOG %%%%%%%
% Version 1.0
% First release to CTAN
+% Version 1.1
+% Update: 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}).
\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{esami}
- [2012/03/08 v1.0 An Exam Construction Package]
+ [2013/12/09 v1.1 An Exam Construction Package]
% +=============================+
% | THE OPTIONS |
@@ -25,7 +29,7 @@
\newif\ifes@language \es@languagefalse
\DeclareOption{italian}{\InputIfFileExists{es-\CurrentOption.lng}%
- { \es@languagetrue \typeout{esami: Verr\`{a} usata la lingua italiana}}%
+ { \es@languagetrue \typeout{esami: Verrà usata la lingua italiana}}%
{\typeout{esami: Il file es-\CurrentOption.lng non esiste.}}}
\DeclareOption{UKenglish}{\InputIfFileExists{es-\CurrentOption.lng}%
{\typeout{esami: English Language will be used} \es@languagetrue}%
@@ -37,10 +41,10 @@
{ \typeout{esami: English Language will be used}\es@languagetrue}%
{ \typeout{esami: The file es-\CurrentOption.lng does not exists.}}}
\DeclareOption{french}{\InputIfFileExists{es-\CurrentOption.lng}%
- { \typeout{esami: La langue fran\c{c}aise sera utilis\'{e}e}\es@languagetrue}
+ { \typeout{esami: La langue française sera utilisée}\es@languagetrue}
{ \typeout{esami: The file es-\CurrentOption.lng does not exists.}}}
\DeclareOption{spanish}{\InputIfFileExists{es-\CurrentOption.lng}%
- { \typeout{esami:Se utilizar\'{a} el idioma espa\~{n}ol}\es@languagetrue}
+ { \typeout{esami:Se utilizará el idioma español}\es@languagetrue}
{ \typeout{esami: The file es-\CurrentOption.lng does not exists.}}}
\DeclareOption{german}{\InputIfFileExists{es-\CurrentOption.lng}%
{ \typeout{esami:Deutsch als Sprache soll angewandt werden}\es@languagetrue}
@@ -149,6 +153,7 @@
\usepackage{currfile}
\usepackage{array}
\usepackage{ifthen}
+\usepackage{environ}
\usepackage{xargs}
\usepackage{multicol}
\usepackage{pstricks,pstricks-add}
@@ -548,16 +553,16 @@
%%%%% Other commands %%%%%%
-\long\def\Collect@Body#1{%%%%% This command is taken from the environ package %%%%
- \@envbody{\expandafter#1\expandafter{\the\@envbody}}%
- \edef\process@envbody{\the\@envbody\noexpand\end{\@currenvir}}%
- \@envbody\@emptytoks \def\begin@stack{b}%
- \begingroup
- \expandafter\let\csname\@currenvir\endcsname\Collect@@Body
- \edef\process@envbody{%
- \expandafter\noexpand\csname\@currenvir\endcsname}%
- \process@envbody
-}
+%\long\def\Collect@Body#1{%%%%% This command is taken from the environ package %%%%
+% \@envbody{\expandafter#1\expandafter{\the\@envbody}}%
+% \edef\process@envbody{\the\@envbody\noexpand\end{\@currenvir}}%
+% \@envbody\@emptytoks \def\begin@stack{b}%
+% \begingroup
+% \expandafter\let\csname\@currenvir\endcsname\Collect@@Body
+% \edef\process@envbody{%
+% \expandafter\noexpand\csname\@currenvir\endcsname}%
+% \process@envbody
+%}
\newcommand\stepvers{\stepcounter{vers}\ifes@solutions
\immediate\write\sols{\string\begin{minipage}{.33\string\textwidth}\string\large\string\textbf{\es@solutionname\ \versionname\ n. \thevers}}\fi}