From: André Pönitz Date: Thu, 3 Jan 2002 18:37:18 +0000 (+0000) Subject: next try, part I X-Git-Tag: 1.6.10~20094 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8d5e44685da5f32a89299d43c66004b9de1df967;p=lyx.git next try, part I git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3291 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/xforms/FormMathsPanel.C b/src/frontends/xforms/FormMathsPanel.C index bb9a3f1356..8d3af6cdf0 100644 --- a/src/frontends/xforms/FormMathsPanel.C +++ b/src/frontends/xforms/FormMathsPanel.C @@ -231,10 +231,12 @@ bool FormMathsPanel::input(FL_OBJECT *, long data) break; case MM_SUPER: + lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE); lv_->getLyXFunc()->dispatch(LFUN_SUPERSCRIPT); break; case MM_SUB: + lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE); lv_->getLyXFunc()->dispatch(LFUN_SUBSCRIPT); break; diff --git a/src/mathed/BUGS b/src/mathed/BUGS index dd47d7953f..f24207b8e7 100644 --- a/src/mathed/BUGS +++ b/src/mathed/BUGS @@ -53,9 +53,6 @@ Eran Tromer: Rainer Dorsch: -- Entering \mathbf{c} in math mode is displayed as written (without - backslash) - - I know the latex code of a lot of math symbols displayed by lyx, but not all of them. Thus I have to use the math panel for only a single symbol in a formula. I think it would be very useful, if the latex code diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 5c275b1ddf..3eb3d1ecea 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -519,6 +519,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, case LFUN_CODE: handleFont(bv, LM_TC_TT); break; case LFUN_NOUN: handleFont(bv, LM_TC_BB); break; case LFUN_DEFAULT: handleFont(bv, LM_TC_VAR); break; + case LFUN_FREE: handleFont(bv, LM_TC_TEXTRM); break; case LFUN_GREEK: handleFont(bv, LM_TC_GREEK1); @@ -528,8 +529,10 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, case LFUN_MATH_MODE: //handleFont(bv, LM_TC_TEXTRM); - mathcursor->niceInsert(MathAtom(new MathHullInset(LM_OT_SIMPLE))); - updateLocal(bv, true); + + //mathcursor->niceInsert(MathAtom(new MathHullInset(LM_OT_SIMPLE))); + //updateLocal(bv, true); + //bv->owner()->message(_("math text mode toggled")); break;