]> git.lyx.org Git - features.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 22:49:09 +0000 (00:49 +0200)
commit1d08af621d8649c76c5605b563dc02b5d256c82c
treee998b1b723f6c7dbb9722edb64deceb5177a7b11
parentf5c7acb140230dd0b6d96118ebab0ec364e2951c
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