]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-std.module
Normalize whitespace.
[lyx.git] / lib / layouts / theorems-std.module
1 #\DeclareLyXModule{Theorems}
2 #DescriptionBegin
3 #Defines some theorem environments for use with non-AMS classes. By default, 
4 #the theorems are numbered consecutively throughout the document. This can be
5 #changed by loading one of the Theorems (Ordered By ...) modules.
6 #DescriptionEnd
7 #Excludes: theorems-ams | theorems-starred
8
9 # Author: Richard Heck <rgheck@comcast.net>
10
11 Format 14
12
13 Counter theorem
14 End
15
16 Input theorems.inc
17 Input theorems-proof.inc
18
19 #This is just a hacked version of the AMS proof environment
20 Style Proof
21         Preamble
22                 \ifx\proof\undefined\
23                 \newenvironment{proof}[1][\protect\proofname]{\par
24                         \normalfont\topsep6\p@\@plus6\p@\relax
25                         \trivlist
26                         \itemindent\parindent
27                         \item[\hskip\labelsep
28                                         \scshape
29                                 #1]\ignorespaces
30                 }{%
31                         \endtrivlist\@endpefalse
32                 }
33                 \fi
34         EndPreamble
35         LangPreamble
36                 \providecommand{\proofname}{_(Proof)}
37         EndLangPreamble
38         BabelPreamble
39                 \addto\captions$$lang{\renewcommand{\proofname}{_(Proof)}}
40         EndBabelPreamble
41 End