]> git.lyx.org Git - features.git/commit
Display the correct horizontal alignment in AMS environments
authorGuillaume Munch <gm@lyx.org>
Sun, 13 Dec 2015 03:32:32 +0000 (03:32 +0000)
committerRichard Heck <rgheck@lyx.org>
Wed, 15 Jun 2016 21:32:52 +0000 (22:32 +0100)
commit665ad80313e418a1f8bbd3386a901939532685a3
tree6b906df0b3c90af99130ddbfdc246ad74886e3a9
parentce0053f7f3d99d1263be827954e1fd6dc6992d4b
Display the correct horizontal alignment in AMS environments

A longstanding problem... (related: #1861)

The columns in AMS math environments have a fixed alignment (colAlign() in
InsetMathGrid.cpp). We set this alignment for display (Georg's
displayColAlign()) in InsetMathHull and InsetMathSplit. This is done according
to tests and documentation for the various environments.

There is also some mechanical code factoring via colAlign().

Finally, I disable setting the horizontal alignment in InsetMathSplit, which has
no impact on the LaTeX output, and has no longer any impact on the screen. (As
for vertical alignment I discovered that it was in fact customisable for
\aligned & friends! I hope that the more faithful interface will let other
users discover that too.)
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathGrid.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathSplit.cpp
src/mathed/InsetMathSplit.h