+2005-03-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * math_amsarrayinset.[Ch] (validate): new, require amsmath
+ * math_substackinset.[Ch] (validate): ditto
+ * math_arrayinset.[Ch] (validate): ditto (in the case of subarray)
2005-03-24 Martin Vermeer <martin.vermeer@hut.fi>
#include <config.h>
+#include "LaTeXFeatures.h"
#include "math_amsarrayinset.h"
#include "math_data.h"
#include "math_mathmlstream.h"
MathGridInset::normalize(os);
os << ']';
}
+
+
+void MathAMSArrayInset::validate(LaTeXFeatures & features) const
+{
+ features.require("amsmath");
+ MathGridInset::validate(features);
+}
void write(WriteStream & os) const;
///
void normalize(NormalStream &) const;
-
+ ///
+ void validate(LaTeXFeatures & features) const;
private:
virtual std::auto_ptr<InsetBase> doClone() const;
///
#include <config.h>
+#include "LaTeXFeatures.h"
#include "math_arrayinset.h"
#include "math_data.h"
#include "math_parser.h"
MathGridInset::maple(os);
os << ')';
}
+
+
+void MathArrayInset::validate(LaTeXFeatures & features) const
+{
+ if (name_ == "subarray")
+ features.require("amsmath");
+ MathGridInset::validate(features);
+}
char valign, std::string const & halign);
///
MathArrayInset(std::string const &, char valign, std::string const & halign);
- /// convienience constructor from whitespace/newline seperated data
+ /// convenience constructor from whitespace/newline separated data
MathArrayInset(std::string const &, std::string const & str);
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
void normalize(NormalStream & os) const;
///
void maple(MapleStream & os) const;
-
+ ///
+ void validate(LaTeXFeatures & features) const;
private:
virtual std::auto_ptr<InsetBase> doClone() const;
///
#include <config.h>
+#include "LaTeXFeatures.h"
#include "math_substackinset.h"
#include "math_data.h"
#include "math_mathmlstream.h"
MathGridInset::maple(os);
os << ')';
}
+
+
+void MathSubstackInset::validate(LaTeXFeatures & features) const
+{
+ features.require("amsmath");
+ MathGridInset::validate(features);
+}
void normalize(NormalStream &) const;
///
void maple(MapleStream &) const;
+ ///
+ void validate(LaTeXFeatures & features) const;
private:
virtual std::auto_ptr<InsetBase> doClone() const;
};