]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex.layout
DocBook: simplify code to handle abstracts.
[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         DocBookTag            abstract
286         DocBookItemTag        para
287         DocBookInInfo         always
288 End
289
290
291 InsetLayout "Flex:altaffilmark"
292         LyxType         custom
293         LatexType       command
294         LatexName       altaffilmark
295         LabelString     "altaffiliation mark"
296         Font
297           Color         foreground
298           Size          Small
299           Family        Roman
300           Shape         Up
301           Series        Medium
302           Misc          No_Emph
303           Misc          No_Noun
304           Misc          No_Bar
305         EndFont
306         LabelFont
307           Color         green
308           Size          Small
309         EndFont
310 End
311
312
313 Style Keywords
314         LeftMargin      MMM
315         Margin          Dynamic
316         LatexType       Command
317         InTitle         0
318         LatexName       keywords
319         Category        FrontMatter
320         ParSkip         0.4
321         BottomSep       0.4
322         Align           Block
323         AlignPossible   Block, Left, Right, Center
324         LabelType       Static
325         LabelSep        M
326         LabelString     "Subject headings:"
327         Font
328           Family        Roman
329           Shape         Up
330           Size          Normal
331         EndFont
332         LabelFont
333           Family        Roman
334           Shape         Italic
335           Size          Normal
336         EndFont
337         DocBookTag          keyword
338         DocBookWrapperTag   keywordset
339         DocBookInInfo       always
340 End
341
342
343 Style Acknowledgements
344         Category        BackMatter
345         Margin          Dynamic
346         LatexType       Command
347         InTitle         0
348         LatexName       acknowledgements
349         TopSep          1.2
350         ParSkip         0.4
351         BottomSep       0.8
352         Align           Left
353         LabelType       Static
354         LabelString     "[Acknowledgements]"
355         KeepEmpty       1
356         Font
357           Family        Roman
358           Size          Normal
359           Shape         Italic
360         EndFont
361         DocBookTag            para
362         DocBookWrapperTag     acknowledgement
363 End
364
365
366 Style PlaceFigure
367         Margin          Dynamic
368         LatexType       Command
369         InTitle         0
370         LatexName       placefigure
371         TopSep          1.2
372         ParSkip         0.4
373         BottomSep       0.8
374         Align           Left
375         LabelType       Static
376         LabelSep        M
377         LabelString     "Place Figure here:"
378         Font
379           Family        Roman
380           Size          Normal
381           Shape         Italic
382         EndFont
383 End
384
385
386 Style PlaceTable
387         Margin          Dynamic
388         LatexType       Command
389         InTitle         0
390         LatexName       placetable
391         TopSep          1.2
392         ParSkip         0.4
393         BottomSep       0.8
394         Align           Left
395         LabelType       Static
396         LabelSep        M
397         LabelString     "Place Table here:"
398         Font
399           Family        Roman
400           Size          Normal
401           Shape         Italic
402         EndFont
403 End
404
405
406 Style Appendix
407         Margin          Dynamic
408         LatexType       Command
409         LatexName       appendix
410         Category        BackMatter
411         TopSep          1.2
412         ParSkip         0.4
413         BottomSep       0.8
414         Align           Left
415         LabelType       Static
416         LabelString     "[Appendix]"
417         KeepEmpty       1
418         Font
419           Family        Roman
420           Size          Normal
421           Shape         Italic
422         EndFont
423 End
424
425
426 Style MathLetters
427         LatexType       Environment
428         LatexName       mathletters
429         LabelType       No_Label
430         Align           Block
431         AlignPossible   Block, Left, Right, Center
432         Font
433           Size          Normal
434         EndFont
435 End
436
437
438 Style Bibliography
439         Margin          First_Dynamic
440         LatexType       Bib_Environment
441         LatexName       thebibliography
442         Category        BackMatter
443         NextNoIndent    1
444         ToggleIndent    Never
445         LeftMargin      MM
446         ParSkip         0.4
447         ItemSep         0
448         TopSep          0.7
449         BottomSep       0.7
450         ParSep          0.5
451         LabelType       Bibliography
452         LabelString     "References"
453         LabelBottomSep  0.7
454         Align           Block
455         AlignPossible   Block, Left, Right, Center
456         LabelFont
457           Family        Roman
458           Size          Normal
459           Series        Bold
460         EndFont
461         Argument listpreamble:1
462           LabelString    "Bib preamble"
463           MenuString     "Bibliography Preamble"
464           Tooltip        "LaTeX code to be inserted before the first bibliography item"
465           PassThru       1
466           Font
467             Family typewriter
468             Color latex
469           EndFont
470         EndArgument
471 End
472
473 Style References
474         Obsoletedby     Bibliography
475 End
476
477
478 # Need reordering below here
479
480 Style NoteToEditor
481         Margin          Dynamic
482         LatexType       Command
483         InTitle         0
484         LatexName       notetoeditor
485         TopSep          1.2
486         ParSkip         0.4
487         BottomSep       0.8
488         Align           Left
489         AlignPossible   Block, Left, Right, Center
490         LabelType       Static
491         LabelSep        M
492         LabelString     "Note to Editor:"
493         Font
494           Family        Roman
495           Size          Normal
496           Shape         Italic
497         EndFont
498 End
499
500
501 Style TableRefs
502         Margin          First_Dynamic
503         LatexType       Command
504         InTitle         0
505         LatexName       tablerefs
506         TopSep          1.2
507         ParSkip         0.4
508         BottomSep       0.8
509         Align           Block
510         AlignPossible   Block, Left, Right, Center
511         LabelType       Static
512         LabelSep        M
513         LabelString     "References. ---"
514         Font
515           Family        Roman
516           Size          Normal
517         EndFont
518 End
519
520
521 Style TableComments
522         Margin          First_Dynamic
523         LatexType       Command
524         InTitle         0
525         LatexName       tablecomments
526         TopSep          1.2
527         ParSkip         0.4
528         BottomSep       0.8
529         Align           Block
530         AlignPossible   Block, Left, Right, Center
531         LabelType       Static
532         LabelSep        M
533         LabelString     "Note. ---"
534         Font
535           Family        Roman
536           Size          Normal
537         EndFont
538 End
539
540
541 Style "Table note"
542         Margin          Dynamic
543         LatexType       Command
544         LatexName       tablenotetext
545         ParSkip         0.4
546         Align           Block
547         LabelSep        xx
548         LabelType       Static
549         LabelString     "Table note:"
550         LabelFont
551           Color         magenta
552         EndFont
553 End
554
555
556 InsetLayout "Flex:tablenotemark"
557         LyxType         custom
558         LatexType       command
559         LatexName       tablenotemark
560         LabelString     "tablenote mark"
561         Font
562           Color         foreground
563           Size          Small
564           Family        Roman
565           Shape         Up
566           Series        Medium
567           Misc          No_Emph
568           Misc          No_Noun
569           Misc          No_Bar
570         EndFont
571         LabelFont
572           Color         magenta
573           Size          Small
574         EndFont
575 End
576
577
578 InsetLayout Caption:FigCaption
579         LabelString     fig.
580         LaTeXType       command
581         LatexName       figcaption
582         MultiPar        false
583         Argument 1
584           LabelString   "Filename"
585           Tooltip       "Filename to identify the corresponding figure file"
586         EndArgument
587         HTMLStyle
588                 div.float-caption {
589                         text-align: center;
590                         border: 2px solid black;
591                         padding: 1ex;
592                         margin: 1ex;
593                 }
594         EndHTMLStyle
595         HTMLAttr "class='float-caption float-caption-figcaption'"
596 End
597
598
599 # Facility style definition
600 Style Facility
601         LeftMargin      MMM
602         Margin          Dynamic
603         LatexType       Command
604         InTitle         0
605         LatexName       facility
606         ParSkip         0.4
607         BottomSep       0.4
608         Align           Block
609         AlignPossible   Block, Left, Right, Center
610         LabelType       Static
611         LabelSep        M
612         LabelString     "Facility:"
613         Font
614           Family        Roman
615           Shape         Up
616           Size          Normal
617         EndFont
618         LabelFont
619           Family        Roman
620           Shape         Italic
621           Size          Normal
622         EndFont
623 End
624
625 # Objectname style definition
626 Style Objectname
627         LeftMargin      MMM
628         Margin          Dynamic
629         LatexType       Command
630         InTitle         0
631         LatexName       objectname
632         ParSkip         0.4
633         BottomSep       0.4
634         Align           Block
635         AlignPossible   Block, Left, Right, Center
636         LabelType       Static
637         LabelSep        M
638         LabelString     "Obj:"
639         Argument 1
640           LabelString   "Recognized Name"
641           Tooltip       "Separate the recognized name of an object from text"
642         EndArgument
643         Font
644           Family        Roman
645           Shape         Up
646           Size          Normal
647         EndFont
648         LabelFont
649           Family        Roman
650           Shape         Italic
651           Size          Normal
652         EndFont
653 End
654
655 # Dataset style definition
656 Style Dataset
657         LeftMargin      MMM
658         Margin          Dynamic
659         LatexType       Command
660         InTitle         0
661         LatexName       dataset
662         ParSkip         0.4
663         BottomSep       0.4
664         Align           Block
665         AlignPossible   Block, Left, Right, Center
666         LabelType       Static
667         LabelSep        M
668         LabelString     "Dataset:"
669         Argument 1
670           LabelString   "Recognized Name"
671           Tooltip       "Separate the dataset ID from text"
672         EndArgument
673         Font
674           Family        Roman
675           Shape         Up
676           Size          Normal
677         EndFont
678         LabelFont
679           Family        Roman
680           Shape         Italic
681           Size          Normal
682         EndFont
683 End
684