]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exfuncinset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_exfuncinset.C
index 4941d3fc7a4d59f22d21831105acb9ce574c8ad9..a0d510d9972dc02e1a29cd710b53b4bee9392e6c 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <config.h>
 
 #include "math_exfuncinset.h"
@@ -51,6 +55,15 @@ void MathExFuncInset::maplize(MapleStream & os) const
 }
 
 
+void MathExFuncInset::maximize(MaximaStream & os) const
+{
+       if (name_ == "det")
+               os << "determinant(" << cell(0) << ')';
+       else
+               os << name_ << '(' << cell(0) << ')';
+}
+
+
 string asMathematicaName(string const & name)
 {
        if (name == "sin")    return "Sin";