]> git.lyx.org Git - lyx.git/commit
Implement on screen numbering for Subequation module
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Jul 2022 22:56:07 +0000 (00:56 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 25 Jul 2022 21:53:46 +0000 (23:53 +0200)
commitc6f35b6ad66e57fef3f7833430b828d5f936a35a
treeafda7fce7bc2dbb016fb0475e8e62d35eff18297
parentad3e6c69b2cec7adcdadb2d7853cedd58d305206
Implement on screen numbering for Subequation module

The module subequation allows to number equations in the "Subfigure"
inset to be numbered (1a), (1b), (1c), etc.

To implement this on screen, we need to redefine temporarily the
"equation" counter to use this different numbering.

To this end, implement Counters::copy method that can be used to
backup full counter definitions.

Fixes bug #12567.
src/Counters.cpp
src/Counters.h
src/insets/InsetFlex.cpp