]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
specify a background color for listings and allow the user to change it, patch by...
[lyx.git] / lib / layouts / elsart.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[elsart,amssymb.sty]{article (Elsevier)}
3 # Author: Rod Pinna <rpinna@civil.uwa.edu.au>
4 # The Elsevier doc style also duplicates the theorem
5 # environments used by the AMS. The definitions here have been
6 # mainly taken from the amsmath.inc file, from lyx-1.0.2, by
7 # David L. Johnson and Jean-Marc Lasgouttes. Some modifications
8 # have been made.
9 #
10 # The Elsevier style *does not* implement the starred versions
11 # of these environments, so they are not supported by this layout.
12 # There are also a few AMS environments not impletemented by Elsevier,
13 # so they are not included either.
14 #
15 # Version 1.0   19990506 R. Pinna Inital version
16 # modified 2002-04-02   Herbert Voss <voss@perce.de>
17 #       for use of BeginTitle/EndTitle
18 # modified 2003-03-11 JMarc for use of TitleLatexType/TitleLatexName
19 # modified 2003-04-10 Rod Pinna - added proof env. sent to me by Stacy Prowell
20 # modified 2003-07-23 Rod Pinna - changes MaxCounter to Section,
21 #       rather than subsection. The Elsevier doc file allows for
22 #       numbered sections, as does the class file.
23
24
25 Format 8
26 Columns                 1
27 Sides                   2
28 PageStyle               headings
29
30
31 ClassOptions
32 #  FontSize             "default"       # controlled by class
33 End
34
35 # elsart does not use the plain old \maketitle
36 TitleLatexType Environment
37 TitleLatexName frontmatter
38
39 Counter
40         Name                  summ
41 End
42
43
44 Counter
45         Name                  case
46 End
47
48
49 Style Standard
50         LatexName             dummy
51         LatexType             Paragraph
52         Margin                Static
53         ParIndent             MM
54         ParSkip               0.4
55         ParSep                0.4
56         TopSep                1.0
57         BottomSep             1.0
58         Align                 Block
59         AlignPossible         Block, Left, Right, Center
60         LabelType             No_Label
61 End
62
63
64 Style Keywords
65         LatexName             keyword
66         LatexType             Environment
67         Margin                Static
68         ParIndent             MM
69         InTitle               1
70         ParSkip               0.4
71         ParSep                0.4
72         TopSep                1.0
73         BottomSep             1.0
74         Align                 Block
75         AlignPossible         Block, Left, Right, Center
76         LabelType             No_Label
77         Font
78           Color               blue
79         EndFont
80 End
81
82
83 Input stdinsets.inc
84 Input stdsections.inc
85 Input stdstarsections.inc
86 Input stdlists.inc
87 Input stdstruct.inc
88 Input stdlayouts.inc
89 Input stdfloats.inc
90 Input stdcounters.inc
91
92
93 Style Title
94         Margin                Static
95         LatexType             Command
96         InTitle               1
97         LatexName             title
98         NextNoIndent          1
99         ParSkip               0.4
100         TopSep                1.3
101         BottomSep             0.7
102         ParSep                0.7
103         Align                 Center
104         LabelType             No_Label
105         Font
106           Family              Sans
107           Series              Bold
108           Size                Largest
109         EndFont
110 End
111
112
113 Style Author
114         Margin                Static
115         LatexType             Command
116         InTitle               1
117         LatexName             author
118         NextNoIndent          1
119         ParSkip               0.4
120         TopSep                0.7
121         BottomSep             0.7
122         ItemSep               0
123         ParSep                0
124         Align                 Center
125         OptionalArgs          1
126         Font
127           Series              Bold
128         EndFont
129 End
130
131
132 Style Author_Address
133         Margin                Static
134         LatexType             Command
135         InTitle               1
136         LatexName             address
137         Align                 Center
138         Labeltype             Static
139         LabelSep              M
140         LabelString           "Address:"
141         OptionalArgs          1
142         LabelFont
143           Shape               Italic
144         EndFont
145 End
146
147
148 Style Author_Email
149         Margin                Static
150         LatexType             Command
151         InTitle               1
152         PassThru              1
153         LatexName             ead
154         Align                 Center
155         Labeltype             Static
156         LabelSep              M
157         LabelString           "Email:"
158         TextFont
159           Family              Typewriter
160         EndFont
161         LabelFont
162           Shape               Italic
163           Family              Roman
164         EndFont
165 End
166
167
168 Style Author_URL
169         Margin                Static
170         LatexType             Command
171         InTitle               1
172         PassThru              1
173         LatexName             ead
174         LatexParam            "[url]"
175         Align                 Center
176         Labeltype             Static
177         LabelSep              M
178         LabelString           "URL:"
179         TextFont
180           Family              Typewriter
181         EndFont
182         LabelFont
183           Shape               Italic
184           Family              Roman
185         EndFont
186 End
187
188
189 # thanks is like a footnote
190 Style Thanks
191         Margin                Static
192         LatexType             Command
193         LatexName             thanks
194         InTitle               1
195         Font
196           Size                Small
197           Family              Typewriter
198           Shape               Italic
199         EndFont
200 End
201
202
203 Style Abstract
204         Margin                Static
205         LatexType             Environment
206         LatexName             abstract
207         NextNoIndent          1
208         InTitle               1
209         LeftMargin            MMM
210         RightMargin           MMM
211         ParIndent             MM
212         ItemSep               0
213         TopSep                0.7
214         BottomSep             0.7
215         ParSep                0
216         Align                 Block
217         LabelType             Centered_Top_Environment
218         LabelString           "Abstract"
219         LabelBottomSep        0.5
220         Font
221           Size                Small
222         EndFont
223         LabelFont
224           Series              Bold
225           Size                Large
226         EndFont
227 End
228
229
230 # Theorem environments have been copied over from the amsmaths.inc file. It
231 # could not be input as it does some stuff which is incompatible with the
232 # Elsevier stlye: it redefines the theorem* environments in the preamble.
233
234 # The environments defined are :
235 # - Theorem
236 # - Proof
237 # - Corollary
238 # - Lemma
239 # - Proposition
240 # - Conjecture
241 # - Criterion
242 # - Algorithm
243 # - Definition
244 # - Example
245 # - Problem
246 # - Remark
247 # - Note
248 # - Claim
249 # - Summary
250 # - Acknowledgement
251 # - Case
252
253 Counter
254         Name                  theorem
255 End
256
257
258 Style Theorem
259         Margin                First_Dynamic
260         LatexType             Environment
261         LatexName             thm
262         NextNoIndent          1
263         LabelSep              xx
264         ParIndent             MMM
265         ParSkip               0.4
266         ItemSep               0.2
267         TopSep                0.7
268         BottomSep             0.7
269         ParSep                0.3
270         Align                 Block
271         AlignPossible         Block, Left
272         LabelType             Counter
273         LabelCounter          theorem
274         LabelString           "Theorem \arabic{theorem}"
275         Font
276           Shape               Italic
277           Size                Normal
278         EndFont
279         LabelFont
280           Shape               Up
281           Series              Bold
282         EndFont
283 End
284
285
286 # Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu)
287 Style Proof
288         Margin                First_Dynamic
289         LatexType             Environment
290         # elsart defines the unusual environment pf for proofs.
291         LatexName             pf
292         NextNoIndent          1
293         LabelSep              xx
294         ParIndent             MMM
295         ParSkip               0.4
296         ItemSep               0.2
297         TopSep                0.7
298         BottomSep             0.7
299         ParSep                0.3
300         Align                 Block
301         AlignPossible         Block, Left
302         LabelType             Static
303         LabelString           "PROOF."
304         Font
305           Shape               Up
306           Size                Normal
307         EndFont
308         LabelFont
309           Series              Bold
310         EndFont
311 End
312
313
314 Style Lemma
315         CopyStyle             Theorem
316         LatexName             lem
317         LabelString           "Lemma \arabic{theorem}"
318 End
319
320
321 Style Corollary
322         CopyStyle             Theorem
323         LatexName             cor
324         LabelString           "Corollary \arabic{theorem}"
325 End
326
327
328 Style Proposition
329         CopyStyle             Theorem
330         LatexName             prop
331         LabelString           "Proposition \arabic{theorem}"
332 End
333
334
335 Style Criterion
336         CopyStyle             Theorem
337         LatexName             crit
338         LabelString           "Criterion \arabic{theorem}"
339 End
340
341
342 Style Algorithm
343         CopyStyle             Theorem
344         LatexName             alg
345         LabelString           "Algorithm \arabic{theorem}"
346 End
347
348
349 Style Definition
350         CopyStyle             Theorem
351         LatexName             defn
352         LabelString           "Definition \arabic{theorem}"
353         Font
354           Shape               Up
355         EndFont
356         LabelFont
357           Shape               Up
358           Series              Bold
359         EndFont
360 End
361
362
363 Style Conjecture
364         CopyStyle             Theorem
365         LatexName             conj
366         LabelString           "Conjecture \arabic{theorem}"
367 End
368
369
370 Style Example
371         CopyStyle             Theorem
372         LatexName             exmp
373         LabelString           "Example \arabic{theorem}"
374 End
375
376
377 Style Problem
378         CopyStyle             Theorem
379         LatexName             prob
380         LabelString           "Problem \arabic{theorem}"
381 End
382
383
384 Style Remark
385         CopyStyle             Theorem
386         LatexName             rem
387         LabelString           "Remark \arabic{theorem}"
388 End
389
390
391 Style Note
392         CopyStyle             Theorem
393         LatexName             note
394         LabelString           "Note \arabic{theorem}"
395 End
396
397
398 Style Claim
399         CopyStyle             Theorem
400         LatexName             claim
401         LabelString           "Claim \arabic{theorem}"
402 End
403
404
405 Style Summary
406         CopyStyle             Theorem
407         LatexName             summ
408         LabelCounter          summ
409         LabelString           "Summary \arabic{summ}"
410 End
411
412
413 Style Case
414         CopyStyle             Theorem
415         LatexName             case
416         LabelCounter          case
417         LabelString           "Case \arabic{case}"
418 End
419
420
421 # This is not taken from the AMS defs, so as to match the output of the
422 # style file.
423 Style Acknowledgement
424         Margin                Static
425         LatexType             environment
426         LatexName             ack
427         Labeltype             Top_Environment
428         LabelBottomsep        1
429         LabelString           "Acknowledgements"
430         parsep                0.3
431         LabelFont
432           Size                large
433           Series              Bold
434         EndFont
435 End