]> git.lyx.org Git - features.git/commit
Fix bug #12561
authorEnrico Forestieri <forenr@lyx.org>
Wed, 13 Jul 2022 17:11:03 +0000 (19:11 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 13 Jul 2022 17:11:03 +0000 (19:11 +0200)
commit4a7a19352cabb401052ca9467cf849da78f82f1a
treebdb44278ef33c944c5ef981278aee7816fb04526
parentf71a11f693b6990e652d16a2901282f1650aa5f6
Fix bug #12561

In mathed it is assumed that a labeled line is also implicitly numbered.
However, latex allows to label an equation without numbering it.
The label is then assigned the value of a nearby numbered one.
This commit drops the above mathed assumption in order to allow to import
valid latex code with a labeled but not numbered equation line.

The screen representation omits the line number and encloses the label
in square brackets for further differentiation. However, it is still not
possible to label an equation without numbering it using the GUI.
src/mathed/InsetMathHull.cpp
src/mathed/MathParser.cpp