diff options
author | Karl Berry <karl@freefriends.org> | 2017-03-05 21:38:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-03-05 21:38:33 +0000 |
commit | c83a6978f6e5eb7456783ecb1401896859d19b4d (patch) | |
tree | 4216b727c766c940a3a47810b378ccd8ab6feb95 /Master/texmf-dist/tex | |
parent | a642a9d24ca74eb111c8595dd1f9fa7181f065c2 (diff) |
overlays (5mar17)
git-svn-id: svn://tug.org/texlive/trunk@43404 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/overlays/overlays.sty | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/overlays/overlays.sty b/Master/texmf-dist/tex/latex/overlays/overlays.sty index 2db16f624ba..151a34ea69a 100644 --- a/Master/texmf-dist/tex/latex/overlays/overlays.sty +++ b/Master/texmf-dist/tex/latex/overlays/overlays.sty @@ -1,9 +1,9 @@ -\ProvidesPackage{overlays}[2016/10/24 v2.4 Incremental slides] +\ProvidesPackage{overlays}[2017/03/04 v2.5 Incremental slides] -% Copyright (C) 2016 Andreas Nolda +% Copyright (C) 2017 Andreas Nolda % Author: Andreas Nolda <andreas@nolda.org> -% Version: 2.4 +% Version: 2.5 % This work may be distributed and/or modified under the conditions of the LaTeX % Project Public License, either version 1.3 of this license or (at your option) @@ -22,17 +22,29 @@ \RequirePackage{pgffor} \def\s@vedcounters{} +\def\s@vedseries{} -\def\s@vecounters% +\def\s@vecounters {\begingroup \def\@elt##1{\global\csname c@##1\endcsname\the\csname c@##1\endcsname}% \xdef\restores@vedcounters{\s@vedcounters}% \endgroup} -\newcommand{\savebetweenoverlays}[1]% - {\expandafter\def - \expandafter\s@vedcounters - \expandafter{\s@vedcounters\@elt{#1}}} +\def\s@veseries + {\begingroup + \def\@elt##1{\def\expandafter\noexpand\csname enit@resume@series@##1\endcsname% + {\csname c@##1i\endcsname\csname the##1i\endcsname}}% + \xdef\restores@vedseries{\s@vedseries}% + \endgroup} + +\newcommand{\savecounterbetweenoverlays}[1]% + {\expandafter\def\expandafter\s@vedcounters\expandafter{\s@vedcounters\@elt{#1}}} + +\let\savebetweenoverlays\savecounterbetweenoverlays % for backward compatibility + +\newcommand{\saveseriesbetweenoverlays}[1]% + {\expandafter\newcount\csname s@ve#1i\endcsname + \expandafter\def\expandafter\s@vedseries\expandafter{\s@vedseries\@elt{#1}}} \savebetweenoverlays{page} \savebetweenoverlays{equation} @@ -42,6 +54,7 @@ \NewEnviron{overlays}[1]% {\s@vecounters + \s@veseries \maxoverl@y=#1% \curoverl@y=0% \loop @@ -52,6 +65,7 @@ \ifnum\curoverl@y<\maxoverl@y% \clearpage \restores@vedcounters + \restores@vedseries \repeat} \newwrite\verb@timfileout |