void InsetMathFrac::write(WriteStream & os) const
{
+ MathEnsurer ensurer(os);
switch (kind_) {
case ATOP:
os << '{' << cell(0) << "\\atop " << cell(1) << '}';
void InsetMathBinom::write(WriteStream & os) const
{
+ MathEnsurer ensurer(os);
switch (kind_) {
case BINOM:
os << "\\binom{" << cell(0) << "}{" << cell(1) << '}';
void InsetMathBinom::validate(LaTeXFeatures & features) const
{
- if (kind_ == BINOM) {
+ if (kind_ == BINOM)
features.require("binom");
- InsetMathNest::validate(features);
- }
+ InsetMathNest::validate(features);
}