]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-sec.module
Update layout format.
[lyx.git] / lib / layouts / theorems-sec.module
1 #\DeclareLyXModule{Theorems (Numbered by Section)}
2 #DescriptionBegin
3 #Numbers theorems and the like by section (i.e., the counter is reset at
4 #each section start).
5 #DescriptionEnd
6 #Requires: theorems-std | theorems-ams
7 #Excludes: theorems-chap
8 #Category: theorems
9
10 # Author: Richard Heck <rgheck@comcast.net>
11
12 Format 27
13
14 Counter theorem
15         Within         section
16 End
17
18 Style Theorem
19         Preamble
20                 \theoremstyle{plain}
21                 \newtheorem{thm}{\protect\theoremname}[section]
22         EndPreamble
23         LangPreamble
24                 \providecommand{\theoremname}{_(Theorem)}
25         EndLangPreamble
26         BabelPreamble
27                 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
28         EndBabelPreamble
29 End