- // Create a MathBigInset from cell()[pos() - 1] and t if possible
- if (!empty() && pos() > 0 && cell()[pos() - 1]->asUnknownInset()) {
- string const name = asString(t);
- if (MathBigInset::isBigInsetDelim(name)) {
- string prev = asString(cell()[pos() - 1]);
- if (prev[0] == '\\') {
- prev = prev.substr(1);
- latexkeys const * l = in_word_set(prev);
- if (l && l->inset == "big") {
- cell()[pos() - 1] =
- MathAtom(new MathBigInset(prev, name));
- return;
- }
- }
- }
- }