]> git.lyx.org Git - lyx.git/blob - lib/layouts/amsbook.layout
layouts, templates, examples: port my latest changes to trunk
[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 35
15
16 Columns                 1
17 Sides                   2
18 PageStyle               Headers
19
20 Provides amsmath         1
21 Provides makeidx         1
22
23 ClassOptions
24         FontSize   8|9|10|11|12
25 End
26
27 DefaultModule theorems-ams
28 DefaultModule eqs-within-sections
29 DefaultModule figs-within-sections
30
31 Style Standard
32         Category       MainText
33         Margin         Static
34         LatexType      Paragraph
35         LatexName      dummy
36         ParIndent      MM
37         ParSkip        0.4
38         Align          Block
39         AlignPossible  Block, Left, Right, Center
40         LabelType      No_Label
41 End
42
43
44 Preamble
45         \numberwithin{section}{chapter}
46 EndPreamble
47
48
49 Input stdsections.inc
50 Input stdinsets.inc
51 Input numreport.inc
52
53
54 Style Section
55         Align          Center
56         Font
57           Series       Bold
58           Size         Large
59         EndFont
60         TocLevel 1
61 End
62
63
64 Style Subsection
65         Font
66           Series       Bold
67           Size         Normal
68         EndFont
69         TocLevel 2
70 End
71
72
73 Style Subsubsection
74         Font
75           Shape        Italic
76           Size         Normal
77         EndFont
78         TocLevel 3
79 End
80
81 Input stdstarsections.inc
82
83 Style Section*
84         Align          Center
85         Font
86           Series       Bold
87           Size         Large
88         EndFont
89 End
90
91
92 Style Subsection*
93         Font
94           Series       Bold
95           Size         Normal
96         EndFont
97 End
98
99
100 Style Subsubsection*
101         Font
102           Shape        Italic
103           Size         Normal
104         EndFont
105 End
106
107
108 Input lyxmacros.inc
109 Input stdlayouts.inc
110 Input stdlists.inc
111 Input stdfloats.inc
112 Input stdcounters.inc
113 Input amsdefs.inc
114
115 # Unwanted styles from the includes
116 NoStyle Verse
117
118 # Chapter is _not_ prepended
119 # JSpitz: this seems to be not true (anymore?)
120 #Style Section
121 #       LabelString          "\arabic{section}"
122 #       LabelStringAppendix  "\arabic{section}"
123 #End
124
125
126 Style Paragraph
127         Font
128           Series       Medium
129         EndFont
130         TocLevel 4
131 End
132
133
134 # End-of Chapter exercises  I need a way to do this.
135 Style Chapter_Exercises
136         Margin                First_Dynamic
137         LatexType             Item_Environment
138         LatexName             lyxxcb
139         NextNoIndent          1
140         LeftMargin            MMN
141         LabelSep              xx
142         ParSkip               0.0
143         ItemSep               0.2
144         TopSep                0.7
145         BottomSep             0.7
146         ParSep                0.3
147         Align                 Block
148         AlignPossible         Block, Left
149         LabelType             Counter
150         LabelFont
151           Shape               Up
152           Series              Bold
153         EndFont
154         Preamble
155           \newenvironment{lyxxcb}{\begin{xcb}{Exercises}\begin{enumerate}}
156                              {\end{enumerate}\end{xcb}}
157         EndPreamble
158 End