]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex.layout
97714699baa51d1138d6411f698ca1316a1c04b7
[lyx.git] / lib / layouts / aastex.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[aastex,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX)}
3 #  \DeclareCategory{Articles}
4 #
5 # Author: Mike Ressler <mike.ressler@alum.mit.edu>
6 # Author: Uwe Stöhr <uwestoehr@web.de>
7 #
8 # Disclaimer: Though I am an astronomer at the Jet Propulsion Laboratory, this
9 # package was prepared on my own time on my own machine. Neither the United
10 # States government, the National Aeronautics and Space Administration, the
11 # California Institute of Technology, the American Astronomical Society, nor
12 # the Jet Propulsion Laboratory endorse this package - indeed, they probably
13 # don't even know of it's existence. Use of this package is covered by the LyX
14 # license which is found in the file COPYING in the root directory of the LyX
15 # distribution.
16 #
17 # Version 0.0   5/27/99  - Initial submission, basic LaTeX equivalents
18 # Version 0.1   6/04/99  - Most everything in sections 2.1-2.11 of AASTeX guide
19 #                          works. References work with some ERT. Regular tables
20 #                          (2.14) okay, deluxetable will never be supported.
21 #                          Figures (2.13) not even attempted yet. Misc (2.15)
22 #                          partially supported, but much will remain ERT.
23 #                          Style options (section 3) can be typed into Extra
24 #                          Document options.
25 #                          Much cleaning of this file needs to be done.
26 # Version 1.0   6/09/99  - Implemented remaining commands as well as possible.
27 #                          There is little more I can do unless LyX source code
28 #                          is changed. (Not by me!) Documentation, template, and
29 #                          example files are available.
30 # Version 1.1   7/25/99  - Changed \url to take advantage of new layout option.
31 # Version 1.2   4/18/02  - Updated for natbib in 1.2.0
32 # Version 1.3   5/7/04   - Updated for AASTeX 5.2
33 # Version 1.4   26/10/08 - new custom insets for \altaffilmark, \tablenotemark
34 #                        - new environments for \altaffiltext and \tablenotetext
35 # Version 1.5   26/11/12 - added mandatory argument for \altaffiltext
36
37
38 Format 43
39 Columns                 1
40 Sides                   1
41 #SecNumDepth            3
42 TocDepth                0
43 PageStyle               Plain
44 Provides amsmath        1
45 Provides natbib         1
46 Provides url            1
47
48
49 ClassOptions
50         PageStyle       ""
51 End
52
53
54 Style Standard
55         Margin          Static
56         LatexType       Paragraph
57         LatexName       dummy
58         ParIndent       MM
59         ParSkip         0.4
60         Align           Block
61         AlignPossible   Block, Left, Right, Center
62         LabelType       No_Label
63 End
64
65
66 # I want to keep the entries in a logical order.
67 # Therefore I'll define the entries first, then fill them in
68
69 Style Section
70         TocLevel        1
71 End
72
73 Style Subsection
74         TocLevel        2
75 End
76
77 Style Subsubsection
78         TocLevel        3
79 End
80
81 Style Paragraph
82         TocLevel        4
83 End
84
85 Style Itemize
86 End
87
88 Style Enumerate
89 End
90
91 Style Description
92 End
93
94 Style List
95 End
96
97 Style Title
98 End
99
100 Style Author
101 End
102
103 Style Affiliation
104 End
105
106 Style Email
107 End
108
109 Style And
110 End
111
112 Style Date
113 End
114
115 Style Abstract
116 End
117
118 Style Keywords
119 End
120
121 Style Acknowledgements
122 End
123
124 Style Appendix
125 End
126
127 Style References
128 End
129
130 Style PlaceFigure
131 End
132
133 Style PlaceTable
134 End
135
136 Style TableComments
137 End
138
139 Style TableRefs
140 End
141
142
143 Style MathLetters
144 End
145
146 Style NoteToEditor
147 End
148
149 Style Facility
150 End
151
152 Style Objectname
153 End
154
155 Style Dataset
156 End
157
158 # OK, now we have a more or less consistent Ordering. Now fill the
159 # definitions. First, the standard includes
160
161 Input stdinsets.inc
162 Input stdsections.inc
163 Input stdtitle.inc
164 Input stdstruct.inc
165 Input stdlists.inc
166 Input stdfloats.inc
167 Input stdcounters.inc
168
169 NoStyle Part
170 NoCounter part
171 NoStyle Chapter
172 NoCounter chapter
173 NoStyle Subparagraph
174 NoCounter subparagraph
175 NoStyle List
176 NoStyle Bibliography
177
178
179 Style Section
180         Align           Center
181         NextNoIndent    0
182         TopSep          2.0
183         BottomSep       1.3
184         Font
185           Series        Bold
186           Size          Normal
187         EndFont
188         TocLevel        1
189 End
190
191
192 Style Subsection
193         Align           Center
194         NextNoIndent    0
195         TopSep          1.7
196         BottomSep       1.1
197         Font
198           Series        Bold
199           Size          Normal
200         EndFont
201         TocLevel        2
202 End
203
204
205 Style Subsubsection
206         Align           Center
207         NextNoIndent    0
208         TopSep          1.7
209         BottomSep       1.1
210         Font
211           Series        Medium
212           Shape         Italic
213           Size          Normal
214         EndFont
215         TocLevel        3
216 End
217
218
219 Style Title
220         TopSep          2
221         BottomSep       1.3
222         Align           Center
223         InTitle         0
224         Font
225           Series        Bold
226           Size          Large
227         EndFont
228 End
229
230
231 Style Author
232         Align           Center
233         LabelType       No_Label
234         InTitle         0
235         Font
236           Size          Normal
237           Series        Medium
238           Shape         SmallCaps
239         EndFont
240 End
241
242
243 Style Date
244         InTitle         0
245         LabelSep        ""
246         TopSep          1.2
247         Align           Center
248         Font
249           Size          Small
250         EndFont
251 End
252
253
254 Style Abstract
255         LeftMargin      "MMM"
256         RightMargin     "MMM"
257         ParIndent       "MM"
258         InTitle         0
259         TopSep          1.4
260         BottomSep       0.7
261         LabelType       Centered_Top_Environment
262         Align           Block
263         AlignPossible   Block, Left, Right, Center
264         Font
265           Size          Normal
266         EndFont
267         LabelFont
268           Series        Bold
269           Size          Normal
270         EndFont
271 End
272
273
274 Style Affiliation
275         Margin          Static
276         LatexType       Command
277         LatexName       affil
278         Category        FrontMatter
279         ParSkip         0.4
280         BottomSep       0.4
281         Align           Center
282         AlignPossible   Block, Left, Right, Center
283         LabelType       No_Label
284         Font
285           Family        Roman
286           Size          Normal
287         EndFont
288 End
289
290
291 Style Altaffilation
292         Margin          Dynamic
293         LatexType       Command
294         LatexName       altaffiltext
295         Category        FrontMatter
296         ParSkip         0.4
297         Align           Block
298         Argument 1
299           Mandatory     1
300           LabelString   "Number"
301           Tooltip       "Consecutive number for the alternative affiliations"
302         EndArgument
303         LabelSep        xx
304         LabelType       Static
305         LabelString     "Alternative affiliation:"
306         LabelFont
307           Color         green
308         EndFont
309 End
310
311
312 InsetLayout "Flex:altaffilmark"
313         LyxType         custom
314         LatexType       command
315         LatexName       altaffilmark
316         LabelString     "altaffiliation mark"
317         Font
318           Color         foreground
319           Size          Small
320           Family        Roman
321           Shape         Up
322           Series        Medium
323           Misc          No_Emph
324           Misc          No_Noun
325           Misc          No_Bar
326         EndFont
327         LabelFont
328           Color         green
329           Size          Small
330         EndFont
331 End
332
333
334 Style Keywords
335         LeftMargin      MMM
336         Margin          Dynamic
337         LatexType       Command
338         InTitle         0
339         LatexName       keywords
340         Category        FrontMatter
341         ParSkip         0.4
342         BottomSep       0.4
343         Align           Block
344         AlignPossible   Block, Left, Right, Center
345         LabelType       Static
346         LabelSep        M
347         LabelString     "Subject headings:"
348         Font
349           Family        Roman
350           Shape         Up
351           Size          Normal
352         EndFont
353         LabelFont
354           Family        Roman
355           Shape         Italic
356           Size          Normal
357         EndFont
358 End
359
360
361 Style Email
362         Margin          Static
363         LatexType       Command
364         InTitle         0
365         LatexName       email
366         Category        FrontMatter
367         ParSkip         0.4
368         BottomSep       0.4
369         Align           Center
370         AlignPossible   Block, Left, Right, Center
371         LabelType       No_Label
372         Font
373           Family        Roman
374           Size          Normal
375           Shape         Italic
376         EndFont
377 End
378
379
380 Style Acknowledgements
381         Margin          Dynamic
382         LatexType       Command
383         InTitle         0
384         LatexName       acknowledgements
385         TopSep          1.2
386         ParSkip         0.4
387         BottomSep       0.8
388         Align           Left
389         LabelType       Static
390         LabelString     "[Acknowledgements]"
391         KeepEmpty       1
392         Font
393           Family        Roman
394           Size          Normal
395           Shape         Italic
396         EndFont
397 End
398
399
400 Style And
401         Margin          Dynamic
402         LatexType       Command
403         InTitle         0
404         LatexName       and
405         Category        FrontMatter
406         TopSep          1.2
407         ParSkip         0.4
408         BottomSep       1.2
409         Align           Center
410         LabelType       Static
411         LabelString     "and"
412         KeepEmpty       1
413         Font
414           Family        Roman
415           Size          Normal
416         EndFont
417 End
418
419
420 Style PlaceFigure
421         Margin          Dynamic
422         LatexType       Command
423         InTitle         0
424         LatexName       placefigure
425         TopSep          1.2
426         ParSkip         0.4
427         BottomSep       0.8
428         Align           Left
429         LabelType       Static
430         LabelSep        M
431         LabelString     "Place Figure here:"
432         Font
433           Family        Roman
434           Size          Normal
435           Shape         Italic
436         EndFont
437 End
438
439
440 Style PlaceTable
441         Margin          Dynamic
442         LatexType       Command
443         InTitle         0
444         LatexName       placetable
445         TopSep          1.2
446         ParSkip         0.4
447         BottomSep       0.8
448         Align           Left
449         LabelType       Static
450         LabelSep        M
451         LabelString     "Place Table here:"
452         Font
453           Family        Roman
454           Size          Normal
455           Shape         Italic
456         EndFont
457 End
458
459
460 Style Appendix
461         Margin          Dynamic
462         LatexType       Command
463         LatexName       appendix
464         Category        BackMatter
465         TopSep          1.2
466         ParSkip         0.4
467         BottomSep       0.8
468         Align           Left
469         LabelType       Static
470         LabelString     "[Appendix]"
471         KeepEmpty       1
472         Font
473           Family        Roman
474           Size          Normal
475           Shape         Italic
476         EndFont
477 End
478
479
480 Style MathLetters
481         LatexType       Environment
482         LatexName       mathletters
483         LabelType       No_Label
484         Align           Block
485         AlignPossible   Block, Left, Right, Center
486         Font
487           Size          Normal
488         EndFont
489 End
490
491
492 Style References
493         Margin          First_Dynamic
494         LatexType       Bib_Environment
495         LatexName       thebibliography
496         Category        BackMatter
497         NextNoIndent    1
498         LeftMargin      MM
499         ParSkip         0.4
500         ItemSep         0
501         TopSep          0.7
502         BottomSep       0.7
503         ParSep          0.5
504         LabelType       Bibliography
505         LabelString     "References"
506         LabelBottomSep  0.7
507         Align           Block
508         AlignPossible   Block, Left, Right, Center
509         LabelFont
510           Family        Roman
511           Size          Normal
512           Series        Bold
513         EndFont
514 End
515
516
517 # Need reordering below here
518
519 Style NoteToEditor
520         Margin          Dynamic
521         LatexType       Command
522         InTitle         0
523         LatexName       notetoeditor
524         TopSep          1.2
525         ParSkip         0.4
526         BottomSep       0.8
527         Align           Left
528         AlignPossible   Block, Left, Right, Center
529         LabelType       Static
530         LabelSep        M
531         LabelString     "Note to Editor:"
532         Font
533           Family        Roman
534           Size          Normal
535           Shape         Italic
536         EndFont
537 End
538
539
540 Style TableRefs
541         Margin          First_Dynamic
542         LatexType       Command
543         InTitle         0
544         LatexName       tablerefs
545         TopSep          1.2
546         ParSkip         0.4
547         BottomSep       0.8
548         Align           Block
549         AlignPossible   Block, Left, Right, Center
550         LabelType       Static
551         LabelSep        M
552         LabelString     "References. ---"
553         Font
554           Family        Roman
555           Size          Normal
556         EndFont
557 End
558
559
560 Style TableComments
561         Margin          First_Dynamic
562         LatexType       Command
563         InTitle         0
564         LatexName       tablecomments
565         TopSep          1.2
566         ParSkip         0.4
567         BottomSep       0.8
568         Align           Block
569         AlignPossible   Block, Left, Right, Center
570         LabelType       Static
571         LabelSep        M
572         LabelString     "Note. ---"
573         Font
574           Family        Roman
575           Size          Normal
576         EndFont
577 End
578
579
580 Style "Table note"
581         Margin          Dynamic
582         LatexType       Command
583         LatexName       tablenotetext
584         ParSkip         0.4
585         Align           Block
586         LabelSep        xx
587         LabelType       Static
588         LabelString     "Table note:"
589         LabelFont
590           Color         magenta
591         EndFont
592 End
593
594
595 InsetLayout "Flex:tablenotemark"
596         LyxType         custom
597         LatexType       command
598         LatexName       tablenotemark
599         LabelString     "tablenote mark"
600         Font
601           Color         foreground
602           Size          Small
603           Family        Roman
604           Shape         Up
605           Series        Medium
606           Misc          No_Emph
607           Misc          No_Noun
608           Misc          No_Bar
609         EndFont
610         LabelFont
611           Color         magenta
612           Size          Small
613         EndFont
614 End
615
616
617 InsetLayout Caption:FigCaption
618         LabelString          fig.
619         LaTeXType            command
620         LatexName            figcaption
621         Argument 1
622             LabelString   "Short Title|S"
623             Tooltip       "The caption as it appears in the list of figures"
624         EndArgument
625         HTMLStyle
626                 div.float-caption {
627                         text-align: center;
628                         border: 2px solid black;
629                         padding: 1ex;
630                         margin: 1ex;
631                 }
632         EndHTMLStyle
633 End
634
635
636 # Facility style definition
637 Style Facility
638         LeftMargin      MMM
639         Margin          Dynamic
640         LatexType       Command
641         InTitle         0
642         LatexName       facility
643         ParSkip         0.4
644         BottomSep       0.4
645         Align           Block
646         AlignPossible   Block, Left, Right, Center
647         LabelType       Static
648         LabelSep        M
649         LabelString     "Facility:"
650         Font
651           Family        Roman
652           Shape         Up
653           Size          Normal
654         EndFont
655         LabelFont
656           Family        Roman
657           Shape         Italic
658           Size          Normal
659         EndFont
660 End
661
662 # Objectname style definition
663 Style Objectname
664         LeftMargin      MMM
665         Margin          Dynamic
666         LatexType       Command
667         InTitle         0
668         LatexName       objectname
669         ParSkip         0.4
670         BottomSep       0.4
671         Align           Block
672         AlignPossible   Block, Left, Right, Center
673         LabelType       Static
674         LabelSep        M
675         LabelString     "Obj:"
676         Argument 1
677           LabelString   "Recognized Name"
678           Tooltip       "Separate the recognized name of an object from text"
679         EndArgument
680         Font
681           Family        Roman
682           Shape         Up
683           Size          Normal
684         EndFont
685         LabelFont
686           Family        Roman
687           Shape         Italic
688           Size          Normal
689         EndFont
690 End
691
692 # Dataset style definition
693 Style Dataset
694         LeftMargin      MMM
695         Margin          Dynamic
696         LatexType       Command
697         InTitle         0
698         LatexName       dataset
699         ParSkip         0.4
700         BottomSep       0.4
701         Align           Block
702         AlignPossible   Block, Left, Right, Center
703         LabelType       Static
704         LabelSep        M
705         LabelString     "Dataset:"
706         Argument 1
707           LabelString   "Recognized Name"
708           Tooltip       "Separate the dataset ID from text"
709         EndArgument
710         Font
711           Family        Roman
712           Shape         Up
713           Size          Normal
714         EndFont
715         LabelFont
716           Family        Roman
717           Shape         Italic
718           Size          Normal
719         EndFont
720 End
721