mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
bbf287a3c6
Now layout files and modules can extend the cite engines or completely overwrite them, and modify the cite formats. Any CiteEngine definition in a layout/module will completely overwrite those by cite engine files. AddToCiteEngine will extend them (add if they do not exist yet). Any CiteFormat definition in a layout will be preferred to those in cite engines. CiteFormat definitions that are not touched by the former are still active, though (so, as opposed to CiteEngine, a CiteFormat does not completely overwrite those by the engine files). Layout format change.
29 lines
644 B
Plaintext
29 lines
644 B
Plaintext
#\DeclareLyXModule{Theorems (Numbered by Chapter)}
|
|
#DescriptionBegin
|
|
#Numbers theorems and the like by chapter (i.e., the counter is reset at
|
|
#each chapter start). Use this module only with document classes that provide a chapter
|
|
#environment.
|
|
#DescriptionEnd
|
|
#Requires: theorems-std | theorems-ams
|
|
#Excludes: theorems-sec
|
|
#Category: theorems
|
|
|
|
# Author: Richard Heck <rgheck@comcast.net>
|
|
|
|
Format 68
|
|
|
|
Counter theorem
|
|
Within chapter
|
|
End
|
|
|
|
Style Theorem
|
|
Preamble
|
|
\theoremstyle{plain}
|
|
\ifx\thechapter\undefined
|
|
\newtheorem{thm}{\protect\theoremname}
|
|
\else
|
|
\newtheorem{thm}{\protect\theoremname}[chapter]
|
|
\fi
|
|
EndPreamble
|
|
End
|