]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
elsart.layout: \thanks can have an optional argument, see http://www.mail-archive...
[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         OptionalArgs          1
196         Font
197           Size                Small
198           Family              Typewriter
199           Shape               Italic
200         EndFont
201 End
202
203
204 Style Abstract
205         Margin                Static
206         LatexType             Environment
207         LatexName             abstract
208         NextNoIndent          1
209         InTitle               1
210         LeftMargin            MMM
211         RightMargin           MMM
212         ParIndent             MM
213         ItemSep               0
214         TopSep                0.7
215         BottomSep             0.7
216         ParSep                0
217         Align                 Block
218         LabelType             Centered_Top_Environment
219         LabelString           "Abstract"
220         LabelBottomSep        0.5
221         Font
222           Size                Small
223         EndFont
224         LabelFont
225           Series              Bold
226           Size                Large
227         EndFont
228 End
229
230
231 # Theorem environments have been copied over from the amsmaths.inc file. It
232 # could not be input as it does some stuff which is incompatible with the
233 # Elsevier stlye: it redefines the theorem* environments in the preamble.
234
235 # The environments defined are :
236 # - Theorem
237 # - Proof
238 # - Corollary
239 # - Lemma
240 # - Proposition
241 # - Conjecture
242 # - Criterion
243 # - Algorithm
244 # - Definition
245 # - Example
246 # - Problem
247 # - Remark
248 # - Note
249 # - Claim
250 # - Summary
251 # - Acknowledgement
252 # - Case
253
254 Counter
255         Name                  theorem
256 End
257
258
259 Style Theorem
260         Margin                First_Dynamic
261         LatexType             Environment
262         LatexName             thm
263         NextNoIndent          1
264         LabelSep              xx
265         ParIndent             MMM
266         ParSkip               0.4
267         ItemSep               0.2
268         TopSep                0.7
269         BottomSep             0.7
270         ParSep                0.3
271         Align                 Block
272         AlignPossible         Block, Left
273         LabelType             Counter
274         LabelCounter          theorem
275         LabelString           "Theorem \arabic{theorem}"
276         Font
277           Shape               Italic
278           Size                Normal
279         EndFont
280         LabelFont
281           Shape               Up
282           Series              Bold
283         EndFont
284 End
285
286
287 # Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu)
288 Style Proof
289         Margin                First_Dynamic
290         LatexType             Environment
291         # elsart defines the unusual environment pf for proofs.
292         LatexName             pf
293         NextNoIndent          1
294         LabelSep              xx
295         ParIndent             MMM
296         ParSkip               0.4
297         ItemSep               0.2
298         TopSep                0.7
299         BottomSep             0.7
300         ParSep                0.3
301         Align                 Block
302         AlignPossible         Block, Left
303         LabelType             Static
304         LabelString           "PROOF."
305         Font
306           Shape               Up
307           Size                Normal
308         EndFont
309         LabelFont
310           Series              Bold
311         EndFont
312 End
313
314
315 Style Lemma
316         CopyStyle             Theorem
317         LatexName             lem
318         LabelString           "Lemma \arabic{theorem}"
319 End
320
321
322 Style Corollary
323         CopyStyle             Theorem
324         LatexName             cor
325         LabelString           "Corollary \arabic{theorem}"
326 End
327
328
329 Style Proposition
330         CopyStyle             Theorem
331         LatexName             prop
332         LabelString           "Proposition \arabic{theorem}"
333 End
334
335
336 Style Criterion
337         CopyStyle             Theorem
338         LatexName             crit
339         LabelString           "Criterion \arabic{theorem}"
340 End
341
342
343 Style Algorithm
344         CopyStyle             Theorem
345         LatexName             alg
346         LabelString           "Algorithm \arabic{theorem}"
347 End
348
349
350 Style Definition
351         CopyStyle             Theorem
352         LatexName             defn
353         LabelString           "Definition \arabic{theorem}"
354         Font
355           Shape               Up
356         EndFont
357         LabelFont
358           Shape               Up
359           Series              Bold
360         EndFont
361 End
362
363
364 Style Conjecture
365         CopyStyle             Theorem
366         LatexName             conj
367         LabelString           "Conjecture \arabic{theorem}"
368 End
369
370
371 Style Example
372         CopyStyle             Theorem
373         LatexName             exmp
374         LabelString           "Example \arabic{theorem}"
375 End
376
377
378 Style Problem
379         CopyStyle             Theorem
380         LatexName             prob
381         LabelString           "Problem \arabic{theorem}"
382 End
383
384
385 Style Remark
386         CopyStyle             Theorem
387         LatexName             rem
388         LabelString           "Remark \arabic{theorem}"
389 End
390
391
392 Style Note
393         CopyStyle             Theorem
394         LatexName             note
395         LabelString           "Note \arabic{theorem}"
396 End
397
398
399 Style Claim
400         CopyStyle             Theorem
401         LatexName             claim
402         LabelString           "Claim \arabic{theorem}"
403 End
404
405
406 Style Summary
407         CopyStyle             Theorem
408         LatexName             summ
409         LabelCounter          summ
410         LabelString           "Summary \arabic{summ}"
411 End
412
413
414 Style Case
415         CopyStyle             Theorem
416         LatexName             case
417         LabelCounter          case
418         LabelString           "Case \arabic{case}"
419 End
420
421
422 # This is not taken from the AMS defs, so as to match the output of the
423 # style file.
424 Style Acknowledgement
425         Margin                Static
426         LatexType             environment
427         LatexName             ack
428         Labeltype             Top_Environment
429         LabelBottomsep        1
430         LabelString           "Acknowledgements"
431         parsep                0.3
432         LabelFont
433           Size                large
434           Series              Bold
435         EndFont
436 End