]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBig.cpp
Substack support for XHTML.
[lyx.git] / src / mathed / InsetMathBig.cpp
index 87f50dde1391b310501ad3f721b387ad293ca280..9745b76e2b602fdd334e0f58877172d2af790a89 100644 (file)
@@ -47,9 +47,11 @@ InsetMathBig::size_type InsetMathBig::size() const
 {
        // order: big Big bigg Bigg biggg Biggg
        //        0   1   2    3    4     5
+       char_type const c = name_[name_.size() - 1];
+       int const base_size = (c == 'l' || c == 'm' || c == 'r') ? 4 : 3;
        return name_[0] == 'B' ?
-               2 * (name_.size() - 4) + 1:
-               2 * (name_.size() - 4);
+               2 * (name_.size() - base_size) + 1:
+               2 * (name_.size() - base_size);
 }
 
 
@@ -216,7 +218,7 @@ bool InsetMathBig::isBigInsetDelim(docstring const & delim)
        static char const * const delimiters[] = {
                "(", ")", "\\{", "\\}", "\\lbrace", "\\rbrace", "[", "]",
                "|", "/", "\\slash", "\\|", "\\vert", "\\Vert", "'",
-               "\\\\", "\\backslash",
+               "<", ">", "\\\\", "\\backslash",
                "\\langle", "\\lceil", "\\lfloor",
                "\\rangle", "\\rceil", "\\rfloor",
                "\\downarrow", "\\Downarrow",