]> git.lyx.org Git - lyx.git/blob - lib/layouts/elsart.layout
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[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 End
341
342
343 # Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu)
344 Style Proof
345         Category              Reasoning
346         Margin                First_Dynamic
347         LatexType             Environment
348         # elsart defines the unusual environment pf for proofs.
349         LatexName             pf
350         NextNoIndent          1
351         LabelSep              xx
352         ParIndent             MMM
353         ParSkip               0.4
354         ItemSep               0.2
355         TopSep                0.7
356         BottomSep             0.7
357         ParSep                0.3
358         Align                 Block
359         AlignPossible         Block, Left
360         LabelType             Static
361         LabelString           "PROOF."
362         Font
363           Shape               Up
364           Size                Normal
365         EndFont
366         LabelFont
367           Series              Bold
368         EndFont
369         DocBookWrapperTag     figure
370         DocBookWrapperAttr    role='proof'
371         DocBookTag            para
372         DocBookGenerateTitle  true
373 End
374
375
376 Style Lemma
377         CopyStyle             Theorem
378         LatexName             lem
379         LabelString           "Lemma \arabic{theorem}"
380         DocBookWrapperTag     figure
381         DocBookWrapperAttr    role='lemma'
382         DocBookTag            para
383         DocBookGenerateTitle  true
384 End
385
386
387 Style Corollary
388         CopyStyle             Theorem
389         LatexName             cor
390         LabelString           "Corollary \arabic{theorem}"
391         DocBookWrapperTag     figure
392         DocBookWrapperAttr    role='corollary'
393         DocBookTag            para
394         DocBookGenerateTitle  true
395 End
396
397
398 Style Proposition
399         CopyStyle             Theorem
400         LatexName             prop
401         LabelString           "Proposition \arabic{theorem}"
402         DocBookWrapperTag     figure
403         DocBookWrapperAttr    role='proposition'
404         DocBookTag            para
405         DocBookGenerateTitle  true
406 End
407
408
409 Style Criterion
410         CopyStyle             Theorem
411         LatexName             crit
412         LabelString           "Criterion \arabic{theorem}"
413         DocBookWrapperTag     figure
414         DocBookWrapperAttr    role='criterion'
415         DocBookTag            para
416         DocBookGenerateTitle  true
417 End
418
419
420 Style Algorithm
421         CopyStyle             Theorem
422         LatexName             alg
423         LabelString           "Algorithm \arabic{theorem}"
424         DocBookWrapperTag     figure
425         DocBookWrapperAttr    role='algorithm'
426         DocBookTag            para
427         DocBookGenerateTitle  true
428 End
429
430
431 Style Definition
432         CopyStyle             Theorem
433         LatexName             defn
434         LabelString           "Definition \arabic{theorem}"
435         Font
436           Shape               Up
437         EndFont
438         LabelFont
439           Shape               Up
440           Series              Bold
441         EndFont
442         DocBookWrapperTag     figure
443         DocBookWrapperAttr    role='definition'
444         DocBookTag            para
445         DocBookGenerateTitle  true
446 End
447
448
449 Style Conjecture
450         CopyStyle             Theorem
451         LatexName             conj
452         LabelString           "Conjecture \arabic{theorem}"
453         DocBookWrapperTag     figure
454         DocBookWrapperAttr    role='conjecture'
455         DocBookTag            para
456         DocBookGenerateTitle  true
457 End
458
459
460 Style Example
461         CopyStyle             Theorem
462         LatexName             exmp
463         LabelString           "Example \arabic{theorem}"
464         DocBookWrapperTag     informalexample
465         DocBookTag            para
466         DocBookAttr           ""
467 End
468
469
470 Style Problem
471         CopyStyle             Theorem
472         LatexName             prob
473         LabelString           "Problem \arabic{theorem}"
474         DocBookWrapperTag     figure
475         DocBookWrapperAttr    role='problem'
476         DocBookTag            para
477         DocBookGenerateTitle  true
478 End
479
480
481 Style Remark
482         CopyStyle             Theorem
483         LatexName             rem
484         LabelString           "Remark \arabic{theorem}"
485         DocBookWrapperTag     figure
486         DocBookWrapperAttr    role='remark'
487         DocBookTag            para
488         DocBookGenerateTitle  true
489 End
490
491
492 Style Note
493         CopyStyle             Theorem
494         LatexName             note
495         LabelString           "Note \arabic{theorem}"
496         DocBookWrapperTag     figure
497         DocBookWrapperAttr    role='note'
498         DocBookTag            para
499         DocBookGenerateTitle  true
500 End
501
502
503 Style Claim
504         CopyStyle             Theorem
505         LatexName             claim
506         LabelString           "Claim \arabic{theorem}"
507         DocBookWrapperTag     figure
508         DocBookWrapperAttr    role='claim'
509         DocBookTag            para
510         DocBookGenerateTitle  true
511 End
512
513
514 Style Summary
515         CopyStyle             Theorem
516         LatexName             summ
517         LabelCounter          summ
518         LabelString           "Summary \arabic{summ}"
519         DocBookWrapperTag     figure
520         DocBookWrapperAttr    role='summary'
521         DocBookTag            para
522         DocBookGenerateTitle  true
523 End
524
525
526 Style Case
527         CopyStyle             Theorem
528         LatexName             case
529         LabelCounter          case
530         LabelString           "Case \arabic{case}"
531         DocBookWrapperTag     figure
532         DocBookWrapperAttr    role='case'
533         DocBookTag            para
534         DocBookGenerateTitle  true
535 End
536
537
538 # This is not taken from the AMS defs, so as to match the output of the
539 # style file.
540 Style Acknowledgement
541         Margin                Static
542         LatexType             environment
543         LatexName             ack
544         LabelType             Above
545         LabelBottomsep        1
546         LabelString           "Acknowledgements"
547         parsep                0.3
548         LabelFont
549           Size                large
550           Series              Bold
551         EndFont
552         DocBookTag            para
553         DocBookWrapperTag     acknowledgements
554 End
555
556 Input theorems-refprefix.inc