Sha256: 67f0c8b7bb6c37b316f766cfa1aed2f6e68f5ff8a088a5ac6b0d9ea3ad194f3a
Contents?: true
Size: 689 Bytes
Versions: 15
Compression:
Stored size: 689 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Obrace < UnaryFunction def to_latex first_value = "{#{parameter_one.to_latex}}" if parameter_one "\\overbrace#{first_value}" end def to_mathml_without_math_tag mo_tag = (Utility.ox_element("mo") << "⏞") if parameter_one over_tag = Utility.ox_element("mover") arr_value = mathml_value Utility.update_nodes(over_tag, (arr_value << mo_tag)) else mo_tag end end end Overbrace = Obrace end end end
Version data entries
15 entries across 15 versions & 1 rubygems