]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-sec.module
Allow literate documents other than noweb to work out of the box. Currently
[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
8 # Author: Richard Heck <rgheck@comcast.net>
9
10 Format 14
11
12 Counter theorem
13         Within         section
14 End
15
16 Style Theorem
17         Preamble
18                 \newtheorem{thm}{\protect\theoremname}[section]
19         EndPreamble
20         LangPreamble
21                 \providecommand{\theoremname}{_(Theorem)}
22         EndLangPreamble
23         BabelPreamble
24                 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
25         EndBabelPreamble
26 End