]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
970022c2b2d77adf535204c6371c6bf5d63949ec
[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
21 # General textclass parameters
22 Columns         1
23 Sides           2
24 PageStyle       headings
25 MaxCounter      Counter_Subsection
26
27
28 ClassOptions
29 #  FontSize     "default"       # controlled by class
30 End
31
32 # elsart does not use the plain old \maketitle
33 TitleLatexType Environment
34 TitleLatexName frontmatter
35
36 DefaultFont
37         Family        Roman
38         Series        Medium
39         Shape         Up
40         Size          Normal
41         Color         None
42 EndFont
43
44
45 Style Standard
46         LatexName     dummy
47         LatexType     Paragraph
48         Margin        Static
49         ParIndent     MM
50         ParSkip       0.4
51         ParSep        0.4
52         TopSep        1.0
53         BottomSep     1.0
54         Align         Block
55         AlignPossible Block, Left, Right, Center
56         LabelType     No_Label
57 End
58
59
60 Style Keywords
61         LatexName     keyword
62         LatexType     Environment
63         Margin        Static
64         ParIndent     MM
65         InTitle       1
66         ParSkip       0.4
67         ParSep        0.4
68         TopSep        1.0
69         BottomSep     1.0
70         Align         Block
71         AlignPossible Block, Left, Right, Center
72         LabelType     No_Label
73 Font
74           Color       blue
75 EndFont
76 End
77
78
79 # Load standard defs, as most of the
80 # Elsevier stuff seems the same.
81 Input stdsections.inc
82 Input stdstarsections.inc
83 Input stdlists.inc
84 Input stdstruct.inc
85 Input stdlayouts.inc
86 Input stdfloats.inc
87 Input stdcounters.inc
88
89
90 # Title style definition
91 Style Title
92         Margin                Static
93         LatexType             Command
94         InTitle               1
95         LatexName             title
96         NextNoIndent          1
97         ParSkip               0.4
98         TopSep                1.3
99         BottomSep             0.7
100         ParSep                0.7
101         Align                 Center
102         LabelType             No_Label
103 # standard font definition
104         Font 
105           Family              Sans
106           Series              Bold
107           Size                Largest
108         EndFont
109 End
110
111 # Author style definition
112 Style Author
113         Margin                Static
114         LatexType             Command
115         InTitle               1
116         LatexName             author
117         NextNoIndent          1
118         ParSkip               0.4
119         TopSep                0.7
120         BottomSep             0.7
121         ItemSep               0
122         ParSep                0
123         Align                 Center
124         AlignPossible         Center
125         # standard font definition
126         Font 
127           Series              Bold
128         EndFont
129 End
130
131 # Author Adress
132 Style Author_Address
133         Margin                Static
134         LatexType             Command
135         InTitle               1
136         LatexName             address
137         Align                 Center
138         AlignPossible         Center
139         Labeltype             Static
140         LabelString           "Address: "
141         LabelFont
142           Shape               Italic
143         EndFont
144 End
145
146 Style Author_Email
147         Margin                Static
148         LatexType             Command
149         InTitle               1
150         PassThru              1
151         LatexName             ead
152         Align                 Center
153         AlignPossible         Center
154         Labeltype             Static
155         LabelString           "Email: "
156         TextFont
157           Family              Typewriter
158         EndFont
159         LabelFont
160           Shape               Italic
161           Family              Roman
162         EndFont
163 End
164
165 Style Author_URL
166         Margin                Static
167         LatexType             Command
168         InTitle               1
169         PassThru              1
170         LatexName             ead
171         LatexParam            "[url]"
172         Align                 Center
173         AlignPossible         Center
174         Labeltype             Static
175         LabelString           "URL: "
176         TextFont
177           Family              Typewriter
178         EndFont
179         LabelFont
180           Shape               Italic
181           Family              Roman
182         EndFont
183 End
184
185 # thanks is like a footnote
186 Style Thanks
187         Margin                Static
188         LatexType             Command
189         LatexName             thanks          
190         InTitle               1
191         Font  
192           Size                Small
193           Family              Typewriter
194           Shape               Italic
195         EndFont       
196 End
197
198 # new Abstract style definition
199 Style Abstract 
200         Margin                Static
201         LatexType             Environment
202         LatexName             abstract
203         NextNoIndent          1
204         InTitle               1
205         LeftMargin            MMM
206         RightMargin           MMM
207         ParIndent             MM
208         ItemSep               0
209         TopSep                0.7
210         BottomSep             0.7
211         ParSep                0
212         Align                 Block
213         AlignPossible         Block
214         LabelType             Centered_Top_Environment
215         LabelString           Abstract
216         LabelBottomSep        0.5
217
218         # standard font definition
219         Font 
220           Size                Small
221         EndFont
222
223         # label font definition
224         LabelFont 
225           Series              Bold
226           Size                Large
227         EndFont
228 End 
229
230
231 # Theorm environments have been copied over from
232 # the amsmaths.inc file. It could not be inputfiled
233 # as it does some stuff which is incompatible with
234 # the Elsevier stlye, that is it redefines
235 # the theorem* environments in the preamble.
236
237
238
239 # The environments defined are :
240 # - Theorem
241 # - Proof
242 # - Corollary
243 # - Lemma
244 # - Proposition
245 # - Conjecture
246 # - Criterion
247 # - Algorithm
248 # - Definition
249 # - Example
250 # - Problem
251 # - Remark
252 # - Note
253 # - Claim
254 # - Summary
255 # - Acknowledgement
256 # - Case
257
258 # Theorem-numbered style declaration
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             Static
274         LabelString           "Theorem #."
275
276         
277         # standard font definition
278         Font
279           Shape               Italic
280           Size                Normal
281         EndFont
282
283         # label font definition
284         LabelFont
285           Shape               Up
286           Series              Bold
287         EndFont
288
289 End  
290
291 # Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu)
292 Style Proof
293         Margin                First_Dynamic
294         LatexType             Environment
295         # elsart defines the unusual environment pf for proofs.
296         LatexName             pf
297         NextNoIndent          1
298         LabelSep              xx
299         ParIndent             MMM
300         ParSkip               0.4
301         ItemSep               0.2
302         TopSep                0.7
303         BottomSep             0.7
304         ParSep                0.3
305         Align                 Block
306         AlignPossible         Block, Left
307         LabelType             Static
308         #  make the label all caps, like it is in the output.
309         LabelString           "PROOF."
310
311         # standard font definition
312         Font
313           Shape               Up
314           Size                Normal
315         EndFont
316
317         # label font definition
318         LabelFont
319           Series              Bold
320         EndFont
321 End
322
323 # Lemma-numbered style declaration
324 Style Lemma
325         CopyStyle             Theorem
326         LatexName             lem
327         LabelString           "Lemma #."
328
329 #  Preamble
330 #    \theoremstyle{plain}    
331 #    \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering
332 #  EndPreamble
333 End
334
335 # Corollary-numbered style declaration
336 Style Corollary
337         CopyStyle             Theorem
338         LatexName             cor
339         LabelString           "Corollary #."
340
341 #  Preamble
342 #    \theoremstyle{plain}    
343 #    \newtheorem{cor}[thm]{Corollary} %%Delete [thm] to re-start numbering
344 #  EndPreamble
345 End  
346
347 # Proposition-numbered style declaration
348 Style Proposition
349         CopyStyle             Theorem
350         LatexName             prop
351         LabelString           "Proposition #."
352
353 #  Preamble
354 #    \theoremstyle{plain}    
355 #    \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start numbering
356 #  EndPreamble
357 End  
358
359 # Criterion-numbered style declaration
360 Style Criterion
361         CopyStyle             Theorem
362         LatexName             crit
363         LabelString           "Criterion #."
364
365 #  Preamble
366 #    \theoremstyle{plain}    
367 #    \newtheorem{crit}[thm]{Criterion} %%Delete [thm] to re-start numbering
368 #  EndPreamble
369 End  
370
371 # Algorithm-numbered style declaration
372 Style Algorithm
373         CopyStyle             Theorem
374         LatexName             alg
375         LabelString           "Algorithm #."
376
377 #  Preamble
378 #    \theoremstyle{plain}    
379 #    \newtheorem{alg}[thm]{Algorithm} %%Delete [thm] to re-start numbering
380 #  EndPreamble
381 End  
382
383 # Definition-numbered style declaration
384 Style Definition
385         CopyStyle             Theorem
386         LatexName             defn
387         LabelString           "Definition #."
388         
389         # standard font definition
390         Font
391           Shape               Up
392         EndFont
393
394         # label font definition
395         LabelFont
396           Shape               Up
397           Series              Bold
398         EndFont
399  
400 #  Preamble
401 #   \theoremstyle{definition}
402 #   \newtheorem{defn}[thm]{Definition}
403 #  EndPreamble
404 End  
405
406 # Conjecture-numbered style declaration
407 Style Conjecture
408         CopyStyle             Theorem
409         LatexName             conj
410         LabelString           "Conjecture #."
411
412 #  Preamble
413 #    \theoremstyle{plain}    
414 #    \newtheorem{conj}[thm]{Conjecture} %%Delete [thm] to re-start numbering
415 #  EndPreamble
416 End
417
418 # Example-numbered style declaration
419 Style Example
420         CopyStyle             Theorem
421         LatexName             exmp
422         LabelString           "Example #."
423
424 #  Preamble
425 #   \theoremstyle{definition}
426 #    \newtheorem{exmp}[thm]{Example}
427 #  EndPreamble
428 End  
429
430 # Problem-numbered style declaration
431 Style Problem
432         CopyStyle             Theorem
433         LatexName             prob
434         LabelString           "Problem #."
435
436 #  Preamble
437 #   \theoremstyle{definition}
438 #    \newtheorem{prob}[thm]{Problem}
439 #  EndPreamble
440 End  
441
442 # Remark-numbered style declaration
443 Style Remark
444         CopyStyle             Theorem
445         LatexName             rem
446         LabelString           "Remark #."
447
448 End  
449
450 # Note-numbered style declaration
451 Style Note
452         CopyStyle             Theorem
453         LatexName             note
454         LabelString           "Note #."
455
456 End  
457
458 # Claim-numbered style declaration
459 Style Claim
460         CopyStyle             Theorem
461         LatexName             claim
462         LabelString           "Claim #."
463
464 End  
465
466 # Summary-numbered style declaration
467 Style Summary
468         CopyStyle             Theorem
469         LatexName             summ
470         LabelString           "Summary #."
471
472 End  
473
474 # Case-numbered style declaration
475 Style Case
476         CopyStyle             Theorem
477         LatexName             case
478         LabelString           "Case #."
479
480 End  
481
482 # Acknowledgement-numbered style declaration
483 #Style Acknowledgement
484 #  CopyStyle            Theorem
485 #  LatexName            ack
486 #  LabelString          "Acknowledgement #."
487 #
488 #End  
489
490 # Acknowledgement style definition
491 # This is not taken from the AMS defs,
492 # so as to match the output of the
493 # style file.
494
495 Style Acknowledgement
496         Margin                Static
497         LatexType             environment
498         LatexName             ack
499         Labeltype             Top_Environment
500         LabelBottomsep        1
501         LabelString           "Acknowledgement #."
502         parsep                0.3
503
504 LabelFont
505         Size                  large
506         Series                Bold
507 EndFont
508
509 End