From 1cffeb47b775226f1d947b95055f86daac06c88a Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 15 Jan 2018 22:19:53 +0000
Subject: appendixnumberbeamer (15jan18)

git-svn-id: svn://tug.org/texlive/trunk@46317 c570f23f-e606-0410-a88d-b1316a301751
---
 .../appendixnumberbeamer/appendixnumberbeamer.sty     | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/appendixnumberbeamer/appendixnumberbeamer.sty')

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
 }
-- 
cgit v1.2.3

