+2002-10-14 André Pönitz <poenitz@gmx.net>
+
+ * ui/default.ui: support for flalign
+
2002-10-11 Dekel Tsur <dekelts@tau.ac.il>
* lyx2lyx/lyxconvert_218.py (remove_oldert): Fix bug.
Item "Eqnarray environment|q" "math-mutate eqnarray"
Item "Align environment|A" "math-mutate align"
Item "AlignAt environment" "math-mutate alignat"
- Item "XAlignAt environment" "math-mutate xalignat"
- Item "XXAlignAt environment" "math-mutate xxalignat"
+ Item "Flalign environment|f" "math-mutate flalign"
+ #Item "XAlignAt environment" "math-mutate xalignat"
+ #Item "XXAlignAt environment" "math-mutate xxalignat"
Item "Gather environment" "math-mutate gather"
Item "Multline environment" "math-mutate multline"
End
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 xalignat environment|x" "command-sequence math-mode; math-mutate xalignat;"
- Item "AMS xxalignat environment" "command-sequence math-mode; math-mutate xxalignat;"
+ Item "AMS flalign environment|f" "command-sequence math-mode; math-mutate flalign;"
+ #Item "AMS xalignat environment|x" "command-sequence math-mode; math-mutate xalignat;"
+ #Item "AMS xxalignat environment" "command-sequence math-mode; math-mutate xxalignat;"
Item "AMS gather environment" "command-sequence math-mode; math-mutate gather;"
Item "AMS multline environment" "command-sequence math-mode; math-mutate multline;"
Separator
* formulabase.C: support pasting stuff into formulas using button3
+ * math_parser.C:
+ math_hullinset.C: Herbert's patch to support flalign
+
2002-10-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* formulabase.C (localDispatch): make LFUN_WORDLEFTSEL and
return 3;
if (type == "align")
return 2;
+ if (type == "flalign")
+ return 2;
if (type == "alignat")
return 2;
if (type == "xalignat")
if (s == "xxalignat") return 7;
if (s == "multline") return 8;
if (s == "gather") return 9;
+ if (s == "flalign") return 10;
lyxerr << "unknown hull type '" << s << "'\n";
return 0;
}
return 0;
if (type_ == "xalignat")
return (col & 1) ? 20 : 0;
- if (type_ == "xxalignat")
+ if (type_ == "xxalignat" || type_ == "flalign")
return (col & 1) ? 40 : 0;
return 0;
}
{
return
type_ == "align" ||
+ type_ == "flalign" ||
type_ == "multline" ||
type_ == "gather" ||
type_ == "alignat" ||
os << "\\[\n";
}
- else if (type_ == "eqnarray" || type_ == "align")
+ else if (type_ == "eqnarray" || type_ == "align" || type_ == "flalign")
os << "\\begin{" << type_ << star(n) << "}\n";
else if (type_ == "alignat" || type_ == "xalignat")
else
os << "\\]\n";
- else if (type_ == "eqnarray" || type_ == "align" || type_ == "alignat"
- || type_ == "xalignat")
+ else if (type_ == "eqnarray" || type_ == "align" || type_ == "flalign"
+ || type_ == "alignat" || type_ == "xalignat")
os << "\n\\end{" << type_ << star(n) << "}\n";
else if (type_ == "xxalignat" || type_ == "multline" || type_ == "gather")
bool MathHullInset::colChangeOK() const
{
return
- type_ == "align" || type_ == "alignat" ||
+ type_ == "align" || type_ == "flalign" ||type_ == "alignat" ||
type_ == "xalignat" || type_ == "xxalignat";
}
else if (type_ == "multline") {
if (newtype == "gather" || newtype == "align" ||
- newtype == "xalign" || newtype == "xxalign")
+ newtype == "xalignat" || newtype == "xxalignat" || newtype == "flalign")
setType(newtype);
else if (newtype == "eqnarray") {
MathGridInset::addCol(1);
parse2(cell->back(), FLAG_END, MathInset::MATH_MODE, !stared(name));
}
+ else if (name == "flalign" || name == "flalign*") {
+ cell->push_back(MathAtom(new MathHullInset("flalign")));
+ parse2(cell->back(), FLAG_END, MathInset::MATH_MODE, !stared(name));
+ }
+
else if (name == "alignat" || name == "alignat*") {
// ignore this for a while
getArg('{', '}');