X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathBig.cpp;h=969dd472c72fd5e512df6675cd30cda043952037;hb=efaae780dbbe3685e26e040ed4255e5abf268106;hp=87f50dde1391b310501ad3f721b387ad293ca280;hpb=a0043da05f5d32653917d8c551ee50138e639b00;p=lyx.git diff --git a/src/mathed/InsetMathBig.cpp b/src/mathed/InsetMathBig.cpp index 87f50dde13..969dd472c7 100644 --- a/src/mathed/InsetMathBig.cpp +++ b/src/mathed/InsetMathBig.cpp @@ -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", @@ -230,11 +232,10 @@ bool InsetMathBig::isBigInsetDelim(docstring const & delim) void InsetMathBig::validate(LaTeXFeatures & features) const { if (features.runparams().math_flavor == OutputParams::MathAsHTML) - features.addPreambleSnippet(""); + "span.bigggsymbol{font-size: 225%;}"); }