Sha256: 4d62f101cbe95735932fb4c2345bf134b2cc33fe800d3e8db4a79ab63cdefe13
Contents?: true
Size: 766 Bytes
Versions: 25
Compression:
Stored size: 766 Bytes
Contents
# frozen_string_literal: true require_relative "../table" module Plurimath module Math module Function class Table class Matrix < Table def initialize(value = [], open_paren = "(", close_paren = ")", options = {}) super end def to_latex "\\begin#{opening}#{latex_content}\\end#{matrix_class}" end def to_mathml_without_math_tag table_tag = Utility.ox_element("mtable", attributes: table_attribute) Utility.update_nodes( table_tag, value&.map(&:to_mathml_without_math_tag), ) end end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems