summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-02-08 22:16:20 +0000
committerKarl Berry <karl@freefriends.org>2020-02-08 22:16:20 +0000
commit49a6d81b78d45a76ba5a703cf89fa6cf1825d28a (patch)
treed8bdae81929e6bbbe76559b52fbffa3890ac8a3a /Master/texmf-dist/tex
parent9e39dfea71197e6b97d2223b0941d2c375ee0663 (diff)
appendix (8feb20)
git-svn-id: svn://tug.org/texlive/trunk@53718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/appendix/appendix.sty16
1 files changed, 12 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/appendix/appendix.sty b/Master/texmf-dist/tex/latex/appendix/appendix.sty
index 818a915617a..405a10032dc 100644
--- a/Master/texmf-dist/tex/latex/appendix/appendix.sty
+++ b/Master/texmf-dist/tex/latex/appendix/appendix.sty
@@ -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@chapter@pp\@chapter@ppfalse
\newif\if@knownclass@pp\@knownclass@ppfalse
\@ifundefined{chapter}{%
@@ -188,7 +196,7 @@
\else
\renewcommand{\theHsection}{\theH@pps.\Alph{section}}%
\fi
- \def\Hy@chapapp{\appendixname}%
+ \xdef\Hy@chapapp{\Hy@appendixstring}%
\fi
\restoreapp
}
@@ -250,7 +258,7 @@
\else
\renewcommand{\theHsubsection}{\theH@pps.\setthesubsection}%
\fi
- \def\Hy@chapapp{\appendixname}%
+ \xdef\Hy@chapapp{\Hy@appendixstring}%
\fi
}