]> 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>
Sat, 28 May 2016 21:42:31 +0000 (17:42 -0400)
commitf3b70fd2cdbbc282dff8beb1c8fb4ab3f06277fa
treea3a8035cea048016c7d8853f374b67704a6c3663
parent3a4af5a3e1238b44150ff37c9c39a4d3bde96e7f
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