lib/plurimath/math/function/table/vmatrix.rb in plurimath-0.7.2 vs lib/plurimath/math/function/table/vmatrix.rb in plurimath-0.8.0

- old
+ new

@@ -15,9 +15,19 @@ end def to_latex "\\begin#{opening}#{latex_content}\\end#{matrix_class}" end + + def to_unicodemath + "#{matrix_symbol}(#{value.map(&:to_unicodemath).join("@")})" + end + + private + + def matrix_symbol + open_paren == "norm[" ? "⒩" : "⒱" + end end end end end end