+2003-05-14 André Pönitz <poenitz@gmx.net>
+
+ * math_substack.[Ch]: add markers
+
2003-05-12 André Pönitz <poenitz@gmx.net>
* formula.C:
#include <config.h>
-
#include "math_sizeinset.h"
#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_support.h"
#include "support/LOstream.h"
+
using std::atoi;
MathSizeInset::MathSizeInset(latexkeys const * l)
#include <config.h>
-
#include "math_substackinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
+#include "support/LOstream.h"
MathSubstackInset::MathSubstackInset()
} else {
MathGridInset::metrics(mi);
}
+ metricsMarkers2();
+}
+
+
+void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
+{
+ MathGridInset::draw(pi, x + 1, y);
+ drawMarkers2(pi, x, y);
+}
+
+
+void MathSubstackInset::infoize(std::ostream & os) const
+{
+ os << "Substack ";
}
#include "math_gridinset.h"
+/// support for AMS's \\substack
class MathSubstackInset : public MathGridInset {
public:
///
void metrics(MetricsInfo & mi) const;
///
+ void draw(PainterInfo & pi, int x, int y) const;
+ ///
MathSubstackInset const * asSubstackInset() const { return this; }
///
void normalize();
///
+ void infoize(std::ostream & os) const;
+ ///
void write(WriteStream & os) const;
///
void normalize(NormalStream &) const;