summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-02 18:44:17 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-02 18:44:17 +0000
commit19e696b06f60d56a1248e35c16bd436b3499ced8 (patch)
tree3ee92a620cbb966e98a6cceb6bfe6509d3d83763
parent2424f614c861e623cc5f5c6053fc90e768648ce2 (diff)
exercise v1.57 2011/07/19
git-svn-id: svn://tug.org/texlive/trunk@23328 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/exercise/README4
-rw-r--r--Master/texmf-dist/doc/latex/exercise/exercise.pdfbin435724 -> 440075 bytes
-rw-r--r--Master/texmf-dist/source/latex/exercise/exercise.dtx19
-rw-r--r--Master/texmf-dist/tex/latex/exercise/exercise.sty15
4 files changed, 29 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/exercise/README b/Master/texmf-dist/doc/latex/exercise/README
index 77bb3a1af41..1c42253ede6 100644
--- a/Master/texmf-dist/doc/latex/exercise/README
+++ b/Master/texmf-dist/doc/latex/exercise/README
@@ -70,7 +70,9 @@ To do:
Change log:
-----------
-- v1.55 2011/03/13 Command \refAnswer added
+- v1.57 2011/07/19 Bug correction on exercise selection (thx to Tobias Isenberg)
+- v1.56 2011/05/10 Portuguese translation added (thx to José Romildo Malaquias)
+- v1.55 2011/03/13 Command \refAnswer added (thx to Ferenc Wettl)
- v1.54 2010/12/14 Corrected a bug with infinite loop in Answer
- v1.53 2010/11/27 Exercise selection now works correctly
- v1.52 2010/10/09 New skip added
diff --git a/Master/texmf-dist/doc/latex/exercise/exercise.pdf b/Master/texmf-dist/doc/latex/exercise/exercise.pdf
index 62c2d3a380a..1a9ada604ef 100644
--- a/Master/texmf-dist/doc/latex/exercise/exercise.pdf
+++ b/Master/texmf-dist/doc/latex/exercise/exercise.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/exercise/exercise.dtx b/Master/texmf-dist/source/latex/exercise/exercise.dtx
index 1252a1225b2..20170d33293 100644
--- a/Master/texmf-dist/source/latex/exercise/exercise.dtx
+++ b/Master/texmf-dist/source/latex/exercise/exercise.dtx
@@ -21,7 +21,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{exercise}
-%<package> [2011/03/13 v1.55 Exercise package (P.Pichaureau)]
+%<package> [2011/07/19 v1.57 Exercise package (P.Pichaureau)]
%<*driver>
\documentclass{ltxdoc}
\usepackage{exercise}
@@ -84,7 +84,7 @@
% \DoNotIndex{\setlength,\string,\textbf,\textsc,\emph,\whiledo,\vbox}
% \DoNotIndex{\unvbox,\usefont,\usecounter,\value,\vskip,\setbox,\setcounter}
%
-%\CheckSum{1982}
+%\CheckSum{2002}
%
%
% \GetFileInfo{exercise.sty}
@@ -406,7 +406,7 @@
%\begin{verbatim}
% \ref{ex1-Answer} \refAnswer{ex1}
%\end{verbatim}
-%are two equivalent way to reference the answer of the preceding
+%are two equivalent ways to reference the answer of the preceding
%exercise labeled |ex1|.
%
%Remember that inside an |Exercise| the command |\ExerciseLabel|
@@ -868,6 +868,15 @@
\def\ExePartName{Teil}%
\def\ArticleOf{von\ }%
}
+\addto\captionsportuges{%
+\def\listexercisename{Lista de exerc\'icios}%
+\def\ExerciseName{Exerc\'icio}%
+\def\AnswerName{Solução do exerc\'icio}%
+\def\ExerciseListName{Ex.}%
+\def\AnswerListName{Solu\c{c}\~ao}%
+\def\ExePartName{Parte}%
+\def\ArticleOf{de\ }%
+}
}{}
% \end{macrocode}
%\subsubsection{Layout}
@@ -1499,8 +1508,8 @@
\newif\if@AnswerRef \@AnswerReffalse
\newif\if@AnswerNB \@AnswerNBfalse
%
-\define@key{PPAnswer}{ref}{\global\@AnswerReftrue\gdef\AnswerRef{\string#1}}
-\define@key{PPAnswer}{number}{\global\@AnswerNBtrue\gdef\AnswerNB{\string#1}}
+\define@key{PPAnswer}{ref}{\global\@AnswerReftrue\gdef\AnswerRef{#1}}
+\define@key{PPAnswer}{number}{\global\@AnswerNBtrue\gdef\AnswerNB{#1}}
%
\def\beginAnswerEnv{\@InitAnswer\@ifnextchar[\@@AnswerEnv{\@@AnswerEnv[]}}%]
%
diff --git a/Master/texmf-dist/tex/latex/exercise/exercise.sty b/Master/texmf-dist/tex/latex/exercise/exercise.sty
index 1a3f6d3005f..b7dee401572 100644
--- a/Master/texmf-dist/tex/latex/exercise/exercise.sty
+++ b/Master/texmf-dist/tex/latex/exercise/exercise.sty
@@ -27,7 +27,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{exercise}
- [2011/03/13 v1.55 Exercise package (P.Pichaureau)]
+ [2011/07/19 v1.57 Exercise package (P.Pichaureau)]
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -123,6 +123,15 @@
\def\ExePartName{Teil}%
\def\ArticleOf{von\ }%
}
+\addto\captionsportuges{%
+\def\listexercisename{Lista de exerc\'icios}%
+\def\ExerciseName{Exerc\'icio}%
+\def\AnswerName{Solução do exerc\'icio}%
+\def\ExerciseListName{Ex.}%
+\def\AnswerListName{Solu\c{c}\~ao}%
+\def\ExePartName{Parte}%
+\def\ArticleOf{de\ }%
+}
}{}
\newlength{\ExerciseSkipBefore}
\setlength{\ExerciseSkipBefore}{1\baselineskip}
@@ -624,8 +633,8 @@
\fi\fi\fi}
\newif\if@AnswerRef \@AnswerReffalse
\newif\if@AnswerNB \@AnswerNBfalse
-\define@key{PPAnswer}{ref}{\global\@AnswerReftrue\gdef\AnswerRef{\string#1}}
-\define@key{PPAnswer}{number}{\global\@AnswerNBtrue\gdef\AnswerNB{\string#1}}
+\define@key{PPAnswer}{ref}{\global\@AnswerReftrue\gdef\AnswerRef{#1}}
+\define@key{PPAnswer}{number}{\global\@AnswerNBtrue\gdef\AnswerNB{#1}}
\def\beginAnswerEnv{\@InitAnswer\@ifnextchar[\@@AnswerEnv{\@@AnswerEnv[]}}%]
\def\@@AnswerEnv[#1]{\setkeys{PPAnswer}{#1}%
\global\@Answertrue\@selectAnswer\@BeginExeBox\@@@AnswerEnv}