summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/apxproof/apxproof.sty')
-rw-r--r--Master/texmf-dist/tex/latex/apxproof/apxproof.sty18
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/apxproof/apxproof.sty b/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
index ff6a5fe72e4..a7f9ce12d29 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}
- [2019/10/08 v1.2.0 Automatic proofs in appendix]
+ [2020/10/15 v1.2.1 Automatic proofs in appendix]
\RequirePackage{environ}
\RequirePackage{etoolbox}
\RequirePackage{fancyvrb}
@@ -116,7 +116,7 @@
}
\newenvironment{proofsketch}{\begin{axp@oldproof}[Proof sketch]}{\end{axp@oldproof}}
\newcommand{\mainbodyrepeatedtheorem}{}
-\newcommand{\appendixrefname}{References for the Appendix}
+\providecommand{\appendixrefname}{References for the Appendix}
\newcommand{\appendixbibliographystyle}{alpha}
\newcommand{\appendixbibliographyprelim}{}
\newcommand{\appendixprelim}{\clearpage\onecolumn}
@@ -213,8 +213,12 @@
\def\FV@ProcessLine{\immediate\write\axp@proofsfile}%
\let\FV@FontScanPrep\relax
\let\@noligs\relax
+ \immediate\write\axp@proofsfile{\noexpand\makeatother}%
+ \def\FV@CatCodesHook{}%
\FV@Scan}
- \def\FVE@axp@VerbatimOut{\endgroup\@esphack}
+ \def\FVE@axp@VerbatimOut{%
+ \immediate\write\axp@proofsfile{\noexpand\makeatletter}%
+ \endgroup\@esphack}
\newenvironment{toappendix}
{\axp@writesection\axp@VerbatimOut}
{\endaxp@VerbatimOut}
@@ -427,6 +431,11 @@
}
}{}
\AtEndDocument{
+ \ifdefined\NAT@testdef
+ \renewcommand\bibcite[2]{%
+ \global\@namedef{b@#1\@extra@binfo}{#2}%
+ }
+ \fi
\appendixprelim
\appendix
\ifthenelse{\equal{\axp@bibliography}{separate}}{
@@ -446,6 +455,9 @@
\appendixbibliographyprelim
\putbib
\end{bibunit}
+ \ifdefined\NAT@testdef
+ \let\bibcite\NAT@testdef
+ \fi
}{}
}
}{}