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