texlive[56673] Master/texmf-dist: apxproof (15oct20)

commits+karl at tug.org commits+karl at tug.org
Thu Oct 15 23:14:02 CEST 2020


Revision: 56673
          http://tug.org/svn/texlive?view=revision&revision=56673
Author:   karl
Date:     2020-10-15 23:14:01 +0200 (Thu, 15 Oct 2020)
Log Message:
-----------
apxproof (15oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/apxproof/README.md
    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/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/apxproof/README.md	2020-10-15 21:13:47 UTC (rev 56672)
+++ trunk/Master/texmf-dist/doc/latex/apxproof/README.md	2020-10-15 21:14:01 UTC (rev 56673)
@@ -34,7 +34,7 @@
 
 ## License
 
-Copyright © 2016-2019 by Pierre Senellart.
+Copyright © 2016-2020 by Pierre Senellart.
 
 This work may be distributed and/or modified under the conditions of the
 LaTeX Project Public License, either version 1.3 of this license or (at

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	2020-10-15 21:13:47 UTC (rev 56672)
+++ trunk/Master/texmf-dist/source/latex/apxproof/apxproof.dtx	2020-10-15 21:14:01 UTC (rev 56673)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2016-2019 by Pierre Senellart
+% Copyright (C) 2016-2020 by Pierre Senellart
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3
@@ -24,7 +24,7 @@
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
 %<package>\ProvidesPackage{apxproof}
-%<package>  [2019/10/08 v1.2.0 Automatic proofs in appendix]
+%<package>  [2020/10/15 v1.2.1 Automatic proofs in appendix]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -45,7 +45,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{787}
+% \CheckSum{813}
 %
 % \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
@@ -373,7 +373,8 @@
 % (\meta{title})''.
 % \item[\textbackslash|appendixrefname|]\DescribeMacro{\appendixrefname} contains the heading that is displayed before
 % the bibliography. By default, this is ``References for the
-% Appendix''.
+% Appendix''. (Note that this command is also defined and used by the
+% |memoir| document class.)
 % \item[\textbackslash|appendixbibliographystyle|]\DescribeMacro{\appendixbibliographystyle} contains the |.bst| bibliography
 % style that is used in the bibliography in appendix. By default, this is
 % |alpha|.
@@ -430,6 +431,7 @@
 % \item \LaTeX{} standard document classes (e.g., |article.cls|)
 % \item \href{https://www.ctan.org/pkg/koma-script}{KOMA-Script}
 % (e.g., |scrartcl.cls|, |scrbook.cls|)
+% \item \href{https://ctan.org/pkg/memoir}{|memoir.cls|}
 % \item \href{https://www.acm.org/publications/proceedings-template}{ACM
 % SIG Proceedings} (e.g., |sig-alternate.cls|, |acmart.cls|)
 % \item \href{https://www.springer.com/computer/lncs/lncs+authors}{
@@ -466,7 +468,7 @@
 % Issues not listed here should be reported to the author.
 %
 % \section{License}
-% Copyright \textcopyright{} 2016--2019 by Pierre Senellart.
+% Copyright \textcopyright{} 2016--2020 by Pierre Senellart.
 % 
 % This work may be distributed and/or modified under the conditions of the
 % \LaTeX{} Project Public License, either version 1.3 of this license or (at
@@ -609,7 +611,7 @@
 %    \end{macrocode}
 % The external \textsf{bibunits} package 
 % is used to add a second bibliography for the appendix material.
-% \changes{v1.2.0}{2019/04/17}{Do not load \textsf{binunits} if
+% \changes{v1.2.0}{2019/04/17}{Do not load \textsf{bibunits} if
 % \texttt{bibliography} is set to \texttt{common}}
 %    \begin{macrocode}
   \RequirePackage{bibunits}
@@ -713,6 +715,8 @@
 % \begin{macro}{\mainbodyrepeatedtheorem}
 % \changes{v1.2.0}{2019/09/21}{Configurable repeated theorem command}
 % \begin{macro}{\appendixrefname}
+% \changes{v1.2.1}{2020/10/09}{Fix compatibility with
+% \texttt{memoir} document class}
 % \begin{macro}{\appendixbibliographystyle}
 % \begin{macro}{\appendixbibliographyprelim}
 % \begin{macro}{\appendixprelim}
@@ -725,7 +729,7 @@
 % all modes so that a |\renewcommand| works in all cases.
 %    \begin{macrocode}
 \newcommand{\mainbodyrepeatedtheorem}{}
-\newcommand{\appendixrefname}{References for the Appendix}
+\providecommand{\appendixrefname}{References for the Appendix}
 \newcommand{\appendixbibliographystyle}{alpha}
 \newcommand{\appendixbibliographyprelim}{}
 \newcommand{\appendixprelim}{\clearpage\onecolumn}
@@ -943,7 +947,15 @@
 % Using the functionalities of the \textsf{fancyvrb} package, we define a
 % custom verbatim environment |axp at VerbatimOut| that writes every line
 % to the |\axp at proofsfile|. We also use the previous macro to disable active
-% characters with the eighth bit set.
+% characters with the eighth bit set, and we make sure the catcode of |@|
+% is reset for every verbatim environment, in case it is used by the user (e.g.,
+% as in the \textsf{xypic} package). Finally, as an additional
+% precaution, we reset |\FV at CatCodesHook| that is for example set by the
+% |commandchars| or |commentchar| option of |\fvset|.
+% \changes{v1.2.1}{2020/01/01}{Fix compatibility with
+% \textsf{xypic} package}
+% \changes{v1.2.1}{2020/10/15}{Fix compatibility with other uses of \textsf{fancyvrb} that set
+% \texttt{\textbackslash FV at CatCodesHook}}
 %    \begin{macrocode}
   \DefineVerbatimEnvironment{axp at VerbatimOut}{axp at VerbatimOut}{}
   \def\FVB at axp@VerbatimOut{%
@@ -956,8 +968,12 @@
       \def\FV at ProcessLine{\immediate\write\axp at proofsfile}%
       \let\FV at FontScanPrep\relax
       \let\@noligs\relax
+      \immediate\write\axp at proofsfile{\noexpand\makeatother}%
+      \def\FV at CatCodesHook{}%
       \FV at Scan}
-  \def\FVE at axp@VerbatimOut{\endgroup\@esphack}
+  \def\FVE at axp@VerbatimOut{%
+      \immediate\write\axp at proofsfile{\noexpand\makeatletter}%
+      \endgroup\@esphack}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}  
@@ -1445,11 +1461,20 @@
 % ensure an empty bibliography environment is not produced.
 % The name of the bibliography is changed to |\appendixrefname|; in most
 % document classes, it is called |\refname| but it is occasionally
-% (|scrartcl|, |scrreprt|) called |\bibname|.
+% (|scrartcl|, |scrreprt|) called |\bibname|. An ad-hoc test is added
+% to fix a conflict with the \textsf{natbib} package which redefines
+% |bibcite| at the end of the document.
 % \changes{v1.0.6}{2018/05/10}{Deal with document classes where the
 % bibliography is called \texttt{\textbackslash bibname}}
+% \changes{v1.2.1}{2020/02/27}{Ad hoc fix for \textsf{natbib}
+% package conflict}
 %    \begin{macrocode}
     \AtEndDocument{
+      \ifdefined\NAT at testdef
+        \renewcommand\bibcite[2]{%
+          \global\@namedef{b@#1\@extra at binfo}{#2}%
+        }
+      \fi
       \appendixprelim
       \appendix
       \ifthenelse{\equal{\axp at bibliography}{separate}}{
@@ -1469,6 +1494,9 @@
         \appendixbibliographyprelim
         \putbib
       \end{bibunit}
+      \ifdefined\NAT at testdef
+        \let\bibcite\NAT at testdef
+      \fi
       }{}
     }
 %    \end{macrocode}  

Modified: trunk/Master/texmf-dist/tex/latex/apxproof/apxproof.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/apxproof/apxproof.sty	2020-10-15 21:13:47 UTC (rev 56672)
+++ trunk/Master/texmf-dist/tex/latex/apxproof/apxproof.sty	2020-10-15 21:14:01 UTC (rev 56673)
@@ -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 at oldproof}[Proof sketch]}{\end{axp at 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 at ProcessLine{\immediate\write\axp at proofsfile}%
       \let\FV at FontScanPrep\relax
       \let\@noligs\relax
+      \immediate\write\axp at proofsfile{\noexpand\makeatother}%
+      \def\FV at CatCodesHook{}%
       \FV at Scan}
-  \def\FVE at axp@VerbatimOut{\endgroup\@esphack}
+  \def\FVE at axp@VerbatimOut{%
+      \immediate\write\axp at proofsfile{\noexpand\makeatletter}%
+      \endgroup\@esphack}
   \newenvironment{toappendix}
     {\axp at writesection\axp at VerbatimOut}
     {\endaxp at VerbatimOut}
@@ -427,6 +431,11 @@
       }
     }{}
     \AtEndDocument{
+      \ifdefined\NAT at testdef
+        \renewcommand\bibcite[2]{%
+          \global\@namedef{b@#1\@extra at binfo}{#2}%
+        }
+      \fi
       \appendixprelim
       \appendix
       \ifthenelse{\equal{\axp at bibliography}{separate}}{
@@ -446,6 +455,9 @@
         \appendixbibliographyprelim
         \putbib
       \end{bibunit}
+      \ifdefined\NAT at testdef
+        \let\bibcite\NAT at testdef
+      \fi
       }{}
     }
   }{}



More information about the tex-live-commits mailing list.