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