5 #include "math_splitinset.h"
6 #include "math_mathmlstream.h"
7 #include "math_streamstr.h"
10 MathSplitInset::MathSplitInset(string const & name)
11 : MathGridInset(1, 1), name_(name)
17 MathInset * MathSplitInset::clone() const
19 return new MathSplitInset(*this);
23 char MathSplitInset::defaultColAlign(col_type col)
27 if (name_ == "gathered")
29 if (name_ == "aligned")
30 return (col & 1) ? 'l' : 'r';
35 void MathSplitInset::write(WriteStream & ws) const
39 ws << "\\begin{" << name_ << "}";
40 MathGridInset::write(ws);
43 ws << "\\end{" << name_ << "}\n";