From e0a5cda787c8f801ba2d1dbe6dd4da18a352cfe1 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 6 Jun 2010 00:42:33 +0000 Subject: [PATCH] Add GUI support for big delimiters variants without 'l', 'm' or 'r' endings. They differ from their cousins only for the space left around them. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34604 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/symbols | 6 ++++++ src/mathed/InsetMathBig.cpp | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/symbols b/lib/symbols index c9e65315b7..f8ca3c5701 100644 --- a/lib/symbols +++ b/lib/symbols @@ -51,15 +51,19 @@ ldots dots none vdots dots none # big delimiters +big big none bigl big none bigm big none bigr big none +Big big none Bigl big none Bigm big none Bigr big none +bigg big none biggl big none biggm big none biggr big none +Bigg big none Biggl big none Biggm big none Biggr big none @@ -67,8 +71,10 @@ Biggr big none # packages. No 'm' versions! # See lucidabr.dtx for a possible implementation if you want to use these # with other fonts. +biggg big none bigggl big none bigggr big none +Biggg big none Bigggl big none Bigggr big none diff --git a/src/mathed/InsetMathBig.cpp b/src/mathed/InsetMathBig.cpp index 87f50dde13..9ec279a20a 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); }