From 293604ad265c7c828f4f9183844ed5e6647c2b84 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 7 Nov 2016 22:14:47 +0000 Subject: apxproof (7nov16) git-svn-id: svn://tug.org/texlive/trunk@42453 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/apxproof/apxproof.dtx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/source/latex/apxproof') 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 %\NeedsTeXFormat{LaTeX2e}[2005/12/01] %\ProvidesPackage{apxproof} -% [2016/10/31 v1.0.0 Automatic proofs in appendix] +% [2016/11/07 v1.0.1 Automatic proofs in appendix] % %<*driver> \documentclass{ltxdoc} @@ -44,7 +44,7 @@ % % \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} -- cgit v1.2.3