+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_exfuncinset.h"
void MathExFuncInset::metrics(MathMetricsInfo & mi) const
{
- mathed_string_dim(mi.base.font, name_, ascent_, descent_, width_);
+ mathed_string_dim(mi.base.font, name_, dim_);
}
}
-void MathExFuncInset::normalize(NormalStream & os) const
+string MathExFuncInset::name() const
{
- os << '[' << name_ << ' ' << cell(0) << ']';
+ return name_;
}
}
+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";
{
os << name_ << '(' << cell(0) << ')';
}
-
-
-void MathExFuncInset::write(WriteStream & os) const
-{
- os << '\\' << name_ << '{' << cell(0) << '}';
-}