]> git.lyx.org Git - lyx.git/blob - lib/layouts/amsbook.layout
* add modules to do equation/figure/table numbering sectionwise.
[lyx.git] / lib / layouts / amsbook.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{book (AMS)}
3 # AMS-Article textclass definition file. Taken from initial LyX source code
4 # and from the Article textclass definition file, following the AMS sample
5 # paper "testmath.tex" of January, 1995
6 # Author : David L. Johnson <dlj0@lehigh.edu>
7 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8 # modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
9 # Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
10 # Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
11 # Moved "number within sections" to modules Aug '09 (Paul Rubin <rubin@msu.edu>)
12
13
14 Format 11
15 Columns                 1
16 Sides                   2
17 PageStyle               Headers
18
19
20 ClassOptions
21         FontSize   8|9|10|11|12
22 End
23
24 DefaultModule theorems-ams
25 DefaultModule eqs-within-sections
26 DefaultModule figs-within-sections
27
28 Style Standard
29         Category              MainText
30         Margin                Static
31         LatexType             Paragraph
32         LatexName             dummy
33         ParIndent             MM
34         ParSkip               0.4
35         Align                 Block
36         AlignPossible         Block, Left, Right, Center
37         LabelType             No_Label
38 End
39
40
41 Preamble
42         \numberwithin{section}{chapter}
43 EndPreamble
44
45
46 Input stdsections.inc
47 Input stdinsets.inc
48 Input numreport.inc
49
50
51 Style Section
52         Align                 Center
53         Font
54           Series              Bold
55           Size                Large
56         EndFont
57 End
58
59
60 Style Subsection
61         Font
62           Series              Bold
63           Size                Normal
64         EndFont
65 End
66
67
68 Style Subsubsection
69         Font
70           Shape               Italic
71           Size                Normal
72         EndFont
73 End
74
75
76 Input stdstarsections.inc
77
78
79 Style Section*
80         Align                 Center
81         Font
82           Series              Bold
83           Size                Large
84         EndFont
85 End
86
87
88 Style Subsection*
89         Font
90           Series              Bold
91           Size                Normal
92         EndFont
93 End
94
95
96 Style Subsubsection*
97         Font
98           Shape               Italic
99           Size                Normal
100         EndFont
101 End
102
103
104 Input lyxmacros.inc
105 Input stdlayouts.inc
106 Input stdlists.inc
107 Input stdfloats.inc
108 Input stdcounters.inc
109 Input amsdefs.inc
110
111 # Unwanted styles from the includes
112 NoStyle Address
113 NoStyle Verse
114
115 # Chapter is _not_ prepended
116 # JSpitz: this seems to be not true (anymore?)
117 #Style Section
118 #       LabelString          "\arabic{section}"
119 #       LabelStringAppendix  "\arabic{section}"
120 #End
121
122
123 Style Paragraph
124         Font
125           Series Medium
126         EndFont
127 End
128
129
130 # End-of Chapter exercises  I need a way to do this.
131 Style Chapter_Exercises
132         Margin                First_Dynamic
133         LatexType             Item_Environment
134         LatexName             lyxxcb
135         NextNoIndent          1
136         LeftMargin            MMN
137         LabelSep              xx
138         ParSkip               0.0
139         ItemSep               0.2
140         TopSep                0.7
141         BottomSep             0.7
142         ParSep                0.3
143         Align                 Block
144         AlignPossible         Block, Left
145         LabelType             Counter
146         LabelFont
147           Shape               Up
148           Series              Bold
149         EndFont
150         Preamble
151           \newenvironment{lyxxcb}{\begin{xcb}{Exercises}\begin{enumerate}}
152                              {\end{enumerate}\end{xcb}}
153         EndPreamble
154 End