texlive[53718] Master/texmf-dist: appendix (8feb20)

commits+karl at tug.org commits+karl at tug.org
Sat Feb 8 23:16:21 CET 2020


Revision: 53718
          http://tug.org/svn/texlive?view=revision&revision=53718
Author:   karl
Date:     2020-02-08 23:16:20 +0100 (Sat, 08 Feb 2020)
Log Message:
-----------
appendix (8feb20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/appendix/README
    trunk/Master/texmf-dist/doc/latex/appendix/appendix.pdf
    trunk/Master/texmf-dist/source/latex/appendix/appendix.dtx
    trunk/Master/texmf-dist/source/latex/appendix/appendix.ins
    trunk/Master/texmf-dist/tex/latex/appendix/appendix.sty

Modified: trunk/Master/texmf-dist/doc/latex/appendix/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/appendix/README	2020-02-08 22:16:07 UTC (rev 53717)
+++ trunk/Master/texmf-dist/doc/latex/appendix/README	2020-02-08 22:16:20 UTC (rev 53718)
@@ -5,11 +5,14 @@
 of appendices. Also (sub)appendices environments are provided that can be
 used, for example, for per chapter/section appendices.
 
+Changes v1.2c (2020-02-08)
+- Fix clash with hyperref
+
 Changes v1.2b (2009/09/02)
 - New maintainer (Will Robertson)
 
 Changes v1.2a (2004/04/16)
-- Updated contact details 
+- Updated contact details
 - Changed license from LPPL v1.0 to LPPL v1.3
 
 Changes in version 1.2 (2002/08/06)
@@ -23,19 +26,20 @@
 - Addition of a subappendices environment for per chapter/section appendices
 - Appendices environment now restores chapter/section numbering at the end
 
------------------------------------------------------------------ 
+-----------------------------------------------------------------
   Author: Peter Wilson, Herries Press
   Maintainer: Will Robertson (will dot robertson at latex-project dot org)
   Copyright 1998--2004 Peter R. Wilson
- 
+  Copyright 2009--2020 Will Robertson
+
   This work may be distributed and/or modified under the
   conditions of the LaTeX Project Public License, either
-  version 1.3c of this license or (at your option) any 
+  version 1.3c of this license or (at your option) any
   later version: <http://www.latex-project.org/lppl.txt>
- 
+
   This work has the LPPL maintenance status "maintained".
   The Current Maintainer of this work is Will Robertson.
- 
+
   This work consists of the files:
 README (this file)
 appendix.dtx
@@ -44,7 +48,7 @@
   and the derived files:
 appendix.sty
 
------------------------------------------------------------------ 
+-----------------------------------------------------------------
 
     To install the package:
 - run: latex appendix.ins (which will generate appendix.sty)
@@ -51,10 +55,10 @@
 - Move appendix.sty to a location where LaTeX will find it
   (typically in a local texmf tree at tex/latex/appendix) and refresh
   the file database. See the FAQ on CTAN at help/uk-tex-faq or
-  http://www.tug.ac.uk/faq for more information on this.
+  https://texfaq.org/ for more information on this.
 - To obtain the user manual:
   o run: latex appendix.dtx
   o run: makeindex -s gind.ist appendix
   o run: latex appendix.dtx
-  o Print appendix.dvi for a hardcopy of the package manual 
+  o Print appendix.dvi for a hardcopy of the package manual
 

Modified: trunk/Master/texmf-dist/doc/latex/appendix/appendix.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/appendix/appendix.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/appendix/appendix.dtx	2020-02-08 22:16:07 UTC (rev 53717)
+++ trunk/Master/texmf-dist/source/latex/appendix/appendix.dtx	2020-02-08 22:16:20 UTC (rev 53718)
@@ -3,10 +3,11 @@
 % Author: Peter Wilson, Herries Press
 % Maintainer: Will Robertson (will dot robertson at latex-project dot org)
 % Copyright 1998--2004 Peter R. Wilson
+% Copyright 2009--2020 Will Robertson
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
-% version 1.3c of this license or (at your option) any 
+% version 1.3c of this license or (at your option) any
 % later version: <http://www.latex-project.org/lppl.txt>
 %
 % This work has the LPPL maintenance status "maintained".
@@ -14,7 +15,7 @@
 %
 % This work consists of the files listed in the README file.
 %
-% 
+%
 %<*driver>
 \documentclass{ltxdoc}
 \EnableCrossrefs
@@ -27,8 +28,6 @@
 %
 % \fi
 %
-% \CheckSum{481}
-%
 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
 % \DoNotIndex{\@centercr,\@cite}
 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
@@ -79,6 +78,7 @@
 % \changes{v1.2}{2002/08/06}{Don't need the ifthen package any more}
 % \changes{v1.2a}{2004/04/16}{Changed license and contact details}
 % \changes{v1.2b}{2009/09/02}{New maintainer (Will Robertson)}
+% \changes{v1.2c}{2020/02/08}{Fix clash with hyperref}
 %
 % \def\dtxfile{appendix.dtx}
 % \def\fileversion{v1.1}  \def\filedate{2000/02/29}
@@ -86,6 +86,7 @@
 % \def\fileversion{v1.2}  \def\filedate{2002/08/06}
 % \def\fileversion{v1.2a} \def\filedate{2004/04/16}
 % \def\fileversion{v1.2b} \def\filedate{2009/09/02}
+% \def\fileversion{v1.2c} \def\filedate{2020/02/08}
 %
 % \newcommand*{\Lpack}[1]{\textsf {#1}}           ^^A typeset a package
 % \newcommand*{\Lopt}[1]{\textsf {#1}}            ^^A typeset an option
@@ -114,7 +115,7 @@
 % The package
 % is designed to work only with classes that have a |\chapter| and/or
 % |\section| command. It has not been tested with other packages
-% that change the definitions of the sectioning commands. 
+% that change the definitions of the sectioning commands.
 % \end{abstract}
 % \tableofcontents
 %
@@ -139,9 +140,9 @@
 %  \end{itemize}
 %
 % The \Lpack{appendix} package provides additional appendixing capabilities.
-% It cooperates with the \Lpack{hyperref} 
-% package\footnote{With thanks to Hylke W. van Dijk 
-% (\texttt{hylke at ubicom.tudelft.nl}) who pointed out that version~1.1 did 
+% It cooperates with the \Lpack{hyperref}
+% package\footnote{With thanks to Hylke W. van Dijk
+% (\texttt{hylke at ubicom.tudelft.nl}) who pointed out that version~1.1 did
 % not and set me on the track for supporting the \Lpack{hyperref} package.}
 % but may be problematic when used with packages that change the definition
 % of the sectioning commands.
@@ -160,7 +161,7 @@
 % The \Lpack{appendix} package provides some commands that can be
 % used in addition to the |\appendix| command. It also provides
 % a new environment that can be used instead of the |\appendix| command.
-% The environment provides some addtional actions with respect to
+% The environment provides some additional actions with respect to
 % the simple |\appendix|. First the new commands will be described and
 % then the new environment will be discussed.
 %
@@ -191,18 +192,18 @@
 % For symmetry, the |\appendicestocpagenum| command ensures that
 % a page number is put in the ToC.
 %
-% \textbf{NOTE:} Unless |\noappendicestocpagenum| is used 
-% the |\addappheadtotoc| command uses the 
+% \textbf{NOTE:} Unless |\noappendicestocpagenum| is used
+% the |\addappheadtotoc| command uses the
 % current page number
 % when it makes the entry in the ToC. The |\appendixpage| command puts
 % a heading in the document like a |\part| heading; in un-chaptered documents
-% the |\part| heading appears in the ordinary run of the text like a 
+% the |\part| heading appears in the ordinary run of the text like a
 % |\section| heading, but in chaptered documents it is on a page by itself.
 % That is, in chaptered documents |\appendixpage| does a |\clear[double]page|
 % typesets the heading, and then does another |\clear[double]page|. Therefore,
-% in a chaptered document the above sequence of 
+% in a chaptered document the above sequence of
 % commands will use the page number
-% \emph{after} the |\appendixpage| as the ToC 
+% \emph{after} the |\appendixpage| as the ToC
 % entry\footnote{With thanks to Eduardo Jacob (\texttt{edu at kender.es})
 % for pointing this out.} and if the ordering
 % is reversed (i.e., |\addappheadtotoc| |\appendixname|) then the page number
@@ -212,8 +213,8 @@
 % |    \addappheadtotoc| \\
 % |    \appendixpage| \\
 % which will use the page number of |\appendixpage| as the ToC entry.
-% 
 %
+%
 % \DescribeMacro{\appendixname}
 % \DescribeMacro{\appendixtocname}
 % \DescribeMacro{\appendixpagename}
@@ -220,7 +221,7 @@
 % The |\appendixname| command is defined in those classes that provide
 % for chapters. It is provided in this package whether or not it has
 % been defined in the class. It's default value is `Appendix'.
-% The default value of both |\appendixtocname| and |\appendixpagename| is 
+% The default value of both |\appendixtocname| and |\appendixpagename| is
 % `Appendices'. These names can all be changed via |\renewcommand|.
 % For example,
 % \begin{verbatim}
@@ -229,11 +230,11 @@
 %
 % \DescribeEnv{appendices}
 % The |appendices| environment can be used instead of the |\appendix|
-% command. It provides more functionality than is possible from the 
+% command. It provides more functionality than is possible from the
 % combination of the |\appendix|, |\addappheadtotoc| and |\appendixpage|
 % commands.
 % The functions of the |appendices| environment are usually accessed through
-% the package options, but there are declarations that mey be used insted. 
+% the package options, but there are declarations that may be used instead.
 % The options are:
 % \begin{itemize}
 % \item \Lopt{toc} Put a header (e.g., `Appendices') into the Table
@@ -243,7 +244,7 @@
 %       at the point where the |appendices| environment is begun.
 %       (This is done by calling the |\appendixpage| command.)
 % \item \Lopt{title} Adds a name (e.g., `Appendix') before each appendix
-%       title in the body of the document. 
+%       title in the body of the document.
 %       The name is given by the value of |\appendixname|.
 %       Note that this is the default behaviour for classes that have
 %       chapters.
@@ -277,29 +278,29 @@
 % \DescribeMacro{\appendixpageon}
 % \DescribeMacro{\appendixpageoff}
 % |\appendixpagecon| is a declaration equivalent to the \Lopt{page} option.
-% The |\appendixpageoff| declaration is equivalent to not using 
+% The |\appendixpageoff| declaration is equivalent to not using
 % that option.
 %
 % \DescribeMacro{\appendixtitleon}
 % \DescribeMacro{\appendixtitleoff}
 % |\appendixtitleon| is a declaration equivalent to the \Lopt{title} option.
-% The |\appendixtitleoff| declaration is equivalent to not using 
+% The |\appendixtitleoff| declaration is equivalent to not using
 % that option.
 %
 % \DescribeMacro{\appendixtitletocon}
 % \DescribeMacro{\appendixtitletocoff}
 % |\appendixtitletocon| is a declaration equivalent to the \Lopt{titletoc} option.
-% The |\appendixtitletocoff| declaration is equivalent to not using 
+% The |\appendixtitletocoff| declaration is equivalent to not using
 % that option.
 %
 % \DescribeMacro{\appendixheaderon}
 % \DescribeMacro{\appendixheaderoff}
 % |\appendixheaderon| is a declaration equivalent to the \Lopt{header} option.
-% The |\appendixheaderoff| declaration is equivalent to not using 
+% The |\appendixheaderoff| declaration is equivalent to not using
 % that option.
 %
 % \DescribeMacro{\restoreapp}
-%     The |appendices| environment restores the prior value of the 
+%     The |appendices| environment restores the prior value of the
 % chapter/section counter at the end of the environment, so the
 % environment may be used between the main document divisions. By default,
 % the appendix counter value is saved and restored by the environment. That
@@ -311,7 +312,7 @@
 % \DescribeEnv{subappendices}
 % Within the |subappendices| environment, an appendix is introduced by a
 % |\section| command in chaptered documents, otherwise it is introduced
-% by a |\subsection| command. Effectively, this provides for appendices 
+% by a |\subsection| command. Effectively, this provides for appendices
 % at the end of a main document division, as an integral
 % part of the division. The |subappendices| environment supports only
 % the \Lopt{title} and \Lopt{titletoc} options.
@@ -337,9 +338,9 @@
 % then the text of the |\addcontentsline| command (`addtotoc' in the example)
 % is not written to the
 % appropriate (toc) file until \textit{after} the included file has written all
-% its entries out to the (toc) file. As far as I can tell, there is no way 
+% its entries out to the (toc) file. As far as I can tell, there is no way
 % around this behaviour without rewriting parts of the \LaTeX{} kernel code.
-% 
+%
 %     It is thus up to the author to avoid putting an |\addcontentsline| command
 % (or a command that internally uses |\addcontentsline|, as does the
 % |\addappheadtotoc| command) before
@@ -356,10 +357,23 @@
 %    \begin{macrocode}
 %<*usc>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{appendix}[2009/09/02 v1.2b extra appendix facilities]
-
+\ProvidesPackage{appendix}[2020/02/08 v1.2c extra appendix facilities]
 %    \end{macrocode}
 %
+% Check that an \cs{appendix} command is actually defined and emit a warning
+% if not.
+%    \begin{macrocode}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+  \expandafter\ifx\csname appendix\endcsname\relax
+    \PackageWarningNoLine{appendix}{%
+      No \protect\appendix\space command in this document class!%
+      \MessageBreak
+      Trying to create an appendix will probably fail%
+    }%
+  \fi
+%    \end{macrocode}
+%
+%
 % In order to try and avoid name clashes with other packages, each internal
 % name will include the character string |@pp|.
 %
@@ -553,7 +567,7 @@
 % \begin{macro}{\appendixpage}
 % The command to typeset a page announcing the start of the appendices.
 % It is based on the |\part| definition (either from the \Lpack{book}
-% class or the \Lpack{article} class). 
+% class or the \Lpack{article} class).
 %    \begin{macrocode}
 \newcommand{\appendixpage}{%
   \if at chapter@pp \@chap at pppage \else \@sec at pppage \fi
@@ -562,10 +576,10 @@
 % \end{macro}
 %
 % \begin{macro}{\clear at ppage}
-%  The non-chaptered classes do not define |\if at openright|, but we need to 
+%  The non-chaptered classes do not define |\if at openright|, but we need to
 % use this for chaptered documents to clear the appropriate pages.
 % |\clear at ppage| does the right thing, but must only be called in
-% chapter related code, otherwise there will be error message like 
+% chapter related code, otherwise there will be error message like
 % |extra \else| or |extra \fi|.
 %    \begin{macrocode}
 \newcommand{\clear at ppage}{%
@@ -576,7 +590,7 @@
 %
 % \begin{macro}{\@chap at pppage}
 % Do an appendix page in chapter style.
-% Copy code from the \Lpack{book} class |\part| command, but use 
+% Copy code from the \Lpack{book} class |\part| command, but use
 % |\appendixpagename| as the title.
 %    \begin{macrocode}
 \newcommand{\@chap at pppage}{%
@@ -619,8 +633,8 @@
 % \end{macro}
 %
 % \begin{macro}{\@sec at pppage}
-% Copy code from the \Lpack{article} class |\part| command, but use 
-% |\appendixpagename| as 
+% Copy code from the \Lpack{article} class |\part| command, but use
+% |\appendixpagename| as
 % the title.
 %    \begin{macrocode}
 \newcommand{\@sec at pppage}{%
@@ -650,11 +664,11 @@
 % \begin{macro}{\noappendicestocpagenum}
 % \begin{macro}{\appendicestocpagenum}
 % \begin{macro}{\addappheadtotoc}
-% The |\addappheadtotoc| command adds an `appendices' line to the ToC. 
+% The |\addappheadtotoc| command adds an `appendices' line to the ToC.
 % The style is the same
 % as used in \Lpack{tocbibind} for the `List of figures' line. That is,
 % as a Chapter heading or a Section heading. |\if at pptocpage| controls
-% whether ot not a page number is put into the ToC.
+% whether or not a page number is put into the ToC.
 % \changes{v1.2}{2002/08/06}{Added \cs{noappendicestocpagenum} and changed
 %                           \cs{addappheadtotoc}}
 %    \begin{macrocode}
@@ -678,7 +692,7 @@
         \addtocontents{toc}%
           {\protect\contentsline{chapter}{\appendixtocname}{}}%
       \fi
-    \fi      
+    \fi
   \else
 %    \end{macrocode}
 % Not a chaptered document
@@ -740,7 +754,7 @@
 %
 % \begin{macro}{\theH at pps}
 % We are going to use |\theH at pps| to disambiguate contents of appendices
-% that might have the same hyperref marks. It is |\provide|d as if 
+% that might have the same hyperref marks. It is |\provide|d as if
 % the \Lpack{appendix} and \Lpack{hyperref} are in the `wrong' order
 % then somehow \Lpack{hyperref} defines it before \Lpack{appendix}
 % can get to it.
@@ -754,7 +768,7 @@
 % \begin{macro}{\@resets at pp}
 % Resets the appropriate sectioning counters and names. This does almost
 % exactly
-% what the default |\appendix| command does, except that it saves and 
+% what the default |\appendix| command does, except that it saves and
 % restores sectional numbering. It saves the sectional number at the start
 % and restores the appendix number at the end.
 % \changes{v1.1}{2000/02/29}{Added number save/restore to \cs{@reset at pp}}
@@ -781,7 +795,7 @@
     \else
       \renewcommand{\theHsection}{\theH at pps.\Alph{section}}%
     \fi
-    \def\Hy at chapapp{\appendixname}%
+    \xdef\Hy at chapapp{\Hy at appendixstring}%
   \fi
   \restoreapp
 }
@@ -798,7 +812,7 @@
 %    \begin{macrocode}
 \newenvironment{appendices}{%
   \@resets at pp
-  \if at dotoc@pp 
+  \if at dotoc@pp
     \if at dopage@pp              % both page and toc
       \if at chapter@pp           % chapters
         \clear at ppage
@@ -824,7 +838,7 @@
     \if at dotitletoc@pp \@redotocentry at pp{chapter} \fi
   \else
 %    \end{macrocode}
-% The rest of the code is specific to the section style. While we're in the 
+% The rest of the code is specific to the section style. While we're in the
 % mood we might as well finish off doing the \Lopt{titletoc} option.
 %    \begin{macrocode}
     \if at dotitletoc@pp \@redotocentry at pp{section} \fi
@@ -832,7 +846,7 @@
 % The next piece of code implements the \Lopt{header} option by providing
 % a special version of |\sectionmark|.
 %    \begin{macrocode}
-    \if at dohead@pp 
+    \if at dohead@pp
       \def\sectionmark##1{%
         \if at twoside
           \markboth{\@formatsecmark at pp{##1}}{}
@@ -842,7 +856,7 @@
     \fi
 %    \end{macrocode}
 % The next piece of code implements the \Lopt{title} option by doing cunning
-% things with the |\@seccntformat|.\footnote{From a posting to 
+% things with the |\@seccntformat|.\footnote{From a posting to
 % \texttt{comp.tex.tex} by Donald Arseneau on 13 August 1998.}
 %    \begin{macrocode}
     \if at dotitle@pp
@@ -874,8 +888,8 @@
 % \end{macro}
 %
 % \begin{macro}{\@resets at ppsub}
-% Similar to |\@resets at pp| except that it is for use within the 
-% |subappendices| envirionment; as such, it is a bit simpler.
+% Similar to |\@resets at pp| except that it is for use within the
+% |subappendices| environment; as such, it is a bit simpler.
 % \changes{v1.1}{2000/02/29}{Added \cs{@resets at ppsub} command}
 % \changes{v1.2}{2002/08/07}{Added hyperref code to \cs{@resets at ppsub}}
 %    \begin{macrocode}
@@ -897,7 +911,7 @@
     \else
       \renewcommand{\theHsubsection}{\theH at pps.\setthesubsection}%
     \fi
-    \def\Hy at chapapp{\appendixname}%
+    \xdef\Hy at chapapp{\Hy at appendixstring}%
   \fi
 }
 
@@ -906,7 +920,7 @@
 %
 % \begin{environment}{subappendices}
 %  The environment for subappendices. Start it off by doing the resetting
-% of the |\(sub)section| command. 
+% of the |\(sub)section| command.
 % \changes{v1.1}{2000/02/29}{Added subappendices environment}
 %    \begin{macrocode}
 \newenvironment{subappendices}{%
@@ -958,13 +972,13 @@
 % |\addcontentsline| command which is used to put entries into the ToC.
 % |\@redotocentry at pp{|\meta{sect}|}| does the redefinition, where \meta{sect}
 % is the name of the sectional heading (i.e., either chapter or section).
-% \changes{v1.2}{2002/08/06}{Replaced ifthen package code in 
+% \changes{v1.2}{2002/08/06}{Replaced ifthen package code in
 %                \cs{@redotocentry at pp} by \cs{ifx} code.}
 % \changes{v1.2}{2002/08/06}{HW mods to \cs{@redotocentry at pp}}
 %    \begin{macrocode}
 \newcommand{\@redotocentry at pp}[1]{%
 %    \end{macrocode}
-% Save the original definition of |\addcontentsline|. Then start the 
+% Save the original definition of |\addcontentsline|. Then start the
 % redefinition.
 %    \begin{macrocode}
   \let\oldacl at pp=\addcontentsline
@@ -980,7 +994,7 @@
       \def\@pptempa{##2}\def\@pptempb{#1}%
       \ifx\@pptempa\@pptempb
 %    \end{macrocode}
-% The sectioning command is the same as that specified by the argument to 
+% The sectioning command is the same as that specified by the argument to
 % |\@redotocentry at pp|, so get on with the redefinition.
 %    \begin{macrocode}
 	\oldacl at pp{##1}{##2}{\appendixname\space ##3}%

Modified: trunk/Master/texmf-dist/source/latex/appendix/appendix.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/appendix/appendix.ins	2020-02-08 22:16:07 UTC (rev 53717)
+++ trunk/Master/texmf-dist/source/latex/appendix/appendix.ins	2020-02-08 22:16:20 UTC (rev 53718)
@@ -2,10 +2,11 @@
 %% Author: Peter Wilson, Herries Press
 %% Maintainer: Will Robertson (will dot robertson at latex-project dot org)
 %% Copyright 1998--2004 Peter R. Wilson
+%% Copyright 2009--2020 Will Robertson
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any 
+%% version 1.3c of this license or (at your option) any
 %% later version: <http://www.latex-project.org/lppl.txt>
 %%
 %% This work has the LPPL maintenance status "maintained".
@@ -25,21 +26,22 @@
 \input docstrip.tex
 \preamble
 
------------------------------------------------------------------ 
+-----------------------------------------------------------------
   Author: Peter Wilson, Herries Press
   Maintainer: Will Robertson (will dot robertson at latex-project dot org)
   Copyright 1998--2004 Peter R. Wilson
- 
+  Copyright 2009--2020 Will Robertson
+
   This work may be distributed and/or modified under the
   conditions of the LaTeX Project Public License, either
-  version 1.3c of this license or (at your option) any 
+  version 1.3c of this license or (at your option) any
   later version: <http://www.latex-project.org/lppl.txt>
 
   This work has the LPPL maintenance status "maintained".
   The Current Maintainer of this work is Will Robertson.
- 
+
   This work consists of the files listed in the README file.
------------------------------------------------------------------ 
+-----------------------------------------------------------------
 
 \endpreamble
 \askforoverwritefalse

Modified: trunk/Master/texmf-dist/tex/latex/appendix/appendix.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/appendix/appendix.sty	2020-02-08 22:16:07 UTC (rev 53717)
+++ trunk/Master/texmf-dist/tex/latex/appendix/appendix.sty	2020-02-08 22:16:20 UTC (rev 53718)
@@ -10,6 +10,7 @@
 %%   Author: Peter Wilson, Herries Press
 %%   Maintainer: Will Robertson (will dot robertson at latex-project dot org)
 %%   Copyright 1998--2004 Peter R. Wilson
+%%   Copyright 2009--2020 Will Robertson
 %% 
 %%   This work may be distributed and/or modified under the
 %%   conditions of the LaTeX Project Public License, either
@@ -23,8 +24,15 @@
 %% -----------------------------------------------------------------
 %% 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{appendix}[2009/09/02 v1.2b extra appendix facilities]
-
+\ProvidesPackage{appendix}[2020/02/08 v1.2c extra appendix facilities]
+\begingroup\expandafter\expandafter\expandafter\endgroup
+  \expandafter\ifx\csname appendix\endcsname\relax
+    \PackageWarningNoLine{appendix}{%
+      No \protect\appendix\space command in this document class!%
+      \MessageBreak
+      Trying to create an appendix will probably fail%
+    }%
+  \fi
 \newif\if at chapter@pp\@chapter at ppfalse
 \newif\if at knownclass@pp\@knownclass at ppfalse
 \@ifundefined{chapter}{%
@@ -188,7 +196,7 @@
     \else
       \renewcommand{\theHsection}{\theH at pps.\Alph{section}}%
     \fi
-    \def\Hy at chapapp{\appendixname}%
+    \xdef\Hy at chapapp{\Hy at appendixstring}%
   \fi
   \restoreapp
 }
@@ -250,7 +258,7 @@
     \else
       \renewcommand{\theHsubsection}{\theH at pps.\setthesubsection}%
     \fi
-    \def\Hy at chapapp{\appendixname}%
+    \xdef\Hy at chapapp{\Hy at appendixstring}%
   \fi
 }
 



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