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