Sha256: bfd7d764e4c8bb9f4bd46a246b2ff6f44606df158fa12eda0ed7d8a2f164b8de

Contents?: true

Size: 734 Bytes

Versions: 17

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true

require_relative "binary_function"

module Plurimath
  module Math
    module Function
      class Substack < BinaryFunction
        def to_latex
          first_value  = parameter_one.to_latex if parameter_one
          second_value = "\\\\#{parameter_two.to_latex}" if parameter_two
          "\\#{class_name}{#{first_value}#{second_value}}"
        end

        def to_mathml_without_math_tag
          value_array = []
          value_array << parameter_one.to_mathml_without_math_tag if parameter_one
          value_array << parameter_two.to_mathml_without_math_tag if parameter_two
          Utility.update_nodes(Utility.ox_element("mtable"), value_array)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
plurimath-0.3.7 lib/plurimath/math/function/substack.rb
plurimath-0.3.6 lib/plurimath/math/function/substack.rb
plurimath-0.3.5 lib/plurimath/math/function/substack.rb
plurimath-0.3.4 lib/plurimath/math/function/substack.rb
plurimath-0.3.3 lib/plurimath/math/function/substack.rb
plurimath-0.3.2 lib/plurimath/math/function/substack.rb
plurimath-0.3.1.2 lib/plurimath/math/function/substack.rb
plurimath-0.3.1 lib/plurimath/math/function/substack.rb
plurimath-0.3.0 lib/plurimath/math/function/substack.rb
plurimath-0.2.9 lib/plurimath/math/function/substack.rb
plurimath-0.2.8 lib/plurimath/math/function/substack.rb
plurimath-0.2.7 lib/plurimath/math/function/substack.rb
plurimath-0.2.6 lib/plurimath/math/function/substack.rb
plurimath-0.2.5 lib/plurimath/math/function/substack.rb
plurimath-0.2.4 lib/plurimath/math/function/substack.rb
plurimath-0.2.3 lib/plurimath/math/function/substack.rb
plurimath-0.2.2 lib/plurimath/math/function/substack.rb