]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex.layout
Update layout versions
[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
40 # Note: aastex.cls was replaced by aastex6.cls (v.1 2016/02/16)
41 #       in the CTAN and TeXLive "aastex" package in march 2016.
42 #       The new "aastex6.layout" depends on aastex6.cls but inputs this
43 #       file for the definitions (cf. LyX ticket #10027)
44
45 Format 71
46 Columns                 1
47 Sides                   1
48 #SecNumDepth            3
49 TocDepth                0
50 PageStyle               Plain
51 Provides amsmath        1
52 Provides natbib         1
53 Provides url            1
54
55
56 ClassOptions
57         PageStyle       ""
58 End
59
60
61 Style Standard
62         Category        MainText
63         Margin          Static
64         LatexType       Paragraph
65         LatexName       dummy
66         ParIndent       MM
67         ParSkip         0.4
68         Align           Block
69         AlignPossible   Block, Left, Right, Center
70         LabelType       No_Label
71 End
72
73
74 # OK, now we have a more or less consistent Ordering. Now fill the
75 # definitions. First, the standard includes
76
77 Input stdinsets.inc
78 Input stdsections.inc
79 Input stdtitle.inc
80 Input stdstruct.inc
81 Input stdlists.inc
82 Input stdfloats.inc
83 Input stdcounters.inc
84
85 NoStyle Part
86 NoCounter part
87 NoStyle Chapter
88 NoCounter chapter
89 NoStyle Subparagraph
90 NoCounter subparagraph
91 NoStyle List
92 NoStyle Bibliography
93
94
95 Style Section
96         Align           Center
97         NextNoIndent    0
98         TopSep          2.0
99         BottomSep       1.3
100         Font
101           Series        Bold
102           Size          Normal
103         EndFont
104         TocLevel        1
105 End
106
107
108 Style Subsection
109         Align           Center
110         NextNoIndent    0
111         TopSep          1.7
112         BottomSep       1.1
113         Font
114           Series        Bold
115           Size          Normal
116         EndFont
117         TocLevel        2
118 End
119
120
121 Style Subsubsection
122         Align           Center
123         NextNoIndent    0
124         TopSep          1.7
125         BottomSep       1.1
126         Font
127           Series        Medium
128           Shape         Italic
129           Size          Normal
130         EndFont
131         TocLevel        3
132 End
133
134
135 Style Title
136         TopSep          2
137         BottomSep       1.3
138         Align           Center
139         InTitle         0
140         Font
141           Series        Bold
142           Size          Large
143         EndFont
144 End
145
146
147 Style Author
148         Align           Center
149         LabelType       No_Label
150         InTitle         0
151         Font
152           Size          Normal
153           Series        Medium
154           Shape         SmallCaps
155         EndFont
156 End
157
158
159 Style Affiliation
160         Margin          Static
161         LatexType       Command
162         LatexName       affil
163         Category        FrontMatter
164         ParSkip         0.4
165         BottomSep       0.4
166         Align           Center
167         AlignPossible   Block, Left, Right, Center
168         LabelType       No_Label
169         Font
170           Family        Roman
171           Size          Normal
172         EndFont
173 End
174
175
176 Style Altaffilation
177         Margin          Dynamic
178         LatexType       Command
179         LatexName       altaffiltext
180         Category        FrontMatter
181         ParSkip         0.4
182         Align           Block
183         Argument 1
184           Mandatory     1
185           LabelString   "Number"
186           Tooltip       "Consecutive number for the alternative affiliations"
187           PassThru      1
188         EndArgument
189         LabelSep        xx
190         LabelType       Static
191         LabelString     "Alternative affiliation:"
192         LabelFont
193           Color         green
194         EndFont
195 End
196
197
198 Style Email
199         Margin          Static
200         LatexType       Command
201         InTitle         0
202         LatexName       email
203         Category        FrontMatter
204         ParSkip         0.4
205         BottomSep       0.4
206         Align           Center
207         AlignPossible   Block, Left, Right, Center
208         LabelType       No_Label
209         Font
210           Family        Roman
211           Size          Normal
212           Shape         Italic
213         EndFont
214 End
215
216
217 Style And
218         Margin          Dynamic
219         LatexType       Command
220         InTitle         0
221         LatexName       and
222         Category        FrontMatter
223         TopSep          1.2
224         ParSkip         0.4
225         BottomSep       1.2
226         Align           Center
227         LabelType       Static
228         LabelString     "and"
229         KeepEmpty       1
230         Font
231           Family        Roman
232           Size          Normal
233         EndFont
234 End
235
236
237 Style Date
238         InTitle         0
239         LabelSep        ""
240         TopSep          1.2
241         Align           Center
242         Font
243           Size          Small
244         EndFont
245 End
246
247
248 Style Abstract
249         LeftMargin      "MMM"
250         RightMargin     "MMM"
251         ParIndent       "MM"
252         InTitle         0
253         TopSep          1.4
254         BottomSep       0.7
255         LabelType       Centered
256         Align           Block
257         AlignPossible   Block, Left, Right, Center
258         Font
259           Size          Normal
260         EndFont
261         LabelFont
262           Series        Bold
263           Size          Normal
264         EndFont
265 End
266
267
268 InsetLayout "Flex:altaffilmark"
269         LyxType         custom
270         LatexType       command
271         LatexName       altaffilmark
272         LabelString     "altaffiliation mark"
273         Font
274           Color         foreground
275           Size          Small
276           Family        Roman
277           Shape         Up
278           Series        Medium
279           Misc          No_Emph
280           Misc          No_Noun
281           Misc          No_Bar
282         EndFont
283         LabelFont
284           Color         green
285           Size          Small
286         EndFont
287 End
288
289
290 Style Keywords
291         LeftMargin      MMM
292         Margin          Dynamic
293         LatexType       Command
294         InTitle         0
295         LatexName       keywords
296         Category        FrontMatter
297         ParSkip         0.4
298         BottomSep       0.4
299         Align           Block
300         AlignPossible   Block, Left, Right, Center
301         LabelType       Static
302         LabelSep        M
303         LabelString     "Subject headings:"
304         Font
305           Family        Roman
306           Shape         Up
307           Size          Normal
308         EndFont
309         LabelFont
310           Family        Roman
311           Shape         Italic
312           Size          Normal
313         EndFont
314 End
315
316
317 Style Acknowledgements
318         Category        BackMatter
319         Margin          Dynamic
320         LatexType       Command
321         InTitle         0
322         LatexName       acknowledgements
323         TopSep          1.2
324         ParSkip         0.4
325         BottomSep       0.8
326         Align           Left
327         LabelType       Static
328         LabelString     "[Acknowledgements]"
329         KeepEmpty       1
330         Font
331           Family        Roman
332           Size          Normal
333           Shape         Italic
334         EndFont
335 End
336
337
338 Style PlaceFigure
339         Margin          Dynamic
340         LatexType       Command
341         InTitle         0
342         LatexName       placefigure
343         TopSep          1.2
344         ParSkip         0.4
345         BottomSep       0.8
346         Align           Left
347         LabelType       Static
348         LabelSep        M
349         LabelString     "Place Figure here:"
350         Font
351           Family        Roman
352           Size          Normal
353           Shape         Italic
354         EndFont
355 End
356
357
358 Style PlaceTable
359         Margin          Dynamic
360         LatexType       Command
361         InTitle         0
362         LatexName       placetable
363         TopSep          1.2
364         ParSkip         0.4
365         BottomSep       0.8
366         Align           Left
367         LabelType       Static
368         LabelSep        M
369         LabelString     "Place Table here:"
370         Font
371           Family        Roman
372           Size          Normal
373           Shape         Italic
374         EndFont
375 End
376
377
378 Style Appendix
379         Margin          Dynamic
380         LatexType       Command
381         LatexName       appendix
382         Category        BackMatter
383         TopSep          1.2
384         ParSkip         0.4
385         BottomSep       0.8
386         Align           Left
387         LabelType       Static
388         LabelString     "[Appendix]"
389         KeepEmpty       1
390         Font
391           Family        Roman
392           Size          Normal
393           Shape         Italic
394         EndFont
395 End
396
397
398 Style MathLetters
399         LatexType       Environment
400         LatexName       mathletters
401         LabelType       No_Label
402         Align           Block
403         AlignPossible   Block, Left, Right, Center
404         Font
405           Size          Normal
406         EndFont
407 End
408
409
410 Style References
411         Margin          First_Dynamic
412         LatexType       Bib_Environment
413         LatexName       thebibliography
414         Category        BackMatter
415         NextNoIndent    1
416         ToggleIndent    Never
417         LeftMargin      MM
418         ParSkip         0.4
419         ItemSep         0
420         TopSep          0.7
421         BottomSep       0.7
422         ParSep          0.5
423         LabelType       Bibliography
424         LabelString     "References"
425         LabelBottomSep  0.7
426         Align           Block
427         AlignPossible   Block, Left, Right, Center
428         LabelFont
429           Family        Roman
430           Size          Normal
431           Series        Bold
432         EndFont
433         Argument listpreamble:1
434           LabelString    "Bib preamble"
435           MenuString     "Bibliography Preamble"
436           Tooltip        "LaTeX code to be inserted before the first bibliography item"
437           PassThru       1
438           Font
439             Family typewriter
440             Color latex
441           EndFont
442         EndArgument
443 End
444
445
446 # Need reordering below here
447
448 Style NoteToEditor
449         Margin          Dynamic
450         LatexType       Command
451         InTitle         0
452         LatexName       notetoeditor
453         TopSep          1.2
454         ParSkip         0.4
455         BottomSep       0.8
456         Align           Left
457         AlignPossible   Block, Left, Right, Center
458         LabelType       Static
459         LabelSep        M
460         LabelString     "Note to Editor:"
461         Font
462           Family        Roman
463           Size          Normal
464           Shape         Italic
465         EndFont
466 End
467
468
469 Style TableRefs
470         Margin          First_Dynamic
471         LatexType       Command
472         InTitle         0
473         LatexName       tablerefs
474         TopSep          1.2
475         ParSkip         0.4
476         BottomSep       0.8
477         Align           Block
478         AlignPossible   Block, Left, Right, Center
479         LabelType       Static
480         LabelSep        M
481         LabelString     "References. ---"
482         Font
483           Family        Roman
484           Size          Normal
485         EndFont
486 End
487
488
489 Style TableComments
490         Margin          First_Dynamic
491         LatexType       Command
492         InTitle         0
493         LatexName       tablecomments
494         TopSep          1.2
495         ParSkip         0.4
496         BottomSep       0.8
497         Align           Block
498         AlignPossible   Block, Left, Right, Center
499         LabelType       Static
500         LabelSep        M
501         LabelString     "Note. ---"
502         Font
503           Family        Roman
504           Size          Normal
505         EndFont
506 End
507
508
509 Style "Table note"
510         Margin          Dynamic
511         LatexType       Command
512         LatexName       tablenotetext
513         ParSkip         0.4
514         Align           Block
515         LabelSep        xx
516         LabelType       Static
517         LabelString     "Table note:"
518         LabelFont
519           Color         magenta
520         EndFont
521 End
522
523
524 InsetLayout "Flex:tablenotemark"
525         LyxType         custom
526         LatexType       command
527         LatexName       tablenotemark
528         LabelString     "tablenote mark"
529         Font
530           Color         foreground
531           Size          Small
532           Family        Roman
533           Shape         Up
534           Series        Medium
535           Misc          No_Emph
536           Misc          No_Noun
537           Misc          No_Bar
538         EndFont
539         LabelFont
540           Color         magenta
541           Size          Small
542         EndFont
543 End
544
545
546 InsetLayout Caption:FigCaption
547         LabelString     fig.
548         LaTeXType       command
549         LatexName       figcaption
550         MultiPar        false
551         Argument 1
552           LabelString   "Filename"
553           Tooltip       "Filename to identify the corresponding figure file"
554         EndArgument
555         HTMLStyle
556                 div.float-caption {
557                         text-align: center;
558                         border: 2px solid black;
559                         padding: 1ex;
560                         margin: 1ex;
561                 }
562         EndHTMLStyle
563         HTMLAttr "class='float-caption float-caption-figcaption'"
564 End
565
566
567 # Facility style definition
568 Style Facility
569         LeftMargin      MMM
570         Margin          Dynamic
571         LatexType       Command
572         InTitle         0
573         LatexName       facility
574         ParSkip         0.4
575         BottomSep       0.4
576         Align           Block
577         AlignPossible   Block, Left, Right, Center
578         LabelType       Static
579         LabelSep        M
580         LabelString     "Facility:"
581         Font
582           Family        Roman
583           Shape         Up
584           Size          Normal
585         EndFont
586         LabelFont
587           Family        Roman
588           Shape         Italic
589           Size          Normal
590         EndFont
591 End
592
593 # Objectname style definition
594 Style Objectname
595         LeftMargin      MMM
596         Margin          Dynamic
597         LatexType       Command
598         InTitle         0
599         LatexName       objectname
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     "Obj:"
607         Argument 1
608           LabelString   "Recognized Name"
609           Tooltip       "Separate the recognized name of an object from text"
610         EndArgument
611         Font
612           Family        Roman
613           Shape         Up
614           Size          Normal
615         EndFont
616         LabelFont
617           Family        Roman
618           Shape         Italic
619           Size          Normal
620         EndFont
621 End
622
623 # Dataset style definition
624 Style Dataset
625         LeftMargin      MMM
626         Margin          Dynamic
627         LatexType       Command
628         InTitle         0
629         LatexName       dataset
630         ParSkip         0.4
631         BottomSep       0.4
632         Align           Block
633         AlignPossible   Block, Left, Right, Center
634         LabelType       Static
635         LabelSep        M
636         LabelString     "Dataset:"
637         Argument 1
638           LabelString   "Recognized Name"
639           Tooltip       "Separate the dataset ID from text"
640         EndArgument
641         Font
642           Family        Roman
643           Shape         Up
644           Size          Normal
645         EndFont
646         LabelFont
647           Family        Roman
648           Shape         Italic
649           Size          Normal
650         EndFont
651 End
652