summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/appendixnumberbeamer
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-15 22:19:53 +0000
committerKarl Berry <karl@freefriends.org>2018-01-15 22:19:53 +0000
commit1cffeb47b775226f1d947b95055f86daac06c88a (patch)
treefb4e08cc211c86b8b43b91c3386d9082704692d2 /Master/texmf-dist/tex/latex/appendixnumberbeamer
parenta783b79765d8c094d57eac4d78bdd649cabcfe55 (diff)
appendixnumberbeamer (15jan18)
git-svn-id: svn://tug.org/texlive/trunk@46317 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/appendixnumberbeamer')
-rw-r--r--Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty19
1 files changed, 11 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty b/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty
index 454ecd1455d..00986f87d54 100644
--- a/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty
+++ b/Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty
@@ -1,8 +1,11 @@
% vim:ft=plaintex:
%
% Written and (C) by Jérôme Lelong <jerome.lelong@gmail.com>
-% 2007 - 2016
-%
+% 2007 - 2018
+%
+% Patch from Sebastian Friedl <sfr682k@t-online.de> to fix issue #1
+% for Beamer >= 3.48.
+%
% 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
% Free Software Foundation; either version 3 of the License, or (at your
@@ -29,7 +32,7 @@
\makeatletter
-\let\appendixtotalframenumber\empty
+\gdef\appendixtotalframenumber{0}
\def\mainend{-1}
\let\appendixorig\appendix
@@ -40,7 +43,7 @@
\xdef\mainend{\theframenumber}
\immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}}
\appendixorig
- \gdef\inserttotalframenumber{\appendixtotalframenumber}%
+ \headcommand{\gdef\inserttotalframenumber{\appendixtotalframenumber}}%
\setcounter{framenumber}{0}
}
@@ -51,10 +54,10 @@
\ifnum\mainend>0%
\immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}%
\immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}%
- \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
- \noexpand \def\noexpand \inserttotalframenumber{\mainend}}}}%
- \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
- \noexpand \def\noexpand \appendixtotalframenumber{\appendixend}}}}%
+ \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand{%
+ \noexpand\gdef\noexpand\inserttotalframenumber{\mainend}}}}%
+ \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand{%
+ \noexpand\gdef\noexpand\appendixtotalframenumber{\appendixend}}}}%
\else
\fi
}