This is just to encourage those of us who use theorems and the like to
test this. I've looked through the code, and (no surprise here) it looks
right, but this is probably delicate. I'll test it myself this weekend.
Riki
On 4/25/25 10:28 AM, Juergen Spitzmueller wrote:
commit 7d5952201dfdcc464bf86a5b2d8a4f189e11bdf6
Author: Juergen Spitzmueller <sp...@lyx.org>
Date: Fri Apr 25 16:23:50 2025 +0200
Integrate theorem definition in layout
Rather than using verbatim \newtheorem definitions in the Preamble
tag, introduce dedicated layout tags from which the definition
will be set up.
This prevents redundant code, but more importantly, it is required
for support of theorems via cleveref and zref-clever. They support
many theorems by default, but not the way we used them (see #13176).
Some support is implemented with this commit, some still needs to be
done.
Layout format change.
lib/doc/Customization.lyx | 383 ++++++++++++++++++++-
lib/doc/de/Customization.lyx | 326 ++++++++++++++++--
lib/layouts/AEA.layout | 40 +++
lib/layouts/maa-monthly.layout | 5 +-
lib/layouts/theorems-ams-bytype.inc | 103 +++---
lib/layouts/theorems-ams-chap-bytype.inc | 168 ++++-----
lib/layouts/theorems-ams-extended-bytype.module | 149 ++++----
.../theorems-ams-extended-chap-bytype.module | 199 +++++------
lib/layouts/theorems-ams-extended.module | 165 +++++----
lib/layouts/theorems-ams.inc | 112 +++---
lib/layouts/theorems-bytype.inc | 105 +++---
lib/layouts/theorems-chap-bytype.module | 108 +-----
lib/layouts/theorems-chap.module | 9 +-
lib/layouts/theorems-named.module | 13 +-
lib/layouts/theorems-sec-bytype.module | 60 +---
lib/layouts/theorems-sec.module | 5 +-
lib/layouts/theorems-starred.inc | 100 +++---
lib/layouts/theorems.inc | 113 +++---
lib/scripts/layout2layout.py | 8 +-
src/BufferParams.cpp | 1 +
src/LaTeXFeatures.cpp | 47 +++
src/LaTeXFeatures.h | 15 +
src/Layout.cpp | 37 ++
src/Layout.h | 25 ++
src/TextClass.cpp | 2 +-
25 files changed, 1417 insertions(+), 881 deletions(-)
--
----------------------------
Richard Kimberly (Riki) Heck
Professor of Philosophy and Professor of Linguistics
Brown University
Pronouns: they/them/their
Website: http://rkheck.frege.org/
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel