summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/chem-str.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/chem-str.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/chem-str.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/chem-str.lua b/Master/texmf-dist/tex/context/base/mkiv/chem-str.lua
index 9f0738fc516..7581a61d115 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/chem-str.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/chem-str.lua
@@ -766,6 +766,9 @@ function chemistry.stop()
if trace_metapost then
report_chemistry("metapost code:\n%s", mpcode)
end
+ if metapost.instance(chemistry.instance) then
+ f_initialize = nil
+ end
metapost.graphic {
instance = chemistry.instance,
format = chemistry.format,
@@ -773,6 +776,7 @@ function chemistry.stop()
data = mpcode,
definitions = f_initialize,
}
+ t_initialize = ""
metacode = nil
end
end