diff --git a/src/mathed/math_charinset.C b/src/mathed/math_charinset.C index 94207622c7..ea37bf58d5 100644 --- a/src/mathed/math_charinset.C +++ b/src/mathed/math_charinset.C @@ -122,6 +122,7 @@ void MathCharInset::handleFont(MathTextCodes t) code_ = (code_ == t) ? LM_TC_VAR : t; } + void MathCharInset::validate(LaTeXFeatures & features) const { // Make sure amssymb is put in preamble if Blackboard Bold or @@ -130,6 +131,7 @@ void MathCharInset::validate(LaTeXFeatures & features) const features.require("amssymb"); } + bool MathCharInset::match(MathInset * p) const { MathCharInset const * q = p->asCharInset(); diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index c52c467529..a3581aff1a 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1391,6 +1391,8 @@ bool MathCursor::interpret(char c) if (c == '\\') insert(c, LM_TC_TEX); + else + insert(c, lastcode_); return true; }