From 0cc0c2d961f797a7f87a28ceb63cefb6b2990bc2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 15 Oct 2020 21:14:01 +0000 Subject: apxproof (15oct20) git-svn-id: svn://tug.org/texlive/trunk@56673 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/apxproof/apxproof.sty | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/apxproof') 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 }{} } }{} -- cgit v1.2.3