blob: b6f4a9ba4e5c97658850ec012d3da2ba497da819 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
%%
%% This is file `nomemoize.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% memoize.dtx (with options: `nommz,latex')
%%
%% This file is a part of Memoize, a TeX package for externalization of
%% graphics and memoization of compilation results in general, available at
%% https://ctan.org/pkg/memoize and https://github.com/sasozivanovic/memoize.
%%
%% Copyright (c) 2020- Saso Zivanovic <saso.zivanovic@guest.arnes.si>
%% (Sa\v{s}o \v{Z}ivanovi\'{c})
%%
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3c of this license or (at
%% your option) any later version. The latest version of this license is in
%% https://www.latex-project.org/lppl.txt and version 1.3c or later is part of
%% all distributions of LaTeX version 2008 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%% The Current Maintainer of this work is Saso Zivanovic.
%%
%% The files belonging to this work and covered by LPPL are listed in
%% (<texmf>/doc/generic/memoize/)FILES.
\ProvidesPackage{nomemoize}[2024/12/02 v1.4.1 A no-op stub for Memoize]
\RequirePackage{pgfkeys}
\def\ifmmz@loadstatus#1{%
\ifnum#1=0\csname mmz@loadstatus\endcsname\relax
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
}
\ifmmz@loadstatus{1}{%
\PackageError{nomemoize}{Cannot load the package, as "memoize" is already
loaded; memoization will remain in effect}{Packages "memoize" and
"nomemoize" are mutually exclusive, please load either one or the other.}%
\endinput }{}%
\ifmmz@loadstatus{2}{%
\PackageError{nomemoize}{Cannot load the package, as "memoizable" is already
loaded}{Package "memoizable" is loaded by packages which support
memoization. (No)Memoize must be loaded before all such packages. The
compilation log can help you figure out which package loaded
"memoizable"; please move
"\string\usepackage{nomemoize}"
before the
"\string\usepackage"
of that package.}%
\endinput
}{}%
\ifmmz@loadstatus{3}{\endinput}{}%
\def\mmz@loadstatus{3}%
\def\mmzset#1{\ignorespaces}
\def\nommzkeys{\pgfqkeys{/mmz}}
\pgfqkeys{/mmz}{.unknown/.code={\pgfkeysdef{\pgfkeyscurrentkey}{}}}
\newif\ifmemoize
\protected\def\nommz#1#{%
\afterassignment\nommz@i
\let\mmz@temp
}
\def\nommz@i{%
\bgroup
\memoizefalse
}
\let\mmz\nommz
\newenvironment{nomemoize}[1][]{%
\memoizefalse
\ignorespaces
}{%
\unskip
}
\let\memoize\nomemoize
\let\endmemoize\endnomemoize
\newif\ifmemoizing
\newif\ifinmemoize
\def\mmznext#1{\ignorespaces}
\InputIfFileExists{memoize.cfg}{}{}
\DeclareUnknownKeyHandler[mmz]{}
\ProcessKeyOptions[mmz]
\pgfkeys{%
/handlers/.meaning to context/.code={},
/handlers/.value to context/.code={},
}
\let\mmzAbort\relax
\let\mmzUnmemoizable\relax
\newcommand\IfMemoizing[2][]{\@secondoftwo}
\let\mmzNoRef\@gobble
\let\mmzForceNoRef\@gobble
\newtoks\mmzContext
\newtoks\mmzContextExtra
\newtoks\mmzCMemo
\newtoks\mmzCCMemo
\newcount\mmzExternPages
\newcount\mmzExtraPages
\let\mmzTracingOn\relax
\let\mmzTracingOff\relax
\endinput
%%
%% End of file `nomemoize.sty'.
|