From 9916f3d15131501fa42c8e5e2c97266fef51218c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1o=20=C5=BDivanovi=C4=87?= Date: Fri, 15 Mar 2024 09:54:47 +0100 Subject: [PATCH] Clear Memoize's `begindocument` hooks after executing them. --- memoize.edtx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/memoize.edtx b/memoize.edtx index d344f55..c7d8e17 100644 --- a/memoize.edtx +++ b/memoize.edtx @@ -3834,6 +3834,14 @@ end document/.style={enddocument/afterlastpage}, } % +% We clear the hooks after executing the last of them. +\mmzset{ + begindocument/end/.append style={ + begindocument/before/.code={}, + begindocument/.code={}, + begindocument/end/.code={}, + } +} % \end{key} % % Formats other than \hologo{plainTeX} need a way to prevent extraction during