]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_matrixinset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_matrixinset.C
index 330c3cef62b0ff46ef2e775e4962c270c3c24bc1..4cfedd59b45f5d462e0aed310ce4c9179cdb58b4 100644 (file)
@@ -43,6 +43,24 @@ void MathMatrixInset::maplize(MapleStream & os) const
 }
 
 
+void MathMatrixInset::maximize(MaximaStream & os) const
+{
+       os << "matrix(";
+       for (row_type row = 0; row < nrows(); ++row) {
+               if (row)
+                       os << ',';
+               os << '[';
+               for (col_type col = 0; col < ncols(); ++col) {
+                       if (col)
+                               os << ',';
+                       os << cell(index(row, col));
+               }
+               os << ']';
+       }
+       os << ')';
+}
+
+
 void MathMatrixInset::mathmlize(MathMLStream & os) const
 {
        MathGridInset::mathmlize(os);