Require amsmath when using the cases environment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9614 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-02-11 13:47:18 +00:00
parent 300075334c
commit 047b8a3abc
4 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-02-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* math_casesinset.C (validate): New method. Requires amsmath.
2005-01-20 Angus Leeming <leeming@lyx.org>
* math_spaceinset.C (validate):

View File

@ -4,6 +4,9 @@
#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_support.h"
#include "LaTeXFeatures.h"
#include "support/LOstream.h"
@ -64,3 +67,10 @@ void MathCasesInset::infoize(std::ostream & os) const
{
os << "Cases ";
}
void MathCasesInset::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
MathGridInset::validate(features);
}

View File

@ -24,6 +24,8 @@ public:
void maplize(MapleStream &) const;
///
void write(WriteStream & os) const;
///
void validate(LaTeXFeatures & features) const;
};
#endif

View File

@ -45,6 +45,9 @@ What's new
- Make sure that the amsmath package is used in LaTeX output when
using some over and under arrows in equations.
- Make sure that the amsmath package is used in LaTeX output when
using the cases environment in equations.
- Make sure that the wasysym package is used in LaTeX output when
using symbols from the wasy font.