summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty')
-rw-r--r--Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty16
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty b/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty
index ec6b0066927..454ecd1455d 100644
--- a/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty
+++ b/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty
@@ -1,7 +1,7 @@
% vim:ft=plaintex:
%
-% Written and (C) by Jérôme Lelong <jerome.lelong@gmail.com>
-% 2007 - 2012
+% Written and (C) by Jérôme Lelong <jerome.lelong@gmail.com>
+% 2007 - 2016
%
% This program is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by the
@@ -34,20 +34,20 @@
\let\appendixorig\appendix
% Redefine the \appendix command:
-% - it resets the framenumber counter
-% - freezes the total framenumber for this first part of the document
+% - Reset the framenumber counter
+% - Freeze the total framenumber for this first part of the document
\def\appendix{
- \edef\mainend{\theframenumber}
+ \xdef\mainend{\theframenumber}
\immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}}
\appendixorig
- \def\inserttotalframenumber{\appendixtotalframenumber}%
+ \gdef\inserttotalframenumber{\appendixtotalframenumber}%
\setcounter{framenumber}{0}
}
-% To be called at the end of document to fix the total framenumber in the
+% To be called at the end of the document to fix the total framenumber in the
% main document and in the appendix.
\def\pageatend{
- \edef\appendixend{\theframenumber}
+ \xdef\appendixend{\theframenumber}
\ifnum\mainend>0%
\immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}%
\immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}%