diff options
4 files changed, 26 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/appendixnumberbeamer/README b/Master/texmf-dist/doc/latex/appendixnumberbeamer/README deleted file mode 100644 index b19ecfa713f..00000000000 --- a/Master/texmf-dist/doc/latex/appendixnumberbeamer/README +++ /dev/null @@ -1,12 +0,0 @@ -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/doc/latex/appendixnumberbeamer/README.md b/Master/texmf-dist/doc/latex/appendixnumberbeamer/README.md new file mode 100644 index 00000000000..e3c93207501 --- /dev/null +++ b/Master/texmf-dist/doc/latex/appendixnumberbeamer/README.md @@ -0,0 +1,14 @@ +# appendixnumberbeamer.sty + +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 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. + +This package is also available from +http://www.ctan.org/pkg/appendixnumberbeamer and is included in the +TeXLive and MiKTeX distributions
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/appendixnumberbeamer/VERSION b/Master/texmf-dist/doc/latex/appendixnumberbeamer/VERSION new file mode 100644 index 00000000000..5625e59da88 --- /dev/null +++ b/Master/texmf-dist/doc/latex/appendixnumberbeamer/VERSION @@ -0,0 +1 @@ +1.2 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 } |