]> git.lyx.org Git - lyx.git/commitdiff
Revert r33989. We do need this.
authorRichard Heck <rgheck@comcast.net>
Wed, 31 Mar 2010 21:02:10 +0000 (21:02 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 31 Mar 2010 21:02:10 +0000 (21:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33990 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathExFunc.cpp
src/mathed/InsetMathExFunc.h
src/mathed/MathExtern.cpp

index 61b3a43f165749e2435247433619a0f442cd3abb..25c8dcbaf9b964300c2844f5243699806f9e1aac 100644 (file)
@@ -122,6 +122,13 @@ void InsetMathExFunc::mathematica(MathematicaStream & os) const
 }
 
 
+void InsetMathExFunc::mathmlize(MathStream & os) const
+{
+       os << "<mi>" << name_ << "</mi><mo>&af;</mo>";
+       os << cell(0);
+}
+
+
 void InsetMathExFunc::octave(OctaveStream & os) const
 {
        os << name_ << '(' << cell(0) << ')';
index 24e23d71b8ace722e1903e9d01f61b56abb279df..fb6dda8b360e2e84f7b68cab4bebcc1d98ee47fc 100644 (file)
@@ -43,6 +43,8 @@ public:
        ///
        void mathematica(MathematicaStream &) const;
        ///
+       void mathmlize(MathStream &) const;
+       ///
        void octave(OctaveStream &) const;
        ///
        InsetCode lyxCode() const { return MATH_EXFUNC_CODE; }
index a8fd9a173d80f75963e5694ccb78bae2e51f97cf..f39418396518cf1e6ecc5d45f5e9a0e35124ee74 100644 (file)
@@ -957,8 +957,8 @@ void extractStructure(MathData & ar, ExternalMath kind)
                extractSums(ar);
        extractNumbers(ar);
        extractMatrices(ar);
+       extractFunctions(ar, kind);
        if (kind != MATHML && kind != HTML) {
-               extractFunctions(ar, kind);
                extractDets(ar);
                extractDiff(ar);
                extractExps(ar);