]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
Change LFUN_FONT_CODE to LFUN_FONT_TYPEWERITER, possibly in preparation for a move...
[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
25 Format 5
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
40         Name                  summ
41 End
42
43
44 Counter
45         Name                  case
46 End
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 Input stdinsets.inc
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 Style Title
94         Margin                Static
95         LatexType             Command
96         InTitle               1
97         LatexName             title
98         NextNoIndent          1
99         ParSkip               0.4
100         TopSep                1.3
101         BottomSep             0.7
102         ParSep                0.7
103         Align                 Center
104         LabelType             No_Label
105         Font
106           Family              Sans
107           Series              Bold
108           Size                Largest
109         EndFont
110 End
111
112
113 Style Author
114         Margin                Static
115         LatexType             Command
116         InTitle               1
117         LatexName             author
118         NextNoIndent          1
119         ParSkip               0.4
120         TopSep                0.7
121         BottomSep             0.7
122         ItemSep               0
123         ParSep                0
124         Align                 Center
125         AlignPossible         Center
126         OptionalArgs          1
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         LabelSep              M
142         LabelString           "Address:"
143         OptionalArgs          1
144         LabelFont
145           Shape               Italic
146         EndFont
147 End
148
149
150 Style Author_Email
151         Margin                Static
152         LatexType             Command
153         InTitle               1
154         PassThru              1
155         LatexName             ead
156         Align                 Center
157         AlignPossible         Center
158         Labeltype             Static
159         LabelSep              M
160         LabelString           "Email:"
161         TextFont
162           Family              Typewriter
163         EndFont
164         LabelFont
165           Shape               Italic
166           Family              Roman
167         EndFont
168 End
169
170
171 Style Author_URL
172         Margin                Static
173         LatexType             Command
174         InTitle               1
175         PassThru              1
176         LatexName             ead
177         LatexParam            "[url]"
178         Align                 Center
179         AlignPossible         Center
180         Labeltype             Static
181         LabelSep              M
182         LabelString           "URL:"
183         TextFont
184           Family              Typewriter
185         EndFont
186         LabelFont
187           Shape               Italic
188           Family              Roman
189         EndFont
190 End
191
192
193 # thanks is like a footnote
194 Style Thanks
195         Margin                Static
196         LatexType             Command
197         LatexName             thanks
198         InTitle               1
199         Font
200           Size                Small
201           Family              Typewriter
202           Shape               Italic
203         EndFont
204 End
205
206
207 Style Abstract
208         Margin                Static
209         LatexType             Environment
210         LatexName             abstract
211         NextNoIndent          1
212         InTitle               1
213         LeftMargin            MMM
214         RightMargin           MMM
215         ParIndent             MM
216         ItemSep               0
217         TopSep                0.7
218         BottomSep             0.7
219         ParSep                0
220         Align                 Block
221         AlignPossible         Block
222         LabelType             Centered_Top_Environment
223         LabelString           "Abstract"
224         LabelBottomSep        0.5
225         Font
226           Size                Small
227         EndFont
228         LabelFont
229           Series              Bold
230           Size                Large
231         EndFont
232 End
233
234
235 # Theorem environments have been copied over from the amsmaths.inc file. It
236 # could not be input as it does some stuff which is incompatible with the
237 # Elsevier stlye: it redefines the theorem* environments in the preamble.
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 Counter
259         Name                  theorem
260 End
261
262
263 Style Theorem
264         Margin                First_Dynamic
265         LatexType             Environment
266         LatexName             thm
267         NextNoIndent          1
268         LabelSep              xx
269         ParIndent             MMM
270         ParSkip               0.4
271         ItemSep               0.2
272         TopSep                0.7
273         BottomSep             0.7
274         ParSep                0.3
275         Align                 Block
276         AlignPossible         Block, Left
277         LabelType             Counter
278         LabelCounter          theorem
279         LabelString           "Theorem \arabic{theorem}"
280         Font
281           Shape               Italic
282           Size                Normal
283         EndFont
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         LabelString           "PROOF."
309         Font
310           Shape               Up
311           Size                Normal
312         EndFont
313         LabelFont
314           Series              Bold
315         EndFont
316 End
317
318
319 Style Lemma
320         CopyStyle             Theorem
321         LatexName             lem
322         LabelString           "Lemma \arabic{theorem}"
323 End
324
325
326 Style Corollary
327         CopyStyle             Theorem
328         LatexName             cor
329         LabelString           "Corollary \arabic{theorem}"
330 End
331
332
333 Style Proposition
334         CopyStyle             Theorem
335         LatexName             prop
336         LabelString           "Proposition \arabic{theorem}"
337 End
338
339
340 Style Criterion
341         CopyStyle             Theorem
342         LatexName             crit
343         LabelString           "Criterion \arabic{theorem}"
344 End
345
346
347 Style Algorithm
348         CopyStyle             Theorem
349         LatexName             alg
350         LabelString           "Algorithm \arabic{theorem}"
351 End
352
353
354 Style Definition
355         CopyStyle             Theorem
356         LatexName             defn
357         LabelString           "Definition \arabic{theorem}"
358         Font
359           Shape               Up
360         EndFont
361         LabelFont
362           Shape               Up
363           Series              Bold
364         EndFont
365 End
366
367
368 Style Conjecture
369         CopyStyle             Theorem
370         LatexName             conj
371         LabelString           "Conjecture \arabic{theorem}"
372 End
373
374
375 Style Example
376         CopyStyle             Theorem
377         LatexName             exmp
378         LabelString           "Example \arabic{theorem}"
379 End
380
381
382 Style Problem
383         CopyStyle             Theorem
384         LatexName             prob
385         LabelString           "Problem \arabic{theorem}"
386 End
387
388
389 Style Remark
390         CopyStyle             Theorem
391         LatexName             rem
392         LabelString           "Remark \arabic{theorem}"
393 End
394
395
396 Style Note
397         CopyStyle             Theorem
398         LatexName             note
399         LabelString           "Note \arabic{theorem}"
400 End
401
402
403 Style Claim
404         CopyStyle             Theorem
405         LatexName             claim
406         LabelString           "Claim \arabic{theorem}"
407 End
408
409
410 Style Summary
411         CopyStyle             Theorem
412         LatexName             summ
413         LabelCounter          summ
414         LabelString           "Summary \arabic{summ}"
415 End
416
417
418 Style Case
419         CopyStyle             Theorem
420         LatexName             case
421         LabelCounter          case
422         LabelString           "Case \arabic{case}"
423 End
424
425
426 # This is not taken from the AMS defs, so as to match the output of the
427 # style file.
428 Style Acknowledgement
429         Margin                Static
430         LatexType             environment
431         LatexName             ack
432         Labeltype             Top_Environment
433         LabelBottomsep        1
434         LabelString           "Acknowledgements"
435         parsep                0.3
436         LabelFont
437           Size                large
438           Series              Bold
439         EndFont
440 End