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