]> 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 93cd53e79f7ed3a6cb74cc938ab36e95f25f02b6..a0d510d9972dc02e1a29cd710b53b4bee9392e6c 100644 (file)
@@ -1,6 +1,5 @@
-
 #ifdef __GNUG__
-#pragma implementation 
+#pragma implementation
 #endif
 
 #include <config.h>
@@ -56,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";