Debian Codegraph @

texmf-dist/tex/plain/memoize/nomemoize.tex

raw
1 %%
2 %% This is file `nomemoize.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% memoize.dtx (with options: `nommz,plain')
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 \input miniltx
28 \input pgfkeys
29 \def\ifmmz@loadstatus#1{%
30 \ifnum#1=0\csname mmz@loadstatus\endcsname\relax
31 \expandafter\@firstoftwo
32 \else
33 \expandafter\@secondoftwo
34 \fi
35 }
36 \ifmmz@loadstatus{1}{%
37 \PackageError{nomemoize}{Cannot load the package, as "memoize" is already
38 loaded; memoization will remain in effect}{Packages "memoize" and
39 "nomemoize" are mutually exclusive, please load either one or the other.}%
40 \endinput }{}%
41 \ifmmz@loadstatus{2}{%
42 \PackageError{nomemoize}{Cannot load the package, as "memoizable" is already
43 loaded}{Package "memoizable" is loaded by packages which support
44 memoization. (No)Memoize must be loaded before all such packages. The
45 compilation log can help you figure out which package loaded
46 "memoizable"; please move
47 "\string\input memoize"
48 before the
49 "\string\input"
50 of that package.}%
51 \endinput
52 }{}%
53 \ifmmz@loadstatus{3}{\endinput}{}%
54 \def\mmz@loadstatus{3}%
55 \def\mmzset#1{\ignorespaces}
56 \def\nommzkeys{\pgfqkeys{/mmz}}
57 \pgfqkeys{/mmz}{.unknown/.code={\pgfkeysdef{\pgfkeyscurrentkey}{}}}
58 \newif\ifmemoize
59 \protected\def\nommz#1#{%
60 \afterassignment\nommz@i
61 \let\mmz@temp
62 }
63 \def\nommz@i{%
64 \bgroup
65 \memoizefalse
66 }
67 \let\mmz\nommz
68 \def\nomemoize{%
69 \begingroup
70 \memoizefalse
71 \futurelet\mmz@temp\nommz@env@i
72 }
73 \def\nommz@env@i{%
74 \ifx\mmz@temp[%]
75 \expandafter\nommz@env@ii
76 \fi
77 }
78 \def\nommz@env@ii[#1]{%
79 \ignorespaces
80 }
81 \def\endnomemoize{%
82 \endgroup
83 \unskip
84 }
85 \let\memoize\nomemoize
86 \let\endmemoize\endnomemoize
87 \newif\ifmemoizing
88 \newif\ifinmemoize
89 \def\mmznext#1{\ignorespaces}
90 \InputIfFileExists{memoize.cfg}{}{}
91 \pgfkeys{%
92 /handlers/.meaning to context/.code={},
93 /handlers/.value to context/.code={},
94 }
95 \let\mmzAbort\relax
96 \let\mmzUnmemoizable\relax
97 \newcommand\IfMemoizing[2][]{\@secondoftwo}
98 \let\mmzNoRef\@gobble
99 \let\mmzForceNoRef\@gobble
100 \newtoks\mmzContext
101 \newtoks\mmzContextExtra
102 \newtoks\mmzCMemo
103 \newtoks\mmzCCMemo
104 \newcount\mmzExternPages
105 \newcount\mmzExtraPages
106 \let\mmzTracingOn\relax
107 \let\mmzTracingOff\relax
108 \resetatcatcode
109 \endinput
110 %%
111 %% End of file `nomemoize.tex'.