5 #include "math_arrayinset.h"
6 #include "support/LOstream.h"
9 MathArrayInset::MathArrayInset(int m, int n)
14 MathInset * MathArrayInset::clone() const
16 return new MathArrayInset(*this);
20 void MathArrayInset::write(std::ostream & os, bool fragile) const
24 os << "\\begin{array}";
26 if (v_align_ == 't' || v_align_ == 'b')
27 os << '[' << char(v_align_) << ']';
30 for (col_type col = 0; col < ncols(); ++col)
31 os << colinfo_[col].align_;
34 MathGridInset::write(os, fragile);
38 os << "\\end{array}\n";
42 void MathArrayInset::metrics(MathStyles st) const
44 MathGridInset::metrics(st == LM_ST_DISPLAY ? LM_ST_TEXT : st);