mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
require amsmath when needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9758 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ae8e3ada2d
commit
6f677f03e1
@ -1,3 +1,9 @@
|
|||||||
|
2005-03-30 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-02 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
2005-03-02 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||||
|
|
||||||
* math_parser.C (parse1): Don't parse "\|" following a "\left" or
|
* math_parser.C (parse1): Don't parse "\|" following a "\left" or
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include "LaTeXFeatures.h"
|
||||||
#include "math_amsarrayinset.h"
|
#include "math_amsarrayinset.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
#include "math_metricsinfo.h"
|
#include "math_metricsinfo.h"
|
||||||
@ -90,3 +91,10 @@ void MathAMSArrayInset::normalize(NormalStream & os) const
|
|||||||
MathGridInset::normalize(os);
|
MathGridInset::normalize(os);
|
||||||
os << ']';
|
os << ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void MathAMSArrayInset::validate(LaTeXFeatures & features) const
|
||||||
|
{
|
||||||
|
features.require("amsmath");
|
||||||
|
MathGridInset::validate(features);
|
||||||
|
}
|
||||||
|
@ -33,7 +33,8 @@ public:
|
|||||||
void write(WriteStream & os) const;
|
void write(WriteStream & os) const;
|
||||||
///
|
///
|
||||||
void normalize(NormalStream &) const;
|
void normalize(NormalStream &) const;
|
||||||
|
///
|
||||||
|
void validate(LaTeXFeatures & features) const;
|
||||||
private:
|
private:
|
||||||
///
|
///
|
||||||
char const * name_left() const;
|
char const * name_left() const;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include "LaTeXFeatures.h"
|
||||||
#include "math_arrayinset.h"
|
#include "math_arrayinset.h"
|
||||||
#include "math_parser.h"
|
#include "math_parser.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
@ -110,3 +111,11 @@ void MathArrayInset::maplize(MapleStream & os) const
|
|||||||
MathGridInset::maplize(os);
|
MathGridInset::maplize(os);
|
||||||
os << ')';
|
os << ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void MathArrayInset::validate(LaTeXFeatures & features) const
|
||||||
|
{
|
||||||
|
if (name_ == "subarray")
|
||||||
|
features.require("amsmath");
|
||||||
|
MathGridInset::validate(features);
|
||||||
|
}
|
||||||
|
@ -40,7 +40,8 @@ public:
|
|||||||
void normalize(NormalStream &) const;
|
void normalize(NormalStream &) const;
|
||||||
///
|
///
|
||||||
void maplize(MapleStream &) const;
|
void maplize(MapleStream &) const;
|
||||||
|
///
|
||||||
|
void validate(LaTeXFeatures & features) const;
|
||||||
private:
|
private:
|
||||||
///
|
///
|
||||||
string name_;
|
string name_;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include "LaTeXFeatures.h"
|
||||||
#include "math_substackinset.h"
|
#include "math_substackinset.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
#include "math_streamstr.h"
|
#include "math_streamstr.h"
|
||||||
@ -49,3 +50,10 @@ void MathSubstackInset::maplize(MapleStream & os) const
|
|||||||
MathGridInset::maplize(os);
|
MathGridInset::maplize(os);
|
||||||
os << ')';
|
os << ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void MathSubstackInset::validate(LaTeXFeatures & features) const
|
||||||
|
{
|
||||||
|
features.require("amsmath");
|
||||||
|
MathGridInset::validate(features);
|
||||||
|
}
|
||||||
|
@ -23,6 +23,8 @@ public:
|
|||||||
void normalize(NormalStream &) const;
|
void normalize(NormalStream &) const;
|
||||||
///
|
///
|
||||||
void maplize(MapleStream &) const;
|
void maplize(MapleStream &) const;
|
||||||
|
///
|
||||||
|
void validate(LaTeXFeatures & features) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user