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