summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/apxproof
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-11-07 22:14:47 +0000
committerKarl Berry <karl@freefriends.org>2016-11-07 22:14:47 +0000
commit293604ad265c7c828f4f9183844ed5e6647c2b84 (patch)
treea8a0f589a3469638c62162c528ed5bbaa1f781e9 /Master/texmf-dist/source/latex/apxproof
parentb1b67581fd39f2b92216cce5ea85f1c40d2c3391 (diff)
apxproof (7nov16)
git-svn-id: svn://tug.org/texlive/trunk@42453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/apxproof')
-rw-r--r--Master/texmf-dist/source/latex/apxproof/apxproof.dtx16
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/apxproof/apxproof.dtx b/Master/texmf-dist/source/latex/apxproof/apxproof.dtx
index cfa587ccb9f..ac3ac109b81 100644
--- a/Master/texmf-dist/source/latex/apxproof/apxproof.dtx
+++ b/Master/texmf-dist/source/latex/apxproof/apxproof.dtx
@@ -24,7 +24,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesPackage{apxproof}
-%<package> [2016/10/31 v1.0.0 Automatic proofs in appendix]
+%<package> [2016/11/07 v1.0.1 Automatic proofs in appendix]
%
%<*driver>
\documentclass{ltxdoc}
@@ -44,7 +44,7 @@
%</driver>
% \fi
%
-% \CheckSum{433}
+% \CheckSum{444}
%
% \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
@@ -63,6 +63,8 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0.0}{2016/10/31}{Initial released version}
+% \changes{v1.0.1}{2016/11/07}{Prevent empty bibliography environment;
+% fix typos}
%
% \GetFileInfo{apxproof.sty}
%
@@ -89,7 +91,7 @@
% This package makes it easier to write articles where proofs and other material
% are deferred to the appendix. The appendix material is written in the \LaTeX{}
% code along with the main text which it naturally complements, and it is
-% automatically deferred. The package can automatically send proofs in the
+% automatically deferred. The package can automatically send proofs to the
% appendix, can repeat in the appendix the theorem environments stated in the
% main text, can section the appendix automatically based on the sectioning of
% the main text, and supports a separate bibliography for the appendix material.
@@ -169,7 +171,7 @@ This proof is in the appendix.
% theorem, \meta{counter} (e.g., |definition|) is an optional counter describing
% from which kind of enviroment should the numbering of these environments be
% inherited, and \meta{title}
-% (e.g., |Theorem| is
+% (e.g., |Theorem|) is
% the title that will be used to display this theorem environment. What
% differs from |\newtheorem| is that, when the following is written:
% \begin{quote}
@@ -926,7 +928,8 @@ This is a citation in the appendix~\cite{proofsAreHard}.
% \end{macro}
% After the end of the main text, we add the appendix (on a new page, set
% in single-column mode) within a |bibunit| environment so as to typeset
-% a separate bibliography for the appendix.
+% a separate bibliography for the appendix. There is an extra test to
+% ensure an empty bibliography environment is not produced.
% \begin{macrocode}
\AtEndDocument{
\clearpage\onecolumn\appendix
@@ -934,6 +937,9 @@ This is a citation in the appendix~\cite{proofsAreHard}.
\immediate\closeout\axp@proofsfile
\input{\jobname.axp}
\renewcommand{\refname}{\appendixrefname}
+ \let\axp@oldthebibliography\thebibliography
+ \renewcommand\thebibliography[1]{%
+ \ifx\relax#1\relax\else\axp@oldthebibliography{#1}\fi}
\appendixbibliographyprelim
\putbib
\end{bibunit}