summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/chem-str.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/chem-str.lua')
-rw-r--r--tex/context/base/mkiv/chem-str.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/chem-str.lua b/tex/context/base/mkiv/chem-str.lua
index 9f0738fc5..1316769ca 100644
--- a/tex/context/base/mkiv/chem-str.lua
+++ b/tex/context/base/mkiv/chem-str.lua
@@ -69,7 +69,8 @@ local chemistry = chemistry
chemistry.instance = "chemistry"
chemistry.format = "metafun"
chemistry.method = "double"
-chemistry.structures = 0
+
+local nofstructures = 0
local common_keys = {
b = "line",
@@ -739,7 +740,7 @@ function chemistry.start(settings)
return
end
--
- chemistry.structures = chemistry.structures + 1
+ nofstructures = nofstructures + 1
--
rotation = tonumber(rotation) or 0
--
@@ -749,7 +750,7 @@ function chemistry.start(settings)
report_chemistry("%s scale %a, rotation %a, width %s, height %s, left %s, right %s, top %s, bottom %s","used",scale,rotation,width,height,left,right,top,bottom)
end
metacode[#metacode+1] = f_start_structure(
- chemistry.structures,
+ nofstructures,
left, right, top, bottom,
rotation, topoints(unit), bondlength, scale, topoints(offset),
tostring(settings.axis == v_on), topoints(rulethickness), axiscolor
@@ -788,8 +789,8 @@ function chemistry.component(spec,text,rulethickness,rulecolor)
end
statistics.register("chemical formulas", function()
- if chemistry.structures > 0 then
- return format("%s chemical structure formulas",chemistry.structures) -- no timing needed, part of metapost
+ if nofstructures > 0 then
+ return format("%s chemical structure formulas",nofstructures) -- no timing needed, part of metapost
end
end)