]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap.module
Module re-categorization, part 2
[lyx.git] / lib / layouts / theorems-chap.module
1 #\DeclareLyXModule{Standard Theorems (Numbered by Chapter)}
2 #\DeclareCategory{Theorems}
3 #DescriptionBegin
4 #Numbers theorems and the like by chapter (i.e., the counter is reset at
5 #each chapter start). Use this module only with document classes that provide a chapter
6 #environment.
7 #DescriptionEnd
8 #Requires: theorems-std | theorems-ams
9 #Excludes: theorems-sec
10
11 # Author: Richard Heck <rgheck@comcast.net>
12
13 Format 72
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