git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9192 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2004-11-07 09:39:34 +00:00
parent a49669523c
commit ff7bf84825
3 changed files with 13 additions and 10 deletions

View File

@ -258,8 +258,8 @@ Menuset
End
Menu "insert_formatting"
Item "Superscript|S" "command-sequence math-mode ; math-superscript ; font-free-apply; "
Item "Subscript|u" "command-sequence math-mode ; math-subscript ; font-free-apply; "
Item "Superscript|S" "command-sequence math-mode on; math-superscript ; font-free-apply; "
Item "Subscript|u" "command-sequence math-mode on; math-subscript ; font-free-apply; "
Separator
Item "Protected Space|r" "space-insert protected"
Item "Inter-word Space|w" "space-insert normal"
@ -275,14 +275,14 @@ Menuset
End
Menu "insert_math"
Item "Inline Formula|I" "math-mode"
Item "Inline Formula|I" "math-mode on"
Item "Display Formula|D" "math-display"
Item "Eqnarray Environment|E" "command-sequence math-mode; math-mutate eqnarray;"
Item "AMS align Environment|a" "command-sequence math-mode; math-mutate align;"
Item "AMS alignat Environment|t" "command-sequence math-mode; math-mutate alignat;"
Item "AMS flalign Environment|f" "command-sequence math-mode; math-mutate flalign;"
Item "AMS gather Environment|g" "command-sequence math-mode; math-mutate gather;"
Item "AMS multline Environment|m" "command-sequence math-mode; math-mutate multline;"
Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;"
Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;"
Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;"
Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;"
Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;"
Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;"
Separator
Item "Array Environment|y" "math-matrix 2 2"
Item "Cases Environment|C" "math-insert \cases"

View File

@ -410,7 +410,7 @@ int MathArray::dist(int x, int y) const
void MathArray::setXY(int x, int y) const
{
lyxerr << "setting position cache for MathArray " << this << std::endl;
//lyxerr << "setting position cache for MathArray " << this << std::endl;
theCoords.arrays_.add(this, x, y);
}

View File

@ -684,6 +684,9 @@ void MathNestInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
case LFUN_MATH_MODE:
#if 1
// ignore math-mode on when already in math mode
if (currentMode() == InsetBase::MATH_MODE && cmd.argument == "on")
break;
cur.macroModeClose();
selClearOrDel(cur);
cur.plainInsert(MathAtom(new MathMBoxInset(cur.bv())));