+ return MathAtom(new InsetMathEnsureMath(buf));
+ if (s == "sideset")
+ return MathAtom(new InsetMathSideset(buf, true, true));
+ // The following 3 string values are only for math toolbar use, no LaTeX names
+ if (s == "sidesetr")
+ return MathAtom(new InsetMathSideset(buf, false, true));
+ if (s == "sidesetl")
+ return MathAtom(new InsetMathSideset(buf, true, false));
+ if (s == "sidesetn")
+ return MathAtom(new InsetMathSideset(buf, false, false));
+ if (isSpecialChar(s))
+ return MathAtom(new InsetMathSpecialChar(s));
+ if (s == " ")
+ return MathAtom(new InsetMathSpace(" ", ""));
+
+ if (s == "regexp")
+ return MathAtom(new InsetMathHull(buf, hullRegexp));
+
+ return MathAtom(new MathMacro(buf, s));