From f60e175f1ef8710ef2d6a0c45647d0f19612b254 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Thu, 10 Jan 2002 13:07:53 +0000 Subject: [PATCH] Support for \begin{math} git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3326 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 4 ++++ src/mathed/math_parser.C | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index e39c887e0a..495f1af737 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,7 @@ +2002-01-10 Dekel Tsur + + * math_parser.C (parse_normal): Support for \begin{math} + 2002-01-09 Jean-Marc Lasgouttes * math_hullinset.C (validate): rename feature "amsstyle" to diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 3c3630318d..de7fd97473 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -673,6 +673,12 @@ bool Parser::parse_normal(MathAtom & matrix) string const name = getArg('{', '}'); + if (name == "math") { + matrix = MathAtom(new MathHullInset(LM_OT_SIMPLE)); + parse_into(matrix->cell(0), 0); + return true; + } + if (name == "equation" || name == "equation*" || name == "displaymath") { curr_num_ = (name == "equation"); curr_label_.erase();