Sha256: ae72527c28393f148795ba0e4a2a94273e4c9155679e8d48fb3eda713dae5637
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Ubrace < UnaryFunction def to_latex first_value = "{#{parameter_one.to_latex}}" if parameter_one "\\underbrace#{first_value}" end def to_mathml_without_math_tag mo_tag = (Utility.ox_element("mo") << "⏟") if parameter_one over_tag = Utility.ox_element("munder") arr_value = mathml_value Utility.update_nodes(over_tag, (arr_value << mo_tag)) else mo_tag end end def tag_name "underover" end def omml_tag_name "undOvr" end def validate_function_formula false end def to_omml_without_math_tag limlow = Utility.ox_element("limLow", namespace: "m") limlowpr = Utility.ox_element("limLowPr", namespace: "m") limlowpr << Utility.pr_element("ctrl", true, namespace: "m") lim = Utility.ox_element("lim", namespace: "m") Utility.update_nodes( limlow, [ limlowpr, omml_parameter(parameter_one, tag_name: "e"), Utility.update_nodes(lim, r_element("⏟")), ], ) [limlow] end end Underbrace = Ubrace end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.3.9 | lib/plurimath/math/function/ubrace.rb |