feat: support memoize package (closes #16)

Inject `\mmzUnmemoizable` into progress bar tikzpictures to avoid the
memoize package memoizing them. Also provide a dummy for this command in
case the memoize package is not loaded.
This commit is contained in:
Johan Larsson 2024-07-04 08:29:57 +02:00
parent c2f073283a
commit 1ca26e857a
3 changed files with 6 additions and 0 deletions

View File

@ -202,6 +202,7 @@
\setbeamertemplate{title separator}{
\tikzexternaldisable%
\begin{tikzpicture}
\mmzUnmemoizable%
\fill[fg] (0,0) rectangle (\textwidth, \moloch@titleseparator@linewidth);
\end{tikzpicture}%
\tikzexternalenable%
@ -342,6 +343,7 @@
}
\tikzexternaldisable
\begin{tikzpicture}
\mmzUnmemoizable%
\fill[bg]
(0,0)
rectangle

View File

@ -199,6 +199,7 @@
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
\tikzexternaldisable
\begin{tikzpicture}
\mmzUnmemoizable%
\fill[bg]
(0,0)
rectangle

View File

@ -56,10 +56,13 @@
% them with ``tikzexternalenable'' and ``tikzexternaldisable''. However, if the
% ``external'' libray is not loaded we would get undefined control sequence
% problems, hence we define them as no-ops if they are not defined yet.
% We do the same for the \mmzUnmemoizable command from the memoize package, in
% order to avoid memoization of the progress bars.
%
% \begin{macrocode}
\providecommand{\tikzexternalenable}{}
\providecommand{\tikzexternaldisable}{}
\providecommand{\mmzUnmemoizable}{}
% \end{macrocode}
%
% \subsubsection{Component sub-packages}