lyx_mirror/lib/layouts/theorems-chap.module
Juergen Spitzmueller 66afab4497 Update layout formats
2024-08-12 12:29:50 +02:00

46 lines
1.5 KiB
Plaintext

#\DeclareLyXModule{Standard Theorems (Numbered by Chapter)}
#\DeclareCategory{Maths}
#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
# Author: Richard Kimberly Heck <rikiheck@lyx.org>
Format 107
Counter theorem
GuiName Theorem
Within chapter
LaTeXName thm
RefFormat thm "Theorem \thechapter.\arabic{theorem}"
RefFormat cor "Corollary \thechapter.\arabic{theorem}"
RefFormat lem "Lemma \thechapter.\arabic{theorem}"
RefFormat prop "Proposition \thechapter.\arabic{theorem}"
RefFormat conj "Conjecture \thechapter.\arabic{theorem}"
RefFormat def "Definition \thechapter.\arabic{theorem}"
RefFormat exa "Example \thechapter.\arabic{theorem}"
RefFormat prob "Problem \thechapter.\arabic{theorem}"
RefFormat exer "Exercise \thechapter.\arabic{theorem}"
RefFormat solu "Solution \thechapter.\arabic{theorem}"
RefFormat rem "Remark \thechapter.\arabic{theorem}"
RefFormat claim "Claim \thechapter.\arabic{theorem}"
RefFormat fact "Fact \thechapter.\arabic{theorem}"
RefFormat cri "Criterion \thechapter.\arabic{theorem}"
RefFormat alg "Algorithm \thechapter.\arabic{theorem}"
End
Style Theorem
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{\protect\theoremname}
\else
\newtheorem{thm}{\protect\theoremname}[chapter]
\fi
EndPreamble
End