]> 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)
committerGuillaume Munch <gm@lyx.org>
Sun, 17 Apr 2016 14:25:49 +0000 (15:25 +0100)
commit06a62c48941fcfe32f74f629c3f072401efe77b2
tree4387996cfb7490fb50a4ad384977f26fccbf7744
parent72ce4519de0933660d246944ca2266e0d26b0d94
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