From eb96fcc1e2bba13d7825b0a3c7b32ef858a18fbb Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 14 Dec 2016 23:00:32 +0000
Subject: apxproof (15dec16)

git-svn-id: svn://tug.org/texlive/trunk@42708 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/apxproof/apxproof.sty | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/apxproof/apxproof.sty')

diff --git a/Master/texmf-dist/tex/latex/apxproof/apxproof.sty b/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
index 9fcaa834947..6168172238d 100644
--- a/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
+++ b/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
@@ -27,7 +27,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
 \ProvidesPackage{apxproof}
-  [2016/11/07 v1.0.1 Automatic proofs in appendix]
+  [2016/12/13 v1.0.2 Automatic proofs in appendix]
 \RequirePackage{bibunits}
 \RequirePackage{environ}
 \RequirePackage{etoolbox}
@@ -63,9 +63,11 @@
 \newenvironment{proofsketch}
   {\vskip3pt\noindent\textit{Proof sketch.} \upshape}
   {\hfill\qed\vskip3pt}
-\def\thmhead#1#2#3{%
-  \thmname{#1}\thmnumber{\@ifnotempty{#1}{ }\@upn{#2}}%
-  \thmnote{ #3}}
+\AtBeginDocument{%
+  \def\thmhead#1#2#3{%
+    \thmname{#1}\thmnumber{\@ifnotempty{#1}{ }\@upn{#2}}%
+    \thmnote{ #3}}%
+}
 \newcommand{\appendixrefname}{References for the Appendix}
 \newcommand{\appendixbibliographystyle}{alpha}
 \newcommand{\appendixbibliographyprelim}{}
@@ -144,7 +146,7 @@
       \immediate\write\axp@proofsfile{%
         \noexpand\begin{axp@#1rp}
           [\noexpand\ref{axp@r\roman{axp@rpcounter}}%
-           \@ifnotempty{##1}{\noexpand##1}]%
+           \@ifnotempty{##1}{ \noexpand##1}]%
           \noexpand\let\noexpand\label\noexpand\@gobble%
           \expandafter\noexpand\csname rplet\roman{axp@rpcounter}%
                                \endcsname
-- 
cgit v1.2.3

