]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap.module
1b754ee4b68c55e29e665c138fce40753920a95d
[lyx.git] / lib / layouts / theorems-chap.module
1 #\DeclareLyXModule{Theorems (Numbered by Chapter)}
2 #DescriptionBegin
3 #Numbers theorems and the like by chapter (i.e., the counter is reset at
4 #each chapter start). Use this module only with document classes that provide a chapter
5 #environment.
6 #DescriptionEnd
7 #Requires: theorems-std | theorems-ams
8 #Excludes: theorems-sec
9 #Category: theorems
10
11 # Author: Richard Heck <rgheck@comcast.net>
12
13 Format 68
14
15 Counter theorem
16         Within         chapter
17 End
18
19 Style Theorem
20         Preamble
21                 \theoremstyle{plain}
22                 \ifx\thechapter\undefined
23                         \newtheorem{thm}{\protect\theoremname}
24                 \else
25                         \newtheorem{thm}{\protect\theoremname}[chapter]
26                 \fi
27         EndPreamble
28 End