read support for \begin{displaymath}...\end{displaymath}

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2945 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-10-29 16:10:41 +00:00
parent 3adbae2754
commit 3b0329fe27

View File

@ -615,8 +615,8 @@ bool Parser::parse_normal(MathAtom & matrix)
string const name = getArg('{', '}'); string const name = getArg('{', '}');
if (name == "equation" || name == "equation*") { if (name == "equation" || name == "equation*" || name == "displaymath") {
curr_num_ = !stared(name); curr_num_ = (name == "equation");
curr_label_.erase(); curr_label_.erase();
matrix = MathAtom(new MathMatrixInset(LM_OT_EQUATION)); matrix = MathAtom(new MathMatrixInset(LM_OT_EQUATION));
MathMatrixInset * p = matrix->asMatrixInset(); MathMatrixInset * p = matrix->asMatrixInset();