Support for \begin{math}

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-01-10 13:07:53 +00:00
parent 80a721459f
commit f60e175f1e
2 changed files with 10 additions and 0 deletions

View 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

View 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();