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