summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/answers
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-08-10 22:20:13 +0000
committerKarl Berry <karl@freefriends.org>2014-08-10 22:20:13 +0000
commit23023f7f597d32093136b854d157773aa6ccbe06 (patch)
tree2f83111e02c06541f68333c963789b281daa0cd3 /Master/texmf-dist/tex/latex/answers
parent89b1e5bd32239fb16c2f42b9ac734c24e48a806f (diff)
answers (10aug14)
git-svn-id: svn://tug.org/texlive/trunk@34892 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/answers')
-rw-r--r--Master/texmf-dist/tex/latex/answers/answers.sty18
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/answers/answers.sty b/Master/texmf-dist/tex/latex/answers/answers.sty
index cb7311822d6..ab9ed30d53a 100644
--- a/Master/texmf-dist/tex/latex/answers/answers.sty
+++ b/Master/texmf-dist/tex/latex/answers/answers.sty
@@ -26,13 +26,27 @@
\def\filename{answers.dtx}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{answers}
- [2010/10/11 v2.13 Production of solution sheets in LaTeX2e]
+ [2014/08/08 v2.14 Production of solution sheets in LaTeX2e]
\newif\ifanswerfiles \answerfilestrue
\DeclareOption{nosolutionfiles}{\answerfilesfalse
\typeout{No answer files being produced}}%
\ProcessOptions
\RequirePackage{verbatim}
+\long\def\protected@iwrite#1#2#3{%
+ \begingroup
+ \let\thepage\relax
+ #2%
+ \let\protect\@unexpandable@protect
+ \edef \reserved@a{\immediate\write#1{#3}}%
+ \reserved@a
+ \endgroup
+ \if@nobreak
+ \ifvmode
+ \nobreak
+ \fi
+ \fi
+}
\newcommand{\solutionpoint}{.}
\newcommand{\solutionextension}{tex}
\newenvironment{Filesave}[1]{%
@@ -59,7 +73,7 @@
{%
\let\protect\string
\Ifanswerfiles{%
- \immediate\write\@nameuse{#1@file}{#2}%
+ \protected@iwrite\@nameuse{#1@file}{#2}%
}{}%
}%
}{}%