lib/metanorma/standoc/init.rb in metanorma-standoc-2.9.5 vs lib/metanorma/standoc/init.rb in metanorma-standoc-2.9.6

- old
+ new

@@ -101,10 +101,11 @@ end def init_biblio(node) @no_isobib_cache = node.attr("no-isobib-cache") @no_isobib = node.attr("no-isobib") + @flush_caches = node.attr("flush-caches") init_bib_log @bibdb = nil init_bib_caches(node) init_iev_caches(node) @local_bibdb = @@ -121,9 +122,14 @@ def init_math(node) @keepasciimath = node.attr("mn-keep-asciimath") && node.attr("mn-keep-asciimath") != "false" @numberfmt_default = kv_parse(node.attr("number-presentation")) + @numberfmt_formula = node.attr("number-presentation-formula") + @numberfmt_formula == "number-presentation" and + @numberfmt_formula = node.attr("number-presentation") + @numberfmt_formula == "default" and + @numberfmt_formula = "notation='basic'" @numberfmt_prof = node.attributes.each_with_object({}) do |(k, v), m| p = /^number-presentation-profile-(.*)$/.match(k) or next m[p[1]] = kv_parse(v) end end