summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/answers
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-10-12 23:39:55 +0000
committerKarl Berry <karl@freefriends.org>2010-10-12 23:39:55 +0000
commit6cc261d26ec54e908805c13285e569afc09b1d8c (patch)
tree23320d0c943bf43fcb64c2938f0df54b96792629 /Master/texmf-dist/source/latex/answers
parent8070c531d403f61c4414589bce9a1e9172c218c9 (diff)
answers 2.13 (11oct10)
git-svn-id: svn://tug.org/texlive/trunk@20070 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/answers')
-rw-r--r--Master/texmf-dist/source/latex/answers/answers.dtx13
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/answers/answers.dtx b/Master/texmf-dist/source/latex/answers/answers.dtx
index 3f7512d8dea..a9563da67ad 100644
--- a/Master/texmf-dist/source/latex/answers/answers.dtx
+++ b/Master/texmf-dist/source/latex/answers/answers.dtx
@@ -1,15 +1,15 @@
% \iffalse meta-comment
% \begin{macrocode}
%<*answers>
-\def\fileversion{2.12}
-\def\filedate{16 Sep 2009 00:00:00 BST}
+\def\fileversion{2.13}
+\def\filedate{11 Oct 2010 00:00:00 BST}
\def\filename{answers.dtx}
%</answers>
% \end{macrocode}
%
% Originally developed by Mike Piff
% Copyright (C) 1990,1994-1996 by Mike Piff
-% Copyright (C) 2009 by
+% Copyright (C) 2009-2010 by
% Joseph Wright <joseph.wright@morningstar2.co.uk>
%
% This file may be distributed and/or modified under the conditions of
@@ -24,7 +24,7 @@
%
% \fi
%
-% \CheckSum{244}
+% \CheckSum{247}
%
% \changes{2.0}{1994/03/25}{First version for LaTeX2e}
% \changes{2.01}{1994/03/30}{Whoops! |ProvidesPackage{answers}|,
@@ -46,6 +46,7 @@
% checks if a file is open! Ah well!}
% \changes{2.12}{2009/09/16}{License change to LPPL}
% \changes{2.12}{2009/09/16}{New maintainer}
+% \changes{2.13}{2010/10/11}{Make hyperlinks to solutions work correctly}
%
%
% \title{Production of solution sheets in \LaTeXe}
@@ -377,7 +378,7 @@
% Announce the package name and its version:
% \begin{macrocode}
\ProvidesPackage{answers}
- [2009/09/16 v2.12 Production of solution sheets in LaTeX2e]
+ [2010/10/11 v2.13 Production of solution sheets in LaTeX2e]
% \end{macrocode}
%
% \section{Options}
@@ -668,9 +669,11 @@
% \begin{macrocode}
\newcommand{\newsolution}[1]{%
\@ifundefined{#1}{%
+ \global\@definecounter{#1}%
\global\@namedef{#1params}{{\Currentlabel}}%
\newenvironment{#1}[1]%
{%
+ \refstepcounter{#1}%
\csname pre#1\endcsname
\trivlist
\item[\hskip\itemsep{\@nameuse{#1label}{##1}}]}%