]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
Amend 16a1aa99
[lyx.git] / lib / layouts / elsart.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[elsart,amssymb.sty,latexsym.sty]{Elsevier (Obsolete Version)}
3 #  \DeclareCategory{Obsolete}
4 # Author: Rod Pinna <rpinna@civil.uwa.edu.au>
5 # The Elsevier doc style also duplicates the theorem
6 # environments used by the AMS. The definitions here have been
7 # mainly taken from the amsmath.inc file, from lyx-1.0.2, by
8 # David L. Johnson and Jean-Marc Lasgouttes. Some modifications
9 # have been made.
10 #
11 # The Elsevier style *does not* implement the starred versions
12 # of these environments, so they are not supported by this layout.
13 # There are also a few AMS environments not impletemented by Elsevier,
14 # so they are not included either.
15 #
16 # Version 1.0   19990506 R. Pinna Inital version
17 # modified 2002-04-02   Herbert Voss <voss@perce.de>
18 #       for use of BeginTitle/EndTitle
19 # modified 2003-03-11 JMarc for use of TitleLatexType/TitleLatexName
20 # modified 2003-04-10 Rod Pinna - added proof env. sent to me by Stacy Prowell
21 # modified 2003-07-23 Rod Pinna - changes MaxCounter to Section,
22 #       rather than subsection. The Elsevier doc file allows for
23 #       numbered sections, as does the class file.
24
25
26 Format 99
27 Columns                 1
28 Sides                   2
29 PageStyle               headings
30
31
32 ClassOptions
33 #  FontSize             "default"       # controlled by class
34 End
35
36 # elsart does not use the plain old \maketitle
37 TitleLatexType Environment
38 TitleLatexName frontmatter
39
40 Counter summ
41         GuiName Summary
42 End
43
44
45 Counter case
46         GuiName Case
47 End
48
49
50 Style Standard
51         Category              MainText
52         LatexName             dummy
53         LatexType             Paragraph
54         Margin                Static
55         ParIndent             MM
56         ParSkip               0.4
57         ParSep                0.4
58         TopSep                1.0
59         BottomSep             1.0
60         Align                 Block
61         AlignPossible         Block, Left, Right, Center
62         LabelType             No_Label
63         DocBookTag            para
64 End
65
66
67 Style Keywords
68         LatexName             keyword
69         LatexType             Environment
70         Margin                Static
71         ParIndent             MM
72         InTitle               1
73         ParSkip               0.4
74         ParSep                0.4
75         TopSep                1.0
76         BottomSep             1.0
77         Align                 Block
78         AlignPossible         Block, Left, Right, Center
79         LabelType             No_Label
80         Font
81           Color               textlabel1
82         EndFont
83         DocBookTag         keyword
84         DocBookTagType     paragraph
85         DocBookWrapperTag  keywordset
86         DocBookInInfo      always
87 End
88
89
90 Input stdinsets.inc
91 Input stdsections.inc
92 Input stdstarsections.inc
93 Input stdlists.inc
94 Input stdstruct.inc
95 Input stdlayouts.inc
96 Input stdfloats.inc
97 Input stdcounters.inc
98
99
100 Style Title
101         Category              FrontMatter
102         Margin                Static
103         LatexType             Command
104         InTitle               1
105         LatexName             title
106         NextNoIndent          1
107         ParSkip               0.4
108         TopSep                1.3
109         BottomSep             0.7
110         ParSep                0.7
111         Align                 Center
112         LabelType             No_Label
113         Font
114           Family              Sans
115           Series              Bold
116           Size                Largest
117         EndFont
118         HTMLTitle             true
119         DocBookTag            title
120         DocBookTagType        paragraph
121         DocBookInInfo         maybe
122 End
123
124
125 Style Author
126         Category              FrontMatter
127         Margin                Static
128         LatexType             Command
129         InTitle               1
130         LatexName             author
131         NextNoIndent          1
132         ParSkip               0.4
133         TopSep                0.7
134         BottomSep             0.7
135         ItemSep               0
136         ParSep                0
137         Align                 Center
138         Argument 1
139                 LabelString   "Author Option"
140                 Tooltip       "Optional argument for the author"
141         EndArgument
142         Font
143           Series              Bold
144         EndFont
145         DocBookTag            personname
146         DocBookTagType        paragraph
147         DocBookWrapperTag     author
148         DocBookWrapperTagType block
149         DocBookInInfo         always
150 End
151
152
153 Style Author_Address
154         Margin                Dynamic
155         LatexType             Command
156         InTitle               1
157         LatexName             address
158         Align                 Center
159         Labeltype             Static
160         LabelSep              M
161         LabelString           "Address:"
162         Argument 1
163                 LabelString   "Address Option"
164                 Tooltip       "Optional argument for the address"
165         EndArgument
166         LabelFont
167           Shape               Italic
168         EndFont
169         DocBookTag            address
170         DocBookTagType        paragraph
171         DocBookWrapperTag     author
172         DocBookWrapperTagType block
173         DocBookInInfo         always
174 End
175
176
177 Style Author_Email
178         Margin                Dynamic
179         LatexType             Command
180         InTitle               1
181         PassThru              1
182         ParbreakIsNewline     1
183         LatexName             ead
184         Align                 Center
185         Labeltype             Static
186         LabelSep              M
187         LabelString           "Email:"
188         TextFont
189           Family              Typewriter
190         EndFont
191         LabelFont
192           Shape               Italic
193           Family              Roman
194         EndFont
195         DocBookTag            email
196         DocBookTagType        paragraph
197         DocBookWrapperTag     author
198         DocBookWrapperTagType block
199         DocBookInInfo         always
200 End
201
202
203 Style Author_URL
204         Margin                Dynamic
205         LatexType             Command
206         InTitle               1
207         PassThru              1
208         ParbreakIsNewline     1
209         LatexName             ead
210         LatexParam            "[url]"
211         Align                 Center
212         Labeltype             Static
213         LabelSep              M
214         LabelString           "URL:"
215         TextFont
216           Family              Typewriter
217         EndFont
218         LabelFont
219           Shape               Italic
220           Family              Roman
221         EndFont
222         DocBookTag            uri
223         DocBookTagType        paragraph
224         DocBookWrapperTag     author
225         DocBookWrapperTagType block
226         DocBookInInfo         always
227 End
228
229
230 # thanks is like a footnote
231 Style Thanks
232         Margin                Static
233         LatexType             Command
234         LatexName             thanks
235         InTitle               1
236         Argument 1
237                 LabelString   "Thanks Option"
238                 Tooltip       "Optional argument for the thanks statement"
239         EndArgument
240         Font
241           Size                Small
242           Family              Typewriter
243           Shape               Italic
244         EndFont
245         DocBookTag            footnote
246         DocBookItemTag        para
247 End
248
249
250 Style Abstract
251         Margin                Static
252         LatexType             Environment
253         LatexName             abstract
254         NextNoIndent          1
255         InTitle               1
256         LeftMargin            MMM
257         RightMargin           MMM
258         ParIndent             MM
259         ItemSep               0
260         TopSep                0.7
261         BottomSep             0.7
262         ParSep                0
263         Align                 Block
264         LabelType             Centered
265         LabelString           "Abstract"
266         LabelBottomSep        0.5
267         Font
268           Size                Small
269         EndFont
270         LabelFont
271           Series              Bold
272           Size                Large
273         EndFont
274         DocBookAbstract       true
275         DocBookInInfo         always
276         DocBookWrapperTag     abstract
277         DocBookWrapperMergeWithPrevious    true
278         DocBookTag            para
279 End
280
281
282 # Reasoning environments have been copied over from the theorem modules. They
283 # could not be input as they do some stuff which is incompatible with the
284 # Elsevier stlye: redefine the theorem* environments in the preamble.
285
286 # The environments defined are :
287 # - Theorem
288 # - Proof
289 # - Corollary
290 # - Lemma
291 # - Proposition
292 # - Conjecture
293 # - Criterion
294 # - Algorithm
295 # - Definition
296 # - Example
297 # - Problem
298 # - Remark
299 # - Note
300 # - Claim
301 # - Summary
302 # - Acknowledgement
303 # - Case
304
305 Counter theorem
306         GuiName Theorem
307 End
308
309
310 Style Theorem
311         Category              Reasoning
312         Margin                First_Dynamic
313         LatexType             Environment
314         LatexName             thm
315         NextNoIndent          1
316         LabelSep              xx
317         ParIndent             MMM
318         ParSkip               0.4
319         ItemSep               0.2
320         TopSep                0.7
321         BottomSep             0.7
322         ParSep                0.3
323         Align                 Block
324         AlignPossible         Block, Left
325         LabelType             Static
326         LabelCounter          theorem
327         LabelString           "Theorem \arabic{theorem}"
328         Font
329           Shape               Italic
330           Size                Normal
331         EndFont
332         LabelFont
333           Shape               Up
334           Series              Bold
335         EndFont
336         DocBookWrapperTag     figure
337         DocBookWrapperAttr    role='theorem'
338         DocBookTag            para
339         DocBookGenerateTitle  true
340         DocBookWrapperMergeWithPrevious  true
341 End
342
343
344 # Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu)
345 Style Proof
346         Category              Reasoning
347         Margin                First_Dynamic
348         LatexType             Environment
349         # elsart defines the unusual environment pf for proofs.
350         LatexName             pf
351         NextNoIndent          1
352         LabelSep              xx
353         ParIndent             MMM
354         ParSkip               0.4
355         ItemSep               0.2
356         TopSep                0.7
357         BottomSep             0.7
358         ParSep                0.3
359         Align                 Block
360         AlignPossible         Block, Left
361         LabelType             Static
362         LabelString           "PROOF."
363         Font
364           Shape               Up
365           Size                Normal
366         EndFont
367         LabelFont
368           Series              Bold
369         EndFont
370         DocBookWrapperTag     figure
371         DocBookWrapperAttr    role='proof'
372         DocBookTag            para
373         DocBookGenerateTitle  true
374         DocBookWrapperMergeWithPrevious  true
375 End
376
377
378 Style Lemma
379         CopyStyle             Theorem
380         LatexName             lem
381         LabelString           "Lemma \arabic{theorem}"
382         DocBookWrapperTag     figure
383         DocBookWrapperAttr    role='lemma'
384         DocBookTag            para
385         DocBookGenerateTitle  true
386         DocBookWrapperMergeWithPrevious  true
387 End
388
389
390 Style Corollary
391         CopyStyle             Theorem
392         LatexName             cor
393         LabelString           "Corollary \arabic{theorem}"
394         DocBookWrapperTag     figure
395         DocBookWrapperAttr    role='corollary'
396         DocBookTag            para
397         DocBookGenerateTitle  true
398         DocBookWrapperMergeWithPrevious  true
399 End
400
401
402 Style Proposition
403         CopyStyle             Theorem
404         LatexName             prop
405         LabelString           "Proposition \arabic{theorem}"
406         DocBookWrapperTag     figure
407         DocBookWrapperAttr    role='proposition'
408         DocBookTag            para
409         DocBookGenerateTitle  true
410         DocBookWrapperMergeWithPrevious  true
411 End
412
413
414 Style Criterion
415         CopyStyle             Theorem
416         LatexName             crit
417         LabelString           "Criterion \arabic{theorem}"
418         DocBookWrapperTag     figure
419         DocBookWrapperAttr    role='criterion'
420         DocBookTag            para
421         DocBookGenerateTitle  true
422         DocBookWrapperMergeWithPrevious  true
423 End
424
425
426 Style Algorithm
427         CopyStyle             Theorem
428         LatexName             alg
429         LabelString           "Algorithm \arabic{theorem}"
430         DocBookWrapperTag     figure
431         DocBookWrapperAttr    role='algorithm'
432         DocBookTag            para
433         DocBookGenerateTitle  true
434         DocBookWrapperMergeWithPrevious  true
435 End
436
437
438 Style Definition
439         CopyStyle             Theorem
440         LatexName             defn
441         LabelString           "Definition \arabic{theorem}"
442         Font
443           Shape               Up
444         EndFont
445         LabelFont
446           Shape               Up
447           Series              Bold
448         EndFont
449         DocBookWrapperTag     figure
450         DocBookWrapperAttr    role='definition'
451         DocBookTag            para
452         DocBookGenerateTitle  true
453         DocBookWrapperMergeWithPrevious  true
454 End
455
456
457 Style Conjecture
458         CopyStyle             Theorem
459         LatexName             conj
460         LabelString           "Conjecture \arabic{theorem}"
461         DocBookWrapperTag     figure
462         DocBookWrapperAttr    role='conjecture'
463         DocBookTag            para
464         DocBookGenerateTitle  true
465         DocBookWrapperMergeWithPrevious  true
466 End
467
468
469 Style Example
470         CopyStyle             Theorem
471         LatexName             exmp
472         LabelString           "Example \arabic{theorem}"
473         DocBookWrapperTag     informalexample
474         DocBookTag            para
475         DocBookAttr           ""
476 End
477
478
479 Style Problem
480         CopyStyle             Theorem
481         LatexName             prob
482         LabelString           "Problem \arabic{theorem}"
483         DocBookWrapperTag     figure
484         DocBookWrapperAttr    role='problem'
485         DocBookTag            para
486         DocBookGenerateTitle  true
487 End
488
489
490 Style Remark
491         CopyStyle             Theorem
492         LatexName             rem
493         LabelString           "Remark \arabic{theorem}"
494         DocBookWrapperTag     figure
495         DocBookWrapperAttr    role='remark'
496         DocBookTag            para
497         DocBookGenerateTitle  true
498 End
499
500
501 Style Note
502         CopyStyle             Theorem
503         LatexName             note
504         LabelString           "Note \arabic{theorem}"
505         DocBookWrapperTag     figure
506         DocBookWrapperAttr    role='note'
507         DocBookTag            para
508         DocBookGenerateTitle  true
509 End
510
511
512 Style Claim
513         CopyStyle             Theorem
514         LatexName             claim
515         LabelString           "Claim \arabic{theorem}"
516         DocBookWrapperTag     figure
517         DocBookWrapperAttr    role='claim'
518         DocBookTag            para
519         DocBookGenerateTitle  true
520 End
521
522
523 Style Summary
524         CopyStyle             Theorem
525         LatexName             summ
526         LabelCounter          summ
527         LabelString           "Summary \arabic{summ}"
528         DocBookWrapperTag     figure
529         DocBookWrapperAttr    role='summary'
530         DocBookTag            para
531         DocBookGenerateTitle  true
532 End
533
534
535 Style Case
536         CopyStyle             Theorem
537         LatexName             case
538         LabelCounter          case
539         LabelString           "Case \arabic{case}"
540         DocBookWrapperTag     figure
541         DocBookWrapperAttr    role='case'
542         DocBookTag            para
543         DocBookGenerateTitle  true
544 End
545
546
547 # This is not taken from the AMS defs, so as to match the output of the
548 # style file.
549 Style Acknowledgement
550         Margin                Static
551         LatexType             environment
552         LatexName             ack
553         LabelType             Above
554         LabelBottomsep        1
555         LabelString           "Acknowledgements"
556         parsep                0.3
557         LabelFont
558           Size                large
559           Series              Bold
560         EndFont
561         DocBookTag            para
562         DocBookWrapperTag     acknowledgements
563 End
564
565 Input theorems-refprefix.inc