]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex.layout
78089a45c974c7c6aeeec733b2b5551fdfade53d
[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         DocBookItemTagType                paragraph
183         DocBookInInfo                     always
184 End
185
186
187 Style Altaffilation
188         Margin          Dynamic
189         LatexType       Command
190         LatexName       altaffiltext
191         Category        FrontMatter
192         ParSkip         0.4
193         Align           Block
194         Argument 1
195           Mandatory     1
196           LabelString   "Number"
197           Tooltip       "Consecutive number for the alternative affiliations"
198           PassThru      1
199         EndArgument
200         LabelSep        xx
201         LabelType       Static
202         LabelString     "Alternative affiliation:"
203         LabelFont
204           Color         green
205         EndFont
206         DocBookTag                        affiliation
207         DocBookAttr                       role="alternate"
208         DocBookWrapperTag                 author
209         DocBookWrapperMergeWithPrevious   true
210         DocBookItemTag                    orgname
211         DocBookItemTagType                paragraph
212         DocBookInInfo                     always
213 End
214
215
216 Style Email
217         Margin          Static
218         LatexType       Command
219         InTitle         0
220         LatexName       email
221         Category        FrontMatter
222         ParSkip         0.4
223         BottomSep       0.4
224         Align           Center
225         AlignPossible   Block, Left, Right, Center
226         LabelType       No_Label
227         Font
228           Family        Roman
229           Size          Normal
230           Shape         Italic
231         EndFont
232         DocBookTag                        email
233         DocBookTagType                    paragraph
234         DocBookWrapperTag                 author
235         DocBookWrapperMergeWithPrevious   true
236         DocBookInInfo                     always
237 End
238
239
240 Style And
241         Margin          Dynamic
242         LatexType       Command
243         InTitle         0
244         LatexName       and
245         Category        FrontMatter
246         TopSep          1.2
247         ParSkip         0.4
248         BottomSep       1.2
249         Align           Center
250         LabelType       Static
251         LabelString     "and"
252         KeepEmpty       1
253         Font
254           Family        Roman
255           Size          Normal
256         EndFont
257 End
258
259
260 Style Date
261         InTitle         0
262         LabelSep        ""
263         TopSep          1.2
264         Align           Center
265         Font
266           Size          Small
267         EndFont
268 End
269
270
271 Style Abstract
272         LeftMargin      "MMM"
273         RightMargin     "MMM"
274         ParIndent       "MM"
275         InTitle         0
276         TopSep          1.4
277         BottomSep       0.7
278         LabelType       Centered
279         Align           Block
280         AlignPossible   Block, Left, Right, Center
281         Font
282           Size          Normal
283         EndFont
284         LabelFont
285           Series        Bold
286           Size          Normal
287         EndFont
288         DocBookAbstract       true
289         DocBookInInfo         always
290         DocBookWrapperTag     abstract
291         DocBookWrapperMergeWithPrevious    true
292         DocBookTag            para
293 End
294
295
296 InsetLayout "Flex:altaffilmark"
297         LyxType         custom
298         LatexType       command
299         LatexName       altaffilmark
300         LabelString     "altaffiliation mark"
301         Font
302           Color         foreground
303           Size          Small
304           Family        Roman
305           Shape         Up
306           Series        Medium
307           Misc          No_Emph
308           Misc          No_Noun
309           Misc          No_Bar
310         EndFont
311         LabelFont
312           Color         green
313           Size          Small
314         EndFont
315 End
316
317
318 Style Keywords
319         LeftMargin      MMM
320         Margin          Dynamic
321         LatexType       Command
322         InTitle         0
323         LatexName       keywords
324         Category        FrontMatter
325         ParSkip         0.4
326         BottomSep       0.4
327         Align           Block
328         AlignPossible   Block, Left, Right, Center
329         LabelType       Static
330         LabelSep        M
331         LabelString     "Subject headings:"
332         Font
333           Family        Roman
334           Shape         Up
335           Size          Normal
336         EndFont
337         LabelFont
338           Family        Roman
339           Shape         Italic
340           Size          Normal
341         EndFont
342         DocBookTag          keyword
343         DocBookTagType      paragraph
344         DocBookWrapperTag   keywordset
345         DocBookInInfo       always
346 End
347
348
349 Style Acknowledgements
350         Category        BackMatter
351         Margin          Dynamic
352         LatexType       Command
353         InTitle         0
354         LatexName       acknowledgements
355         TopSep          1.2
356         ParSkip         0.4
357         BottomSep       0.8
358         Align           Left
359         LabelType       Static
360         LabelString     "[Acknowledgements]"
361         KeepEmpty       1
362         Font
363           Family        Roman
364           Size          Normal
365           Shape         Italic
366         EndFont
367         DocBookTag            para
368         DocBookWrapperTag     acknowledgements
369 End
370
371
372 Style PlaceFigure
373         Margin          Dynamic
374         LatexType       Command
375         InTitle         0
376         LatexName       placefigure
377         TopSep          1.2
378         ParSkip         0.4
379         BottomSep       0.8
380         Align           Left
381         LabelType       Static
382         LabelSep        M
383         LabelString     "Place Figure here:"
384         Font
385           Family        Roman
386           Size          Normal
387           Shape         Italic
388         EndFont
389 End
390
391
392 Style PlaceTable
393         Margin          Dynamic
394         LatexType       Command
395         InTitle         0
396         LatexName       placetable
397         TopSep          1.2
398         ParSkip         0.4
399         BottomSep       0.8
400         Align           Left
401         LabelType       Static
402         LabelSep        M
403         LabelString     "Place Table here:"
404         Font
405           Family        Roman
406           Size          Normal
407           Shape         Italic
408         EndFont
409 End
410
411
412 Style Appendix
413         Margin          Dynamic
414         LatexType       Command
415         LatexName       appendix
416         Category        BackMatter
417         TopSep          1.2
418         ParSkip         0.4
419         BottomSep       0.8
420         Align           Left
421         LabelType       Static
422         LabelString     "[Appendix]"
423         KeepEmpty       1
424         Font
425           Family        Roman
426           Size          Normal
427           Shape         Italic
428         EndFont
429 End
430
431
432 Style MathLetters
433         LatexType       Environment
434         LatexName       mathletters
435         LabelType       No_Label
436         Align           Block
437         AlignPossible   Block, Left, Right, Center
438         Font
439           Size          Normal
440         EndFont
441         DocBookTag  NONE
442 End
443
444
445 Style Bibliography
446         Margin          First_Dynamic
447         LatexType       Bib_Environment
448         LatexName       thebibliography
449         Category        BackMatter
450         NextNoIndent    1
451         ToggleIndent    Never
452         LeftMargin      MM
453         ParSkip         0.4
454         ItemSep         0
455         TopSep          0.7
456         BottomSep       0.7
457         ParSep          0.5
458         LabelType       Bibliography
459         LabelString     "References"
460         LabelBottomSep  0.7
461         Align           Block
462         AlignPossible   Block, Left, Right, Center
463         LabelFont
464           Family        Roman
465           Size          Normal
466           Series        Bold
467         EndFont
468         Argument listpreamble:1
469           LabelString    "Bib preamble"
470           MenuString     "Bibliography Preamble"
471           Tooltip        "LaTeX code to be inserted before the first bibliography item"
472           PassThru       1
473           Font
474             Family typewriter
475             Color latex
476           EndFont
477         EndArgument
478 End
479
480 Style References
481         Obsoletedby     Bibliography
482 End
483
484
485 # Need reordering below here
486
487 Style NoteToEditor
488         Margin          Dynamic
489         LatexType       Command
490         InTitle         0
491         LatexName       notetoeditor
492         TopSep          1.2
493         ParSkip         0.4
494         BottomSep       0.8
495         Align           Left
496         AlignPossible   Block, Left, Right, Center
497         LabelType       Static
498         LabelSep        M
499         LabelString     "Note to Editor:"
500         Font
501           Family        Roman
502           Size          Normal
503           Shape         Italic
504         EndFont
505         DocBookTag      remark
506         DocBookTagType  paragraph
507         DocBookAttr     role='to-editor'
508 End
509
510
511 Style TableRefs
512         Margin          First_Dynamic
513         LatexType       Command
514         InTitle         0
515         LatexName       tablerefs
516         TopSep          1.2
517         ParSkip         0.4
518         BottomSep       0.8
519         Align           Block
520         AlignPossible   Block, Left, Right, Center
521         LabelType       Static
522         LabelSep        M
523         LabelString     "References. ---"
524         Font
525           Family        Roman
526           Size          Normal
527         EndFont
528         DocBookTag      remark
529         DocBookTagType  paragraph
530         DocBookAttr     role='tablerefs'
531 End
532
533
534 Style TableComments
535         Margin          First_Dynamic
536         LatexType       Command
537         InTitle         0
538         LatexName       tablecomments
539         TopSep          1.2
540         ParSkip         0.4
541         BottomSep       0.8
542         Align           Block
543         AlignPossible   Block, Left, Right, Center
544         LabelType       Static
545         LabelSep        M
546         LabelString     "Note. ---"
547         Font
548           Family        Roman
549           Size          Normal
550         EndFont
551         DocBookTag      remark
552         DocBookTagType  paragraph
553         DocBookAttr     role='tablecomments'
554 End
555
556
557 Style "Table note"
558         Margin          Dynamic
559         LatexType       Command
560         LatexName       tablenotetext
561         ParSkip         0.4
562         Align           Block
563         LabelSep        xx
564         LabelType       Static
565         LabelString     "Table note:"
566         LabelFont
567           Color         magenta
568         EndFont
569         DocBookTag      remark
570         DocBookTagType  paragraph
571         DocBookAttr     role='tablenote'
572 End
573
574
575 InsetLayout "Flex:tablenotemark"
576         LyxType         custom
577         LatexType       command
578         LatexName       tablenotemark
579         LabelString     "tablenote mark"
580         Font
581           Color         foreground
582           Size          Small
583           Family        Roman
584           Shape         Up
585           Series        Medium
586           Misc          No_Emph
587           Misc          No_Noun
588           Misc          No_Bar
589         EndFont
590         LabelFont
591           Color         magenta
592           Size          Small
593         EndFont
594         DocBookTag      remark
595         DocBookTagType  paragraph
596         DocBookAttr     role='tablenotemark'
597 End
598
599
600 InsetLayout Caption:FigCaption
601         LabelString     fig.
602         LaTeXType       command
603         LatexName       figcaption
604         MultiPar        false
605         Argument 1
606           LabelString   "Filename"
607           Tooltip       "Filename to identify the corresponding figure file"
608         EndArgument
609         HTMLStyle
610                 div.float-caption {
611                         text-align: center;
612                         border: 2px solid black;
613                         padding: 1ex;
614                         margin: 1ex;
615                 }
616         EndHTMLStyle
617         HTMLAttr "class='float-caption float-caption-figcaption'"
618 End
619
620
621 # Facility style definition
622 Style Facility
623         LeftMargin      MMM
624         Margin          Dynamic
625         LatexType       Command
626         InTitle         0
627         LatexName       facility
628         ParSkip         0.4
629         BottomSep       0.4
630         Align           Block
631         AlignPossible   Block, Left, Right, Center
632         LabelType       Static
633         LabelSep        M
634         LabelString     "Facility:"
635         Font
636           Family        Roman
637           Shape         Up
638           Size          Normal
639         EndFont
640         LabelFont
641           Family        Roman
642           Shape         Italic
643           Size          Normal
644         EndFont
645 End
646
647 # Objectname style definition
648 Style Objectname
649         LeftMargin      MMM
650         Margin          Dynamic
651         LatexType       Command
652         InTitle         0
653         LatexName       objectname
654         ParSkip         0.4
655         BottomSep       0.4
656         Align           Block
657         AlignPossible   Block, Left, Right, Center
658         LabelType       Static
659         LabelSep        M
660         LabelString     "Obj:"
661         Argument 1
662           LabelString   "Recognized Name"
663           Tooltip       "Separate the recognized name of an object from text"
664         EndArgument
665         Font
666           Family        Roman
667           Shape         Up
668           Size          Normal
669         EndFont
670         LabelFont
671           Family        Roman
672           Shape         Italic
673           Size          Normal
674         EndFont
675 End
676
677 # Dataset style definition
678 Style Dataset
679         LeftMargin      MMM
680         Margin          Dynamic
681         LatexType       Command
682         InTitle         0
683         LatexName       dataset
684         ParSkip         0.4
685         BottomSep       0.4
686         Align           Block
687         AlignPossible   Block, Left, Right, Center
688         LabelType       Static
689         LabelSep        M
690         LabelString     "Dataset:"
691         Argument 1
692           LabelString   "Recognized Name"
693           Tooltip       "Separate the dataset ID from text"
694         EndArgument
695         Font
696           Family        Roman
697           Shape         Up
698           Size          Normal
699         EndFont
700         LabelFont
701           Family        Roman
702           Shape         Italic
703           Size          Normal
704         EndFont
705 End
706