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