#include "debug.h"
#include "math_support.h"
-#include "support/std_sstream.h"
#include "support/filetools.h" // LibFileSearch
#include "support/lstrings.h"
#include "frontends/lyx_gui.h"
#include <fstream>
+#include <sstream>
using lyx::support::LibFileSearch;
using lyx::support::split;
if (s == "dfrac")
return MathAtom(new MathDfracInset);
- return MathAtom(new MathMacro(s));
+ if (MacroTable::globalMacros().has(s))
+ return MathAtom(new MathMacro(s,
+ MacroTable::globalMacros().get(s).numargs()));
+ //if (MacroTable::localMacros().has(s))
+ // return MathAtom(new MathMacro(s,
+ // MacroTable::localMacros().get(s).numargs()));
+
+ return MathAtom(new MathUnknownInset(s));
}