* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
void InsetMathAMSArray::write(WriteStream & os) const
{
- bool brace = ensureMath(os);
+ MathEnsurer ensurer(os);
os << "\\begin{" << name_ << '}';
InsetMathGrid::write(os);
os << "\\end{" << name_ << '}';
- os.pendingBrace(brace);
}
void InsetMathAMSArray::validate(LaTeXFeatures & features) const
{
- features.require("amsmath");
+ if (name_ == "CD")
+ // amscd is independent of amsmath although it is part of
+ // the amsmath bundle
+ features.require("amscd");
+ else
+ features.require("amsmath");
InsetMathGrid::validate(features);
}