// The delimiters may be used without \left or \right as well.
// Therefore they are listed in lib/symbols, and if they have
// requirements, we need to add them here.
- MathWordList const & words = mathedWordList();
- MathWordList::const_iterator it = words.find(left_);
- if (it != words.end())
- {
- string const req = it->second.requires;
- if (!req.empty())
- features.require(req);
- }
- it = words.find(right_);
- if (it != words.end())
- {
- string const req = it->second.requires;
- if (!req.empty())
- features.require(req);
- }
+ validate_math_word(features, left_);
+ validate_math_word(features, right_);
}
void InsetMathDelim::mathmlize(MathStream & os) const
{
os << "<mo form='prefix' fence='true' stretchy='true' symmetric='true'>"
- << convertDelimToXMLEscape(left_)
+ << convertDelimToXMLEscape(left_)
<< "</mo>\n"
- << cell(0)
- << "\n<mo form='postfix' fence='true' stretchy='true' symmetric='true'>"
- << convertDelimToXMLEscape(right_)
+ << cell(0)
+ << "\n<mo form='postfix' fence='true' stretchy='true' symmetric='true'>"
+ << convertDelimToXMLEscape(right_)
<< "</mo>\n";
}
void InsetMathDelim::htmlize(HtmlStream & os) const
{
- os << convertDelimToXMLEscape(left_)
- << cell(0)
+ os << convertDelimToXMLEscape(left_)
+ << cell(0)
<< convertDelimToXMLEscape(right_);
}