+2002-02-01 André Pönitz <poenitz@gmx.net>
+
+ * math_xarrowinset.[Ch]: support for \xrightarrow and \xleftarrow
2002-02-01 André Pönitz <poenitz@gmx.net>
math_unknowninset.h \
math_undersetinset.C \
math_undersetinset.h \
+ math_xarrowinset.C \
+ math_xarrowinset.h \
math_xdata.C \
math_xdata.h \
- math_xymatrix.C \
- math_xymatrix.h
+ math_xymatrixinset.C \
+ math_xymatrixinset.h
#include "math_symbolinset.h"
#include "math_undersetinset.h"
#include "math_unknowninset.h"
-#include "math_xymatrix.h"
+#include "math_xarrowinset.h"
+#include "math_xymatrixinset.h"
MathAtom createMathInset(latexkeys const * l)
if (s == "xymatrix")
return MathAtom(new MathXYMatrixInset);
+ if (s == "xrightarrow")
+ return MathAtom(new MathXArrowInset(s));
+
latexkeys const * l = in_word_set(s);
if (l)
return createMathInset(l);
{"overbrace", brace, 3 },
{"overleftarrow", arrow, 1 },
{"overrightarrow", arrow, 3 },
+ {"xleftarrow", arrow, 1 },
+ {"xrightarrow", arrow, 3 },
// Delimiters
{"(", parenth, 0 },
+++ /dev/null
-#include <config.h>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "math_xymatrix.h"
-#include "math_mathmlstream.h"
-#include "math_streamstr.h"
-
-
-MathXYMatrixInset::MathXYMatrixInset()
- : MathGridInset(1, 1)
-{}
-
-
-MathInset * MathXYMatrixInset::clone() const
-{
- return new MathXYMatrixInset(*this);
-}
-
-
-void MathXYMatrixInset::metrics(MathMetricsInfo const & st) const
-{
- MathMetricsInfo mi = st;
- if (mi.style == LM_ST_DISPLAY)
- mi.style = LM_ST_TEXT;
- MathGridInset::metrics(mi);
-}
-
-
-void MathXYMatrixInset::write(WriteStream & os) const
-{
- os << "\\xymatrix{";
- MathGridInset::write(os);
- os << "}\n";
-}
-
-
-void MathXYMatrixInset::normalize(NormalStream & os) const
-{
- os << "[xymatrix ";
- MathGridInset::normalize(os);
- os << "]";
-}
-
-
-void MathXYMatrixInset::maplize(MapleStream & os) const
-{
- os << "xymatrix(";
- MathGridInset::maplize(os);
- os << ")";
-}
+++ /dev/null
-// -*- C++ -*-
-#ifndef MATH_XYMATRIX_H
-#define MATH_XYMATRIX_H
-
-#include "math_gridinset.h"
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-
-class MathXYMatrixInset : public MathGridInset {
-public:
- ///
- MathXYMatrixInset();
- ///
- MathInset * clone() const;
- ///
- void metrics(MathMetricsInfo const & st) const;
- ///
- MathXYMatrixInset * asXYMatrixInset() { return this; }
-
- ///
- void write(WriteStream & os) const;
- ///
- void normalize(NormalStream &) const;
- ///
- void maplize(MapleStream &) const;
-};
-
-#endif