Define custom theorem environments with newtheorem

Parse \newtheorem{env}[shared]{Display},
\newtheorem{env}{Display}[within] and \newtheorem*{env}{Display}
from the preamble. Custom environments gain a bold heading with their
display name, share counters through the optional parent, and can scope
their numbers to the enclosing section; the starred form stays
unnumbered. Unrecognised files and cycles are unaffected.
This commit is contained in:
gloamxun committed 2026-10-24 21:00:45 +08:00
1 parent 9599436447
commit 4ca3302367
4 files changed
+203 -45

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
`\bottomnumber`, `\totalnumber`), insertion classes (`\skip`, fraction and
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
PDF opt-in with `?engine=route-d`). 631 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 634 workspace tests are green and no oracle
fixture is ignored.
Status after G1 (P0-P2): the paragraph model reproduces TeX's passes,