]> git.lyx.org Git - lyx.git/commitdiff
Support for \begin{math}
authorDekel Tsur <dekelts@tau.ac.il>
Thu, 10 Jan 2002 13:07:53 +0000 (13:07 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Thu, 10 Jan 2002 13:07:53 +0000 (13:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3326 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_parser.C

index e39c887e0a60b453697a86b0e459d56b8ca62d87..495f1af737d25502054ac0bea6b382f1705f3982 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-10  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * math_parser.C (parse_normal): Support for \begin{math}
+
 2002-01-09  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
        * math_hullinset.C (validate): rename feature "amsstyle" to
index 3c3630318d93f8ceb8962e4acae0424f829acb8f..de7fd974732c9d4f59bc369bd3bf848676ab8a5f 100644 (file)
@@ -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();