Sha256: 829799d3b455b9c11caf5b5bbe9ad3148befc663fc58b0dcf8bf1d614a3d96eb
Contents?: true
Size: 1.87 KB
Versions: 3
Compression:
Stored size: 1.87 KB
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Msgroup < UnaryFunction def to_asciimath parameter_one.map(&:to_asciimath).join end def to_latex parameter_one.map(&:to_latex).join end def to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element("msgroup"), parameter_one.map(&:to_mathml_without_math_tag), ) end def to_omml_without_math_tag(display_style) omml_value(display_style) end def to_html "<i>#{parameter_one.map(&:to_html).join}</i>" end def to_asciimath_math_zone(spacing, last = false, _indent = true) [ "#{spacing}\"msgroup\" function apply\n", Formula.new(parameter_one).to_asciimath_math_zone(gsub_spacing(spacing, last)), ] end def to_latex_math_zone(spacing, last = false, indent = true) [ "#{spacing}\"msgroup\" function apply\n", Formula.new(parameter_one).to_latex_math_zone(gsub_spacing(spacing, last), last, indent), ] end def to_mathml_math_zone(spacing, last = false, indent = true) [ "#{spacing}\"msgroup\" function apply\n", Formula.new(parameter_one).to_mathml_math_zone(gsub_spacing(spacing, last), last, indent), ] end def to_omml_math_zone(spacing, last = false, indent = true, display_style:) [ "#{spacing}\"msgroup\" function apply\n", Formula.new(parameter_one).to_omml_math_zone(gsub_spacing(spacing, last), last, indent, display_style: display_style), ] end def line_breaking(obj) custom_array_line_breaking(obj) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.7.2 | lib/plurimath/math/function/msgroup.rb |
plurimath-0.7.1 | lib/plurimath/math/function/msgroup.rb |
plurimath-0.7.0 | lib/plurimath/math/function/msgroup.rb |