texlive[42708] Master/texmf-dist: apxproof (15dec16)
commits+karl at tug.org
commits+karl at tug.org
Thu Dec 15 00:00:33 CET 2016
Revision: 42708
http://tug.org/svn/texlive?view=revision&revision=42708
Author: karl
Date: 2016-12-15 00:00:32 +0100 (Thu, 15 Dec 2016)
Log Message:
-----------
apxproof (15dec16)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/apxproof/apxproof.pdf
trunk/Master/texmf-dist/source/latex/apxproof/apxproof.dtx
trunk/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
Modified: trunk/Master/texmf-dist/doc/latex/apxproof/apxproof.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/apxproof/apxproof.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/apxproof/apxproof.dtx 2016-12-14 07:09:12 UTC (rev 42707)
+++ trunk/Master/texmf-dist/source/latex/apxproof/apxproof.dtx 2016-12-14 23:00:32 UTC (rev 42708)
@@ -24,7 +24,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesPackage{apxproof}
-%<package> [2016/11/07 v1.0.1 Automatic proofs in appendix]
+%<package> [2016/12/13 v1.0.2 Automatic proofs in appendix]
%
%<*driver>
\documentclass{ltxdoc}
@@ -44,7 +44,7 @@
%</driver>
% \fi
%
-% \CheckSum{444}
+% \CheckSum{445}
%
% \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
@@ -524,13 +524,17 @@
% \end{macrocode}
% \end{environment}
% \begin{macro}{\thmhead}
+% \changes{v1.0.2}{2016/12/13}{Fix display of repeated theorem counter in
+% some document classes}
% We redefine AMS-\LaTeX{}'s |\thmhead| to use a format where the
% repeated version of a theorem, using a theorem note, can look exactly
% like the original version of the theorem and its theorem counter.
% \begin{macrocode}
-\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}}%
+}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\appendixrefname}
@@ -732,12 +736,14 @@
% and a reference to the previously defined label.
% We ignore any use of |\label| in this environment to avoid multiply
% defined labels.
+% \changes{v1.0.2}{2016/12/13}{Fix missing space between repeated theorem
+% counter and theorem note}
% \begin{macrocode}
\axp at writesection%
\immediate\write\axp at proofsfile{%
\noexpand\begin{axp@#1rp}
[\noexpand\ref{axp at r\roman{axp at rpcounter}}%
- \@ifnotempty{##1}{\noexpand##1}]%
+ \@ifnotempty{##1}{ \noexpand##1}]%
\noexpand\let\noexpand\label\noexpand\@gobble%
\expandafter\noexpand\csname rplet\roman{axp at rpcounter}%
\endcsname
Modified: trunk/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/apxproof/apxproof.sty 2016-12-14 07:09:12 UTC (rev 42707)
+++ trunk/Master/texmf-dist/tex/latex/apxproof/apxproof.sty 2016-12-14 23:00:32 UTC (rev 42708)
@@ -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 at proofsfile{%
\noexpand\begin{axp@#1rp}
[\noexpand\ref{axp at r\roman{axp at rpcounter}}%
- \@ifnotempty{##1}{\noexpand##1}]%
+ \@ifnotempty{##1}{ \noexpand##1}]%
\noexpand\let\noexpand\label\noexpand\@gobble%
\expandafter\noexpand\csname rplet\roman{axp at rpcounter}%
\endcsname
More information about the tex-live-commits
mailing list