]> git.lyx.org Git - features.git/commit
Draw display math numbering outside of inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 2 Apr 2019 09:05:19 +0000 (11:05 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:36 +0000 (15:48 +0200)
commitd556f05a917b270f12af51750a8bebbd2677818a
treeee9bf798f4478b4f69d8059426fe50355be996e3
parent31f155ec82b97cd4f88d6a85bcb19df0d9e9b918
Draw display math numbering outside of inset

This is the first (easiest) step in fixing bugs 10668 and 11333.

The numbering is now drawn outside of the insets, which solves the
alignment problems and make editing easier.

What does not work yet:

- long labels will overwrite equations. To fix this, we need to
  implement the same algorithm as LaTeX and put labels on their own
  row when required.

- previews may need to be adapted similarly to fit the whole screen width
src/MetricsInfo.cpp
src/MetricsInfo.h
src/TextMetrics.cpp
src/mathed/InsetMathHull.cpp