]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
Allow literate documents other than noweb to work out of the box. Currently
[lyx.git] / lib / layouts / elsart.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[elsart,amssymb.sty]{article (Elsevier, obsolete version)}
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 11
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 summ
40 End
41
42
43 Counter case
44 End
45
46
47 Style Standard
48         LatexName             dummy
49         LatexType             Paragraph
50         Margin                Static
51         ParIndent             MM
52         ParSkip               0.4
53         ParSep                0.4
54         TopSep                1.0
55         BottomSep             1.0
56         Align                 Block
57         AlignPossible         Block, Left, Right, Center
58         LabelType             No_Label
59 End
60
61
62 Style Keywords
63         LatexName             keyword
64         LatexType             Environment
65         Margin                Static
66         ParIndent             MM
67         InTitle               1
68         ParSkip               0.4
69         ParSep                0.4
70         TopSep                1.0
71         BottomSep             1.0
72         Align                 Block
73         AlignPossible         Block, Left, Right, Center
74         LabelType             No_Label
75         Font
76           Color               blue
77         EndFont
78 End
79
80
81 Input stdinsets.inc
82 Input stdsections.inc
83 Input stdstarsections.inc
84 Input stdlists.inc
85 Input stdstruct.inc
86 Input stdlayouts.inc
87 Input stdfloats.inc
88 Input stdcounters.inc
89
90
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         Font
104           Family              Sans
105           Series              Bold
106           Size                Largest
107         EndFont
108 End
109
110
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         OptionalArgs          1
124         Font
125           Series              Bold
126         EndFont
127 End
128
129
130 Style Author_Address
131         Margin                Static
132         LatexType             Command
133         InTitle               1
134         LatexName             address
135         Align                 Center
136         Labeltype             Static
137         LabelSep              M
138         LabelString           "Address:"
139         OptionalArgs          1
140         LabelFont
141           Shape               Italic
142         EndFont
143 End
144
145
146 Style Author_Email
147         Margin                Static
148         LatexType             Command
149         InTitle               1
150         PassThru              1
151         LatexName             ead
152         Align                 Center
153         Labeltype             Static
154         LabelSep              M
155         LabelString           "Email:"
156         TextFont
157           Family              Typewriter
158         EndFont
159         LabelFont
160           Shape               Italic
161           Family              Roman
162         EndFont
163 End
164
165
166 Style Author_URL
167         Margin                Static
168         LatexType             Command
169         InTitle               1
170         PassThru              1
171         LatexName             ead
172         LatexParam            "[url]"
173         Align                 Center
174         Labeltype             Static
175         LabelSep              M
176         LabelString           "URL:"
177         TextFont
178           Family              Typewriter
179         EndFont
180         LabelFont
181           Shape               Italic
182           Family              Roman
183         EndFont
184 End
185
186
187 # thanks is like a footnote
188 Style Thanks
189         Margin                Static
190         LatexType             Command
191         LatexName             thanks
192         InTitle               1
193         OptionalArgs          1
194         Font
195           Size                Small
196           Family              Typewriter
197           Shape               Italic
198         EndFont
199 End
200
201
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         LabelType             Centered_Top_Environment
217         LabelString           "Abstract"
218         LabelBottomSep        0.5
219         Font
220           Size                Small
221         EndFont
222         LabelFont
223           Series              Bold
224           Size                Large
225         EndFont
226 End
227
228
229 # Theorem environments have been copied over from the theorem modules. They
230 # could not be input as they do some stuff which is incompatible with the
231 # Elsevier stlye: redefine the theorem* environments in the preamble.
232
233 # The environments defined are :
234 # - Theorem
235 # - Proof
236 # - Corollary
237 # - Lemma
238 # - Proposition
239 # - Conjecture
240 # - Criterion
241 # - Algorithm
242 # - Definition
243 # - Example
244 # - Problem
245 # - Remark
246 # - Note
247 # - Claim
248 # - Summary
249 # - Acknowledgement
250 # - Case
251
252 Counter theorem
253 End
254
255
256 Style Theorem
257         Margin                First_Dynamic
258         LatexType             Environment
259         LatexName             thm
260         NextNoIndent          1
261         LabelSep              xx
262         ParIndent             MMM
263         ParSkip               0.4
264         ItemSep               0.2
265         TopSep                0.7
266         BottomSep             0.7
267         ParSep                0.3
268         Align                 Block
269         AlignPossible         Block, Left
270         LabelType             Counter
271         LabelCounter          theorem
272         LabelString           "Theorem \arabic{theorem}"
273         Font
274           Shape               Italic
275           Size                Normal
276         EndFont
277         LabelFont
278           Shape               Up
279           Series              Bold
280         EndFont
281 End
282
283
284 # Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu)
285 Style Proof
286         Margin                First_Dynamic
287         LatexType             Environment
288         # elsart defines the unusual environment pf for proofs.
289         LatexName             pf
290         NextNoIndent          1
291         LabelSep              xx
292         ParIndent             MMM
293         ParSkip               0.4
294         ItemSep               0.2
295         TopSep                0.7
296         BottomSep             0.7
297         ParSep                0.3
298         Align                 Block
299         AlignPossible         Block, Left
300         LabelType             Static
301         LabelString           "PROOF."
302         Font
303           Shape               Up
304           Size                Normal
305         EndFont
306         LabelFont
307           Series              Bold
308         EndFont
309 End
310
311
312 Style Lemma
313         CopyStyle             Theorem
314         LatexName             lem
315         LabelString           "Lemma \arabic{theorem}"
316 End
317
318
319 Style Corollary
320         CopyStyle             Theorem
321         LatexName             cor
322         LabelString           "Corollary \arabic{theorem}"
323 End
324
325
326 Style Proposition
327         CopyStyle             Theorem
328         LatexName             prop
329         LabelString           "Proposition \arabic{theorem}"
330 End
331
332
333 Style Criterion
334         CopyStyle             Theorem
335         LatexName             crit
336         LabelString           "Criterion \arabic{theorem}"
337 End
338
339
340 Style Algorithm
341         CopyStyle             Theorem
342         LatexName             alg
343         LabelString           "Algorithm \arabic{theorem}"
344 End
345
346
347 Style Definition
348         CopyStyle             Theorem
349         LatexName             defn
350         LabelString           "Definition \arabic{theorem}"
351         Font
352           Shape               Up
353         EndFont
354         LabelFont
355           Shape               Up
356           Series              Bold
357         EndFont
358 End
359
360
361 Style Conjecture
362         CopyStyle             Theorem
363         LatexName             conj
364         LabelString           "Conjecture \arabic{theorem}"
365 End
366
367
368 Style Example
369         CopyStyle             Theorem
370         LatexName             exmp
371         LabelString           "Example \arabic{theorem}"
372 End
373
374
375 Style Problem
376         CopyStyle             Theorem
377         LatexName             prob
378         LabelString           "Problem \arabic{theorem}"
379 End
380
381
382 Style Remark
383         CopyStyle             Theorem
384         LatexName             rem
385         LabelString           "Remark \arabic{theorem}"
386 End
387
388
389 Style Note
390         CopyStyle             Theorem
391         LatexName             note
392         LabelString           "Note \arabic{theorem}"
393 End
394
395
396 Style Claim
397         CopyStyle             Theorem
398         LatexName             claim
399         LabelString           "Claim \arabic{theorem}"
400 End
401
402
403 Style Summary
404         CopyStyle             Theorem
405         LatexName             summ
406         LabelCounter          summ
407         LabelString           "Summary \arabic{summ}"
408 End
409
410
411 Style Case
412         CopyStyle             Theorem
413         LatexName             case
414         LabelCounter          case
415         LabelString           "Case \arabic{case}"
416 End
417
418
419 # This is not taken from the AMS defs, so as to match the output of the
420 # style file.
421 Style Acknowledgement
422         Margin                Static
423         LatexType             environment
424         LatexName             ack
425         Labeltype             Top_Environment
426         LabelBottomsep        1
427         LabelString           "Acknowledgements"
428         parsep                0.3
429         LabelFont
430           Size                large
431           Series              Bold
432         EndFont
433 End