]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap.module
Update layouts
[lyx.git] / lib / layouts / theorems-chap.module
1 #\DeclareLyXModule{Standard Theorems (Numbered by Chapter)}
2 #\DeclareCategory{Maths}
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 85
14
15 Counter theorem
16         GuiName Theorem
17         Within         chapter
18 End
19
20 Style Theorem
21         Preamble
22                 \theoremstyle{plain}
23                 \ifx\thechapter\undefined
24                         \newtheorem{thm}{\protect\theoremname}
25                 \else
26                         \newtheorem{thm}{\protect\theoremname}[chapter]
27                 \fi
28         EndPreamble
29 End