| 1 |
%% |
| 2 |
%% This is file `nomemoize.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% memoize.dtx (with options: `nommz,latex') |
| 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 |
\ProvidesPackage{nomemoize}[2024/12/02 v1.4.1 A no-op stub for Memoize] |
| 28 |
\RequirePackage{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\usepackage{nomemoize}" |
| 48 |
before the |
| 49 |
"\string\usepackage" |
| 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 |
\newenvironment{nomemoize}[1][]{% |
| 69 |
\memoizefalse |
| 70 |
\ignorespaces |
| 71 |
}{% |
| 72 |
\unskip |
| 73 |
} |
| 74 |
\let\memoize\nomemoize |
| 75 |
\let\endmemoize\endnomemoize |
| 76 |
\newif\ifmemoizing |
| 77 |
\newif\ifinmemoize |
| 78 |
\def\mmznext#1{\ignorespaces} |
| 79 |
\InputIfFileExists{memoize.cfg}{}{} |
| 80 |
\DeclareUnknownKeyHandler[mmz]{} |
| 81 |
\ProcessKeyOptions[mmz] |
| 82 |
\pgfkeys{% |
| 83 |
/handlers/.meaning to context/.code={}, |
| 84 |
/handlers/.value to context/.code={}, |
| 85 |
} |
| 86 |
\let\mmzAbort\relax |
| 87 |
\let\mmzUnmemoizable\relax |
| 88 |
\newcommand\IfMemoizing[2][]{\@secondoftwo} |
| 89 |
\let\mmzNoRef\@gobble |
| 90 |
\let\mmzForceNoRef\@gobble |
| 91 |
\newtoks\mmzContext |
| 92 |
\newtoks\mmzContextExtra |
| 93 |
\newtoks\mmzCMemo |
| 94 |
\newtoks\mmzCCMemo |
| 95 |
\newcount\mmzExternPages |
| 96 |
\newcount\mmzExtraPages |
| 97 |
\let\mmzTracingOn\relax |
| 98 |
\let\mmzTracingOff\relax |
| 99 |
\endinput |
| 100 |
%% |
| 101 |
%% End of file `nomemoize.sty'. |