]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
cleanup stuff separated by Lars from the counter patch
[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
40 DefaultFont
41         Family        Roman
42         Series        Medium
43         Shape         Up
44         Size          Normal
45         Color         None
46 EndFont
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 # Load standard defs, as most of the
84 # Elsevier stuff seems the same.
85 Input stdsections.inc
86 Input stdstarsections.inc
87 Input stdlists.inc
88 Input stdstruct.inc
89 Input stdlayouts.inc
90 Input stdfloats.inc
91 Input stdcounters.inc
92
93
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         Font 
107           Family              Sans
108           Series              Bold
109           Size                Largest
110         EndFont
111 End
112
113
114 Style Author
115         Margin                Static
116         LatexType             Command
117         InTitle               1
118         LatexName             author
119         NextNoIndent          1
120         ParSkip               0.4
121         TopSep                0.7
122         BottomSep             0.7
123         ItemSep               0
124         ParSep                0
125         Align                 Center
126         AlignPossible         Center
127         Font 
128           Series              Bold
129         EndFont
130 End
131
132
133 Style Author_Address
134         Margin                Static
135         LatexType             Command
136         InTitle               1
137         LatexName             address
138         Align                 Center
139         AlignPossible         Center
140         Labeltype             Static
141         LabelString           "Address: "
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         AlignPossible         Center
156         Labeltype             Static
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         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
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 # new Abstract style definition
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         AlignPossible         Block
219         LabelType             Centered_Top_Environment
220         LabelString           Abstract
221         LabelBottomSep        0.5
222
223         Font 
224           Size                Small
225         EndFont
226
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
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         Font
280           Shape               Italic
281           Size                Normal
282         EndFont
283
284         LabelFont
285           Shape               Up
286           Series              Bold
287         EndFont
288 End
289
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         Font
312           Shape               Up
313           Size                Normal
314         EndFont
315
316         LabelFont
317           Series              Bold
318         EndFont
319 End
320
321
322 Style Lemma
323         CopyStyle             Theorem
324         LatexName             lem
325         LabelString           "Lemma #."
326
327 #  Preamble
328 #    \theoremstyle{plain}    
329 #    \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering
330 #  EndPreamble
331 End
332
333
334 Style Corollary
335         CopyStyle             Theorem
336         LatexName             cor
337         LabelString           "Corollary #."
338
339 #  Preamble
340 #    \theoremstyle{plain}    
341 #    \newtheorem{cor}[thm]{Corollary} %%Delete [thm] to re-start numbering
342 #  EndPreamble
343 End  
344
345
346 Style Proposition
347         CopyStyle             Theorem
348         LatexName             prop
349         LabelString           "Proposition #."
350
351 #  Preamble
352 #    \theoremstyle{plain}    
353 #    \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start numbering
354 #  EndPreamble
355 End  
356
357
358 Style Criterion
359         CopyStyle             Theorem
360         LatexName             crit
361         LabelString           "Criterion #."
362
363 #  Preamble
364 #    \theoremstyle{plain}    
365 #    \newtheorem{crit}[thm]{Criterion} %%Delete [thm] to re-start numbering
366 #  EndPreamble
367 End  
368
369
370 Style Algorithm
371         CopyStyle             Theorem
372         LatexName             alg
373         LabelString           "Algorithm #."
374
375 #  Preamble
376 #    \theoremstyle{plain}    
377 #    \newtheorem{alg}[thm]{Algorithm} %%Delete [thm] to re-start numbering
378 #  EndPreamble
379 End  
380
381
382 Style Definition
383         CopyStyle             Theorem
384         LatexName             defn
385         LabelString           "Definition #."
386         
387         Font
388           Shape               Up
389         EndFont
390
391         LabelFont
392           Shape               Up
393           Series              Bold
394         EndFont
395  
396 #  Preamble
397 #   \theoremstyle{definition}
398 #   \newtheorem{defn}[thm]{Definition}
399 #  EndPreamble
400 End  
401
402
403 Style Conjecture
404         CopyStyle             Theorem
405         LatexName             conj
406         LabelString           "Conjecture #."
407
408 #  Preamble
409 #    \theoremstyle{plain}    
410 #    \newtheorem{conj}[thm]{Conjecture} %%Delete [thm] to re-start numbering
411 #  EndPreamble
412 End
413
414
415 Style Example
416         CopyStyle             Theorem
417         LatexName             exmp
418         LabelString           "Example #."
419
420 #  Preamble
421 #   \theoremstyle{definition}
422 #    \newtheorem{exmp}[thm]{Example}
423 #  EndPreamble
424 End  
425
426
427 Style Problem
428         CopyStyle             Theorem
429         LatexName             prob
430         LabelString           "Problem #."
431
432 #  Preamble
433 #   \theoremstyle{definition}
434 #    \newtheorem{prob}[thm]{Problem}
435 #  EndPreamble
436 End  
437
438
439 Style Remark
440         CopyStyle             Theorem
441         LatexName             rem
442         LabelString           "Remark #."
443
444 End  
445
446
447 Style Note
448         CopyStyle             Theorem
449         LatexName             note
450         LabelString           "Note #."
451
452 End  
453
454
455 Style Claim
456         CopyStyle             Theorem
457         LatexName             claim
458         LabelString           "Claim #."
459
460 End  
461
462
463 Style Summary
464         CopyStyle             Theorem
465         LatexName             summ
466         LabelString           "Summary #."
467
468 End  
469
470
471 Style Case
472         CopyStyle             Theorem
473         LatexName             case
474         LabelString           "Case #."
475
476 End  
477
478
479 #Style Acknowledgement
480 #  CopyStyle            Theorem
481 #  LatexName            ack
482 #  LabelString          "Acknowledgement #."
483 #
484 #End  
485
486 # Acknowledgement style definition
487 # This is not taken from the AMS defs,
488 # so as to match the output of the
489 # style file.
490
491 Style Acknowledgement
492         Margin                Static
493         LatexType             environment
494         LatexName             ack
495         Labeltype             Top_Environment
496         LabelBottomsep        1
497         LabelString           "Acknowledgement #."
498         parsep                0.3
499
500         LabelFont
501                 Size                  large
502                 Series                Bold
503         EndFont
504 End