7 #include "math_arrayinset.h"
8 #include "support/LOstream.h"
13 MathArrayInset::MathArrayInset(int m, int n)
14 : MathGridInset(m, n, "array", LM_OT_MATRIX)
18 MathInset * MathArrayInset::clone() const
20 return new MathArrayInset(*this);
24 void MathArrayInset::Write(std::ostream & os, bool fragile) const
28 os << "\\begin{array}";
30 if (v_align_ == 't' || v_align_ == 'b')
31 os << '[' << char(v_align_) << ']';
34 for (int col = 0; col < ncols(); ++col)
35 os << colinfo_[col].h_align_;
38 MathGridInset::Write(os, fragile);
42 os << "\\end{array}\n";