]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_factory.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_factory.C
index 327624ec0d0f9b05241be1440296590af50ebc89..1c49eb935b1fc1c7c36dbb95bae71219d8110789 100644 (file)
@@ -15,6 +15,7 @@
 #include "math_macroarg.h"
 #include "math_notinset.h"
 #include "math_rootinset.h"
+#include "math_sizeinset.h"
 #include "math_spaceinset.h"
 #include "math_specialcharinset.h"
 #include "math_sqrtinset.h"
@@ -29,7 +30,7 @@ MathAtom createMathInset(latexkeys const * l)
        case LM_TK_FUNCLIM:
                return MathAtom(new MathFuncLimInset(l->name));
        case LM_TK_SPECIAL:
-               return MathAtom(new MathSpecialCharInset(l->id));
+               return MathAtom(new MathSpecialCharInset(static_cast<char>(l->id)));
        case LM_TK_SYM:
        case LM_TK_CMR:
        case LM_TK_CMSY:
@@ -68,6 +69,8 @@ MathAtom createMathInset(latexkeys const * l)
                return MathAtom(new MathBoxInset(l->name));
        case LM_TK_FUNC:
                return MathAtom(new MathFuncInset(l->name));
+       case LM_TK_STY:
+               return MathAtom(new MathSizeInset(l));
        }
        return MathAtom(new MathUnknownInset(l->name));
 }