]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap.module
Update the rest to format 9, as well. The counter stuff will
[lyx.git] / lib / layouts / theorems-chap.module
1 #\DeclareLyXModule{Theorems (Order By Chapter)}
2 #DescriptionBegin
3 #Numbers theorems and the like by chapter. Use this module only with
4 #layouts that provide a chapter environment.
5 #DescriptionEnd
6 #Requires: theorems-std | theorems-ams
7
8 # Author: Richard Heck <rgheck@comcast.net>
9
10 Format 9
11
12 Counter
13         Name           theorem
14         Within         chapter
15 End
16
17 Style Theorem
18         Preamble
19                 \ifx\thechapter\undefined
20                         \newtheorem{thm}{Theorem}
21                 \else
22                         \newtheorem{thm}{Theorem}[chapter]
23                 \fi
24                 
25         EndPreamble
26 End