2 #include "math_splitinset.h"
3 #include "math_mathmlstream.h"
4 #include "math_streamstr.h"
7 MathSplitInset::MathSplitInset(string const & name)
8 : MathGridInset(1, 1), name_(name)
14 MathInset * MathSplitInset::clone() const
16 return new MathSplitInset(*this);
20 char MathSplitInset::defaultColAlign(col_type col)
24 if (name_ == "gathered")
26 if (name_ == "aligned")
27 return (col & 1) ? 'l' : 'r';
32 void MathSplitInset::write(WriteStream & ws) const
36 ws << "\\begin{" << name_ << '}';
37 MathGridInset::write(ws);
40 ws << "\\end{" << name_ << "}\n";