diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 3a17efa565..4280c68ebe 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1465,6 +1465,11 @@ bool MathCursor::interpret(char c) macroModeClose(); + if (c == '{' || c == '}') { + insert(MathAtom(new MathSpecialCharInset(c))); + return true; + } + if (c != ' ') interpret(c); diff --git a/src/mathed/math_macrotable.C b/src/mathed/math_macrotable.C index d6436c9d51..d2cd7d6f67 100644 --- a/src/mathed/math_macrotable.C +++ b/src/mathed/math_macrotable.C @@ -89,6 +89,7 @@ void MathMacroTable::builtinMacros() //define("\\def\\emptyset{\\not0}"); define("\\def\\notin{\\not\\in}"); define("\\def\\slash{/}"); + //define("\\def\\mathcircumflex{\\^}"); // fontmath.ltx diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 70e827a319..64cb40acdc 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -1031,8 +1031,8 @@ void Parser::parse_into1(MathArray & array, unsigned flags, MathTextCodes code) dump(); lyxerr << "found '}' unexpectedly, array: '" << array << "'\n"; //lyxerr << "found '}' unexpectedly\n"; - lyx::Assert(0); - add(array, '}', LM_TC_TEX); + //lyx::Assert(0); + //add(array, '}', LM_TC_TEX); } else if (t.cat() == catAlign) {