summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-07 20:50:16 +0000
committerKarl Berry <karl@freefriends.org>2016-04-07 20:50:16 +0000
commitdadeda275fb8a3885b294be5babc0ed298377ee9 (patch)
tree0f062f776979fcc1711b8bade337fa9f7f8f52b2 /Master
parent027a3a27a8e93a75018d1669f09d878638ef6601 (diff)
appendixnumberbeamer (7apr16)
git-svn-id: svn://tug.org/texlive/trunk@40322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/appendixnumberbeamer/README16
-rw-r--r--Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty16
2 files changed, 19 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/appendixnumberbeamer/README b/Master/texmf-dist/doc/latex/appendixnumberbeamer/README
index fe880ca8cf8..b19ecfa713f 100644
--- a/Master/texmf-dist/doc/latex/appendixnumberbeamer/README
+++ b/Master/texmf-dist/doc/latex/appendixnumberbeamer/README
@@ -1,6 +1,12 @@
-This package fixes the frame numbering in beamer when using an
-appendix such that the slides of the appendix are not counted in the
-total frame number of the main part of the document. The total frame
-number counter is reset to 0 and starts counting again when entering
-the appendix.
+appendixnumberbeamer Package -- Jérôme Lelong
+---------------------------------------------
+
+This package fixes the frame numbering in beamer when using an appendix
+such that the slides from the appendix are not counted in the total frame
+number of the main part of the document. The total frame number counter
+is reset to 0 when entering the appendix.
+
+The standard usage is to include \usepackage{appendixnumberbeamer} in
+the preamble and then declare the beginning of the appendix as usual
+using the \appendix command.
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}}%