]> git.lyx.org Git - lyx.git/commit
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 31 Dec 2022 00:47:37 +0000 (01:47 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 31 Dec 2022 00:56:51 +0000 (01:56 +0100)
commit42c2a25fb873727d87ce753b3a3ac4e913e36fe0
tree2312ae9ba0816537a2fad57ba92fa584b6ee0f33
parent102a68dd6a7abe5a68df58a6b7f29bc467e53f06
New Theorems Module. Contributed by  Udicoudco <udifoglle@gmail.com> on the mailing list. Rebased on top of master.

I've modified all the non-AMS theorem modules so they would be independent of packages. currently
the code support \theoremstyle, but only with definition, plain and remark.

I'v added a new theorem module that support the thmtools \listoftheorems.

I've modified the syntax of all theorem modules, such that it would be easier to
create a new one, or maintaining the ones that exists. Instead of using \newtheorem
in the preamble of a lyaout, I wrote \lyx@newtheorem, and in each module I've defiened
\lyx@newtheorem as fitted. This way, there is only need in the files thorems-base, and theorems-extended,
instead of an .inc file for each module.

I've added theorems-labels.inc, a file that suppose to be included in a "Numbered by type" module,
to change the Label and the LabelCounter of the layouts in theorems-base.inc.

Note that in this configuration, all non-AMS modules will clash with the AMS ones, and so as the
proof versions. theorems-proof-std.inc suppose to be in the non-AMS while theorems-proof.inc
should be included only in AMS variants.
30 files changed:
autotests/export/docbook/theorems-thmtools.lyx [new file with mode: 0644]
autotests/export/docbook/theorems-thmtools.xml [new file with mode: 0644]
lib/layouts/theorems-ams-bytype.inc [deleted file]
lib/layouts/theorems-ams-bytype.module
lib/layouts/theorems-ams-chap-bytype.inc [deleted file]
lib/layouts/theorems-ams-chap-bytype.module
lib/layouts/theorems-ams-extended-bytype.module
lib/layouts/theorems-ams-extended-chap-bytype.module
lib/layouts/theorems-ams-extended.module
lib/layouts/theorems-ams.inc [deleted file]
lib/layouts/theorems-ams.module
lib/layouts/theorems-bytype.inc [deleted file]
lib/layouts/theorems-bytype.module
lib/layouts/theorems-case.inc
lib/layouts/theorems-chap-bytype.module
lib/layouts/theorems-chap.module
lib/layouts/theorems-extended.inc [new file with mode: 0644]
lib/layouts/theorems-labels.inc [new file with mode: 0644]
lib/layouts/theorems-named.module
lib/layouts/theorems-order.inc [deleted file]
lib/layouts/theorems-proof-std.inc
lib/layouts/theorems-proof.inc
lib/layouts/theorems-sec-bytype.module
lib/layouts/theorems-sec.module
lib/layouts/theorems-starred-equivalents.inc [deleted file]
lib/layouts/theorems-starred.inc [deleted file]
lib/layouts/theorems-starred.module [deleted file]
lib/layouts/theorems-std.module
lib/layouts/theorems-thmtools.module [new file with mode: 0644]
lib/layouts/theorems.inc