Debian Codegraph @

texmf-dist/tex/latex/memoize/memoize-beamer.code.tex

raw
1 %%
2 %% This is file `memoize-beamer.code.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% memoize.dtx (with options: `beamer')
8 %%
9 %% This file is a part of Memoize, a TeX package for externalization of
10 %% graphics and memoization of compilation results in general, available at
11 %% https://ctan.org/pkg/memoize and https://github.com/sasozivanovic/memoize.
12 %%
13 %% Copyright (c) 2020- Saso Zivanovic <[email protected]>
14 %% (Sa\v{s}o \v{Z}ivanovi\'{c})
15 %%
16 %% This work may be distributed and/or modified under the conditions of the
17 %% LaTeX Project Public License, either version 1.3c of this license or (at
18 %% your option) any later version. The latest version of this license is in
19 %% https://www.latex-project.org/lppl.txt and version 1.3c or later is part of
20 %% all distributions of LaTeX version 2008 or later.
21 %%
22 %% This work has the LPPL maintenance status `maintained'.
23 %% The Current Maintainer of this work is Saso Zivanovic.
24 %%
25 %% The files belonging to this work and covered by LPPL are listed in
26 %% (<texmf>/doc/generic/memoize/)FILES.
27 \mmzset{
28 per overlay/.code={},
29 beamer mode to prefix/.style={
30 prefix=\mmz@prefix@dir\mmz@prefix@name\beamer@currentmode_mode.
31 },
32 }%
33 \@ifclassloaded{beamer}{%
34 \mmzset{
35 per overlay/.style={
36 /mmz/context={%
37 overlay=\csname beamer@overlaynumber\endcsname,
38 pauses=\ifmemoizing
39 \mmzBeamerPauses
40 \else
41 \expandafter\the\csname c@beamerpauses\endcsname
42 \fi
43 },
44 /mmz/at begin memoization={%
45 \xdef\mmzBeamerPauses{\the\c@beamerpauses}%
46 \xtoksapp\mmzCMemo{%
47 \noexpand\mmzSetBeamerOverlays{\mmzBeamerPauses}{\beamer@overlaynumber}}%
48 \gtoksapp\mmzCCMemo{%
49 \only<all:\mmzBeamerOverlays>{}}%
50 },
51 /mmz/at end memoization={%
52 \xtoksapp\mmzCCMemo{%
53 \noexpand\setcounter{beamerpauses}{\the\c@beamerpauses}}%
54 },
55 /mmz/per overlay/.code={},
56 },
57 }
58 \def\mmzSetBeamerOverlays#1#2{%
59 \ifnum\c@beamerpauses=#1\relax
60 \gdef\mmzBeamerOverlays{#2}%
61 \ifnum\beamer@overlaynumber<#2\relax \mmz@temptrue \else \mmz@tempfalse \fi
62 \else
63 \mmz@temptrue
64 \fi
65 \ifmmz@temp
66 \appto\mmzAtBeginMemoization{%
67 \gtoksapp\mmzCMemo{\mmzSetBeamerOverlays{#1}{#2}}}%
68 \fi
69 }%
70 }%
71 \endinput
72 %%
73 %% End of file `memoize-beamer.code.tex'.