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:
parent
c2f073283a
commit
1ca26e857a
|
@ -202,6 +202,7 @@
|
||||||
\setbeamertemplate{title separator}{
|
\setbeamertemplate{title separator}{
|
||||||
\tikzexternaldisable%
|
\tikzexternaldisable%
|
||||||
\begin{tikzpicture}
|
\begin{tikzpicture}
|
||||||
|
\mmzUnmemoizable%
|
||||||
\fill[fg] (0,0) rectangle (\textwidth, \moloch@titleseparator@linewidth);
|
\fill[fg] (0,0) rectangle (\textwidth, \moloch@titleseparator@linewidth);
|
||||||
\end{tikzpicture}%
|
\end{tikzpicture}%
|
||||||
\tikzexternalenable%
|
\tikzexternalenable%
|
||||||
|
@ -342,6 +343,7 @@
|
||||||
}
|
}
|
||||||
\tikzexternaldisable
|
\tikzexternaldisable
|
||||||
\begin{tikzpicture}
|
\begin{tikzpicture}
|
||||||
|
\mmzUnmemoizable%
|
||||||
\fill[bg]
|
\fill[bg]
|
||||||
(0,0)
|
(0,0)
|
||||||
rectangle
|
rectangle
|
||||||
|
|
|
@ -199,6 +199,7 @@
|
||||||
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
|
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
|
||||||
\tikzexternaldisable
|
\tikzexternaldisable
|
||||||
\begin{tikzpicture}
|
\begin{tikzpicture}
|
||||||
|
\mmzUnmemoizable%
|
||||||
\fill[bg]
|
\fill[bg]
|
||||||
(0,0)
|
(0,0)
|
||||||
rectangle
|
rectangle
|
||||||
|
|
|
@ -56,10 +56,13 @@
|
||||||
% them with ``tikzexternalenable'' and ``tikzexternaldisable''. However, if the
|
% them with ``tikzexternalenable'' and ``tikzexternaldisable''. However, if the
|
||||||
% ``external'' libray is not loaded we would get undefined control sequence
|
% ``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.
|
% 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}
|
% \begin{macrocode}
|
||||||
\providecommand{\tikzexternalenable}{}
|
\providecommand{\tikzexternalenable}{}
|
||||||
\providecommand{\tikzexternaldisable}{}
|
\providecommand{\tikzexternaldisable}{}
|
||||||
|
\providecommand{\mmzUnmemoizable}{}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
%
|
%
|
||||||
% \subsubsection{Component sub-packages}
|
% \subsubsection{Component sub-packages}
|
||||||
|
|
Loading…
Reference in New Issue