]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex.layout
74d2ab6adea3a599edca1f98dcb5e04c55d17c17
[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         DocBookTag      para
73 End
74
75
76 # OK, now we have a more or less consistent Ordering. Now fill the
77 # definitions. First, the standard includes
78
79 Input stdinsets.inc
80 Input stdsections.inc
81 Input stdtitle.inc
82 Input stdstruct.inc
83 Input stdlists.inc
84 Input stdfloats.inc
85 Input stdcounters.inc
86
87 NoStyle Part
88 NoCounter part
89 NoStyle Chapter
90 NoCounter chapter
91 NoStyle Subparagraph
92 NoCounter subparagraph
93 NoStyle List
94 NoStyle Bibliography
95
96
97 Style Section
98         Align           Center
99         NextNoIndent    0
100         TopSep          2.0
101         BottomSep       1.3
102         Font
103           Series        Bold
104           Size          Normal
105         EndFont
106         TocLevel        1
107 End
108
109
110 Style Subsection
111         Align           Center
112         NextNoIndent    0
113         TopSep          1.7
114         BottomSep       1.1
115         Font
116           Series        Bold
117           Size          Normal
118         EndFont
119         TocLevel        2
120 End
121
122
123 Style Subsubsection
124         Align           Center
125         NextNoIndent    0
126         TopSep          1.7
127         BottomSep       1.1
128         Font
129           Series        Medium
130           Shape         Italic
131           Size          Normal
132         EndFont
133         TocLevel        3
134 End
135
136
137 Style Title
138         TopSep          2
139         BottomSep       1.3
140         Align           Center
141         InTitle         0
142         Font
143           Series        Bold
144           Size          Large
145         EndFont
146 End
147
148
149 Style Author
150         Align           Center
151         LabelType       No_Label
152         InTitle         0
153         Font
154           Size          Normal
155           Series        Medium
156           Shape         SmallCaps
157         EndFont
158         DocBookTag            personname
159         DocBookWrapperTag     author
160         DocBookInInfo         always
161 End
162
163
164 Style Affiliation
165         Margin          Static
166         LatexType       Command
167         LatexName       affil
168         Category        FrontMatter
169         ParSkip         0.4
170         BottomSep       0.4
171         Align           Center
172         AlignPossible   Block, Left, Right, Center
173         LabelType       No_Label
174         Font
175           Family        Roman
176           Size          Normal
177         EndFont
178         DocBookTag                        affiliation
179         DocBookWrapperTag                 author
180         DocBookWrapperMergeWithPrevious   true
181         DocBookItemTag                    orgname
182         DocBookInInfo                     always
183 End
184
185
186 Style Altaffilation
187         Margin          Dynamic
188         LatexType       Command
189         LatexName       altaffiltext
190         Category        FrontMatter
191         ParSkip         0.4
192         Align           Block
193         Argument 1
194           Mandatory     1
195           LabelString   "Number"
196           Tooltip       "Consecutive number for the alternative affiliations"
197           PassThru      1
198         EndArgument
199         LabelSep        xx
200         LabelType       Static
201         LabelString     "Alternative affiliation:"
202         LabelFont
203           Color         green
204         EndFont
205         DocBookTag                        affiliation
206         DocBookAttr                       role="alternate"
207         DocBookWrapperTag                 author
208         DocBookWrapperMergeWithPrevious   true
209         DocBookItemTag                    orgname
210         DocBookInInfo                     always
211 End
212
213
214 Style Email
215         Margin          Static
216         LatexType       Command
217         InTitle         0
218         LatexName       email
219         Category        FrontMatter
220         ParSkip         0.4
221         BottomSep       0.4
222         Align           Center
223         AlignPossible   Block, Left, Right, Center
224         LabelType       No_Label
225         Font
226           Family        Roman
227           Size          Normal
228           Shape         Italic
229         EndFont
230         DocBookTag                        email
231         DocBookWrapperTag                 author
232         DocBookWrapperMergeWithPrevious   true
233         DocBookInInfo                     always
234 End
235
236
237 Style And
238         Margin          Dynamic
239         LatexType       Command
240         InTitle         0
241         LatexName       and
242         Category        FrontMatter
243         TopSep          1.2
244         ParSkip         0.4
245         BottomSep       1.2
246         Align           Center
247         LabelType       Static
248         LabelString     "and"
249         KeepEmpty       1
250         Font
251           Family        Roman
252           Size          Normal
253         EndFont
254 End
255
256
257 Style Date
258         InTitle         0
259         LabelSep        ""
260         TopSep          1.2
261         Align           Center
262         Font
263           Size          Small
264         EndFont
265 End
266
267
268 Style Abstract
269         LeftMargin      "MMM"
270         RightMargin     "MMM"
271         ParIndent       "MM"
272         InTitle         0
273         TopSep          1.4
274         BottomSep       0.7
275         LabelType       Centered
276         Align           Block
277         AlignPossible   Block, Left, Right, Center
278         Font
279           Size          Normal
280         EndFont
281         LabelFont
282           Series        Bold
283           Size          Normal
284         EndFont
285 End
286
287
288 InsetLayout "Flex:altaffilmark"
289         LyxType         custom
290         LatexType       command
291         LatexName       altaffilmark
292         LabelString     "altaffiliation mark"
293         Font
294           Color         foreground
295           Size          Small
296           Family        Roman
297           Shape         Up
298           Series        Medium
299           Misc          No_Emph
300           Misc          No_Noun
301           Misc          No_Bar
302         EndFont
303         LabelFont
304           Color         green
305           Size          Small
306         EndFont
307 End
308
309
310 Style Keywords
311         LeftMargin      MMM
312         Margin          Dynamic
313         LatexType       Command
314         InTitle         0
315         LatexName       keywords
316         Category        FrontMatter
317         ParSkip         0.4
318         BottomSep       0.4
319         Align           Block
320         AlignPossible   Block, Left, Right, Center
321         LabelType       Static
322         LabelSep        M
323         LabelString     "Subject headings:"
324         Font
325           Family        Roman
326           Shape         Up
327           Size          Normal
328         EndFont
329         LabelFont
330           Family        Roman
331           Shape         Italic
332           Size          Normal
333         EndFont
334         DocBookTag          keyword
335         DocBookWrapperTag   keywordset
336         DocBookInInfo       always
337 End
338
339
340 Style Acknowledgements
341         Category        BackMatter
342         Margin          Dynamic
343         LatexType       Command
344         InTitle         0
345         LatexName       acknowledgements
346         TopSep          1.2
347         ParSkip         0.4
348         BottomSep       0.8
349         Align           Left
350         LabelType       Static
351         LabelString     "[Acknowledgements]"
352         KeepEmpty       1
353         Font
354           Family        Roman
355           Size          Normal
356           Shape         Italic
357         EndFont
358         DocBookTag            para
359         DocBookWrapperTag     acknowledgement
360 End
361
362
363 Style PlaceFigure
364         Margin          Dynamic
365         LatexType       Command
366         InTitle         0
367         LatexName       placefigure
368         TopSep          1.2
369         ParSkip         0.4
370         BottomSep       0.8
371         Align           Left
372         LabelType       Static
373         LabelSep        M
374         LabelString     "Place Figure here:"
375         Font
376           Family        Roman
377           Size          Normal
378           Shape         Italic
379         EndFont
380 End
381
382
383 Style PlaceTable
384         Margin          Dynamic
385         LatexType       Command
386         InTitle         0
387         LatexName       placetable
388         TopSep          1.2
389         ParSkip         0.4
390         BottomSep       0.8
391         Align           Left
392         LabelType       Static
393         LabelSep        M
394         LabelString     "Place Table here:"
395         Font
396           Family        Roman
397           Size          Normal
398           Shape         Italic
399         EndFont
400 End
401
402
403 Style Appendix
404         Margin          Dynamic
405         LatexType       Command
406         LatexName       appendix
407         Category        BackMatter
408         TopSep          1.2
409         ParSkip         0.4
410         BottomSep       0.8
411         Align           Left
412         LabelType       Static
413         LabelString     "[Appendix]"
414         KeepEmpty       1
415         Font
416           Family        Roman
417           Size          Normal
418           Shape         Italic
419         EndFont
420 End
421
422
423 Style MathLetters
424         LatexType       Environment
425         LatexName       mathletters
426         LabelType       No_Label
427         Align           Block
428         AlignPossible   Block, Left, Right, Center
429         Font
430           Size          Normal
431         EndFont
432 End
433
434
435 Style Bibliography
436         Margin          First_Dynamic
437         LatexType       Bib_Environment
438         LatexName       thebibliography
439         Category        BackMatter
440         NextNoIndent    1
441         ToggleIndent    Never
442         LeftMargin      MM
443         ParSkip         0.4
444         ItemSep         0
445         TopSep          0.7
446         BottomSep       0.7
447         ParSep          0.5
448         LabelType       Bibliography
449         LabelString     "References"
450         LabelBottomSep  0.7
451         Align           Block
452         AlignPossible   Block, Left, Right, Center
453         LabelFont
454           Family        Roman
455           Size          Normal
456           Series        Bold
457         EndFont
458         Argument listpreamble:1
459           LabelString    "Bib preamble"
460           MenuString     "Bibliography Preamble"
461           Tooltip        "LaTeX code to be inserted before the first bibliography item"
462           PassThru       1
463           Font
464             Family typewriter
465             Color latex
466           EndFont
467         EndArgument
468 End
469
470 Style References
471         Obsoletedby     Bibliography
472 End
473
474
475 # Need reordering below here
476
477 Style NoteToEditor
478         Margin          Dynamic
479         LatexType       Command
480         InTitle         0
481         LatexName       notetoeditor
482         TopSep          1.2
483         ParSkip         0.4
484         BottomSep       0.8
485         Align           Left
486         AlignPossible   Block, Left, Right, Center
487         LabelType       Static
488         LabelSep        M
489         LabelString     "Note to Editor:"
490         Font
491           Family        Roman
492           Size          Normal
493           Shape         Italic
494         EndFont
495 End
496
497
498 Style TableRefs
499         Margin          First_Dynamic
500         LatexType       Command
501         InTitle         0
502         LatexName       tablerefs
503         TopSep          1.2
504         ParSkip         0.4
505         BottomSep       0.8
506         Align           Block
507         AlignPossible   Block, Left, Right, Center
508         LabelType       Static
509         LabelSep        M
510         LabelString     "References. ---"
511         Font
512           Family        Roman
513           Size          Normal
514         EndFont
515 End
516
517
518 Style TableComments
519         Margin          First_Dynamic
520         LatexType       Command
521         InTitle         0
522         LatexName       tablecomments
523         TopSep          1.2
524         ParSkip         0.4
525         BottomSep       0.8
526         Align           Block
527         AlignPossible   Block, Left, Right, Center
528         LabelType       Static
529         LabelSep        M
530         LabelString     "Note. ---"
531         Font
532           Family        Roman
533           Size          Normal
534         EndFont
535 End
536
537
538 Style "Table note"
539         Margin          Dynamic
540         LatexType       Command
541         LatexName       tablenotetext
542         ParSkip         0.4
543         Align           Block
544         LabelSep        xx
545         LabelType       Static
546         LabelString     "Table note:"
547         LabelFont
548           Color         magenta
549         EndFont
550 End
551
552
553 InsetLayout "Flex:tablenotemark"
554         LyxType         custom
555         LatexType       command
556         LatexName       tablenotemark
557         LabelString     "tablenote mark"
558         Font
559           Color         foreground
560           Size          Small
561           Family        Roman
562           Shape         Up
563           Series        Medium
564           Misc          No_Emph
565           Misc          No_Noun
566           Misc          No_Bar
567         EndFont
568         LabelFont
569           Color         magenta
570           Size          Small
571         EndFont
572 End
573
574
575 InsetLayout Caption:FigCaption
576         LabelString     fig.
577         LaTeXType       command
578         LatexName       figcaption
579         MultiPar        false
580         Argument 1
581           LabelString   "Filename"
582           Tooltip       "Filename to identify the corresponding figure file"
583         EndArgument
584         HTMLStyle
585                 div.float-caption {
586                         text-align: center;
587                         border: 2px solid black;
588                         padding: 1ex;
589                         margin: 1ex;
590                 }
591         EndHTMLStyle
592         HTMLAttr "class='float-caption float-caption-figcaption'"
593 End
594
595
596 # Facility style definition
597 Style Facility
598         LeftMargin      MMM
599         Margin          Dynamic
600         LatexType       Command
601         InTitle         0
602         LatexName       facility
603         ParSkip         0.4
604         BottomSep       0.4
605         Align           Block
606         AlignPossible   Block, Left, Right, Center
607         LabelType       Static
608         LabelSep        M
609         LabelString     "Facility:"
610         Font
611           Family        Roman
612           Shape         Up
613           Size          Normal
614         EndFont
615         LabelFont
616           Family        Roman
617           Shape         Italic
618           Size          Normal
619         EndFont
620 End
621
622 # Objectname style definition
623 Style Objectname
624         LeftMargin      MMM
625         Margin          Dynamic
626         LatexType       Command
627         InTitle         0
628         LatexName       objectname
629         ParSkip         0.4
630         BottomSep       0.4
631         Align           Block
632         AlignPossible   Block, Left, Right, Center
633         LabelType       Static
634         LabelSep        M
635         LabelString     "Obj:"
636         Argument 1
637           LabelString   "Recognized Name"
638           Tooltip       "Separate the recognized name of an object from text"
639         EndArgument
640         Font
641           Family        Roman
642           Shape         Up
643           Size          Normal
644         EndFont
645         LabelFont
646           Family        Roman
647           Shape         Italic
648           Size          Normal
649         EndFont
650 End
651
652 # Dataset style definition
653 Style Dataset
654         LeftMargin      MMM
655         Margin          Dynamic
656         LatexType       Command
657         InTitle         0
658         LatexName       dataset
659         ParSkip         0.4
660         BottomSep       0.4
661         Align           Block
662         AlignPossible   Block, Left, Right, Center
663         LabelType       Static
664         LabelSep        M
665         LabelString     "Dataset:"
666         Argument 1
667           LabelString   "Recognized Name"
668           Tooltip       "Separate the dataset ID from text"
669         EndArgument
670         Font
671           Family        Roman
672           Shape         Up
673           Size          Normal
674         EndFont
675         LabelFont
676           Family        Roman
677           Shape         Italic
678           Size          Normal
679         EndFont
680 End
681