Sha256: 407ca2153d425f67f8edf6da4b3ec9c13fa85b9969512b1eed1edc5851865bf3
Contents?: true
Size: 774 Bytes
Versions: 4
Compression:
Stored size: 774 Bytes
Contents
# frozen_string_literal: true require_relative "../table" module Plurimath module Math module Function class Table class Pmatrix < Table def initialize(value, open_paren = "(", close_paren = ")", options = {}) super end def to_latex "\\begin#{opening}#{latex_content}\\end#{matrix_class}" end def to_unicodemath "⒨(#{value.map(&:to_unicodemath).join("@")})" end def to_mathml_without_math_tag(intent) matrix = super matrix["intent"] = ":parenthesized-matrix" if intent matrix end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems