diff --git a/src/mathed/math_macro.C b/src/mathed/math_macro.C index 2d511683bf..984da2814d 100644 --- a/src/mathed/math_macro.C +++ b/src/mathed/math_macro.C @@ -202,6 +202,22 @@ void MathMacro::maplize(MapleStream & os) const } +void MathMacro::mathmlize(MathMLStream & os) const +{ + expanded_ = tmplate_->xcell(0); + expanded_.data_.substitute(*this); + ::mathmlize(expanded_.data_, os); +} + + +void MathMacro::octavize(OctaveStream & os) const +{ + expanded_ = tmplate_->xcell(0); + expanded_.data_.substitute(*this); + ::octavize(expanded_.data_, os); +} + + void MathMacro::normalize(NormalStream & os) const { os << "[macro " << name() << " "; diff --git a/src/mathed/math_macro.h b/src/mathed/math_macro.h index bce7f5b0f2..036152a984 100644 --- a/src/mathed/math_macro.h +++ b/src/mathed/math_macro.h @@ -69,6 +69,10 @@ public: /// void maplize(MapleStream &) const; /// + void mathmlize(MathMLStream &) const; + /// + void octavize(OctaveStream &) const; + /// void write(WriteStream & os) const; private: