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