]> git.lyx.org Git - features.git/blob - lib/layouts/amsdefs.inc
DocBook: implement AMS book.
[features.git] / lib / layouts / amsdefs.inc
1 # Author : David L. Johnson <dlj0@lehigh.edu>
2 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 # modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
4 # Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
5 # Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
6
7 # Including the maths stuff
8 Format 85
9
10 # By default AMS articles & books use leqno option (as SIAM journals).
11 Provides leqno 1
12
13 # the environments copied from the old amsart.layout are:
14 # - Bibliography
15 # - Title
16 # - Author
17 # - Date
18 # - Abstract (This is a title component for this style.)
19 # - Address
20 # - Email
21 # - Keywords
22 # - Subjectclass
23
24
25 ### Now the title stuff. We copy do not use stdstruct.inc to keep
26 ### things in the right order
27 Style Title
28         Category              FrontMatter
29         Margin                Static
30         LatexType             Command
31         InTitle               1
32         LatexName             title
33         ParSkip               0.4
34         ItemSep               0
35         TopSep                0
36         BottomSep             1
37         ParSep                1
38         Align                 Center
39         LabelType             No_Label
40         Argument 1
41                 LabelString   "Short Title|S"
42                 Tooltip       "Short title which appears in the running headers"
43                 InsertCotext  1
44         EndArgument
45         Font
46           Shape               Smallcaps
47           Series              Bold
48           Size                Larger
49         EndFont
50         HTMLTitle             true
51         DocBookTag            title
52         DocBookTagType        paragraph
53         DocBookInInfo         maybe
54 End
55
56
57 Style Author
58         Category              FrontMatter
59         Margin                Static
60         LatexType             Command
61         InTitle               1
62         LatexName             author
63         LabelSep              xxx
64         ParSkip               0.4
65         TopSep                1.3
66         BottomSep             0.7
67         ParSep                0.7
68         Align                 Center
69         LabelType             No_Label
70         Font
71           Size                Large
72           Shape               Smallcaps
73         EndFont
74         DocBookTag            personname
75         DocBookTagType        paragraph
76         DocBookWrapperTag     author
77         DocBookWrapperMergeWithPrevious true
78         DocBookInInfo         always
79 End
80
81
82 Style Date
83         Category              FrontMatter
84         Margin                Dynamic
85         LatexType             Command
86         InTitle               1
87         LatexName             date
88         LabelSep              xxx
89         ParSkip               0.4
90         TopSep                0.9
91         BottomSep             0.5
92         ParSep                1
93         Align                 Center
94         LabelType             Static
95         LabelString           "Date:"
96         Font
97           Size                Large
98         EndFont
99         LabelFont
100           Shape               Italic
101           Size                Large
102         EndFont
103         DocBookTag            date
104         DocBookTagType        paragraph
105         DocBookInInfo         always
106 End
107
108
109 Style Abstract
110         Category              FrontMatter
111         Margin                First_Dynamic
112         LatexType             Environment
113         InTitle               1
114         LatexName             abstract
115         LeftMargin            MMM
116         LabelIndent           MMM
117         RightMargin           MMM
118         ParIndent             MM
119         TopSep                0.7
120         BottomSep             0.7
121         Align                 Block
122         LabelType             Static
123         LabelString           "Abstract."
124         LabelSep              M
125         Font
126           Size                Small
127         EndFont
128         LabelFont
129           Shape               Smallcaps
130         EndFont
131 End
132
133 # Clear Address definition from lyxmacros
134 NoStyle Address
135
136 Style Address
137         Category              FrontMatter
138         Margin                Dynamic
139         LatexType             Command
140         InTitle               1
141         LatexName             address
142         ParSkip               0.4
143         BottomSep             1.5
144         ParSep                1.5
145         Align                 Left
146         AlignPossible         Block, Left, Right, Center
147         LabelType             Static
148         LabelString           "Address:"
149         LabelSep              M
150         LabelFont
151           Shape               Italic
152         EndFont
153         DocBookTag            address
154         DocBookTagType        paragraph
155         DocBookWrapperTag     author
156         DocBookWrapperMergeWithPrevious true
157         DocBookInInfo         always
158 End
159
160
161 Style Current_Address
162         CopyStyle             Address
163         LatexName             curraddr
164         LabelString           "Current address:"
165         DocBookTag            address
166         DocBookTagType        paragraph
167         DocBookInInfo         always
168         DocBookAttr           role='current'
169 End
170
171
172 Style Email
173         CopyStyle             Address
174         Margin                First_Dynamic
175         LatexName             email
176         LabelString           "E-mail address:"
177         DocBookTag            email
178         DocBookTagType        paragraph
179         DocBookWrapperTag     author
180         DocBookWrapperMergeWithPrevious true
181         DocBookInInfo         always
182 End
183
184
185 Style URL
186         CopyStyle             Address
187         Margin                First_Dynamic
188         LatexName             urladdr
189         LabelString           "URL:"
190         DocBookTag            uri
191         DocBookTagType        paragraph
192         DocBookWrapperTag     author
193         DocBookWrapperMergeWithPrevious true
194         DocBookInInfo         always
195 End
196
197
198 Style Keywords
199         CopyStyle             Address
200         LatexName             keywords
201         LabelString           "Key words and phrases:"
202         DocBookTag            keyword
203         DocBookTagType        paragraph
204         DocBookWrapperTag     keywordset
205         DocBookWrapperMergeWithPrevious true
206         DocBookInInfo         always
207 End
208
209
210 Style Thanks
211         CopyStyle             Address
212         LatexName             thanks
213         LabelString           "Thanks:"
214         DocBookTag            para
215         DocBookWrapperTag     acknowledgements
216         DocBookWrapperMergeWithPrevious true
217         DocBookInInfo         never
218 End
219
220
221 Style Dedicatory
222         CopyStyle             Address
223         LatexName             dedicatory
224         LabelString           "Dedication:"
225         DocBookTag            para
226         DocBookWrapperTag     dedication
227         DocBookWrapperMergeWithPrevious true
228         DocBookInInfo         never
229 End
230
231
232 Style Translator
233         CopyStyle             Address
234         LatexName             translator
235         LabelString           "Translator:"
236         DocBookTag            personname
237         DocBookTagType        paragraph
238         DocBookWrapperTag     othercredit
239         DocBookWrapperAttr    role='translator'
240         DocBookWrapperMergeWithPrevious true
241         DocBookInInfo         always
242 End
243
244
245 Style Subjectclass
246         CopyStyle             Address
247         LatexName             subjclass[2000]
248         LabelString           "2000 Mathematics Subject Classification:"
249         DocBookItemTag        subjectterm
250         DocBookItemTagType    inline
251         DocBookTag            subject
252         DocBookTagType        paragraph
253         DocBookWrapperTag     subjectset
254         DocBookWrapperMergeWithPrevious true
255         DocBookInInfo         always
256 End
257
258
259 Style Bibliography
260         Category              BackMatter
261         Margin                First_Dynamic
262         LatexType             Bib_Environment
263         LatexName             thebibliography
264         NextNoIndent          1
265         ToggleIndent          Never
266         LeftMargin            MM
267         ParSkip               0.4
268         ItemSep               0
269         TopSep                0.7
270         BottomSep             0.7
271         ParSep                0.5
272         Align                 Block
273         AlignPossible         Block, Left
274         LabelType             Bibliography
275         LabelString           "References"
276         LabelBottomSep        0.7
277         Font
278           Size                Small
279         EndFont
280         LabelFont
281           Size                Normal
282           Shape               Smallcaps
283         EndFont
284         TocLevel             1
285         IsTocCaption         0
286         Argument listpreamble:1
287           LabelString    "Bib preamble"
288           MenuString     "Bibliography Preamble"
289           Tooltip        "LaTeX code to be inserted before the first bibliography item"
290           PassThru           1
291           Font
292             Family           typewriter
293             Color            latex
294           EndFont
295         EndArgument
296 End