]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex.layout
694089a0f76d135d57e9e6b3a8c54583ac67cdf8
[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 68
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 End
434
435
436 # Need reordering below here
437
438 Style NoteToEditor
439         Margin          Dynamic
440         LatexType       Command
441         InTitle         0
442         LatexName       notetoeditor
443         TopSep          1.2
444         ParSkip         0.4
445         BottomSep       0.8
446         Align           Left
447         AlignPossible   Block, Left, Right, Center
448         LabelType       Static
449         LabelSep        M
450         LabelString     "Note to Editor:"
451         Font
452           Family        Roman
453           Size          Normal
454           Shape         Italic
455         EndFont
456 End
457
458
459 Style TableRefs
460         Margin          First_Dynamic
461         LatexType       Command
462         InTitle         0
463         LatexName       tablerefs
464         TopSep          1.2
465         ParSkip         0.4
466         BottomSep       0.8
467         Align           Block
468         AlignPossible   Block, Left, Right, Center
469         LabelType       Static
470         LabelSep        M
471         LabelString     "References. ---"
472         Font
473           Family        Roman
474           Size          Normal
475         EndFont
476 End
477
478
479 Style TableComments
480         Margin          First_Dynamic
481         LatexType       Command
482         InTitle         0
483         LatexName       tablecomments
484         TopSep          1.2
485         ParSkip         0.4
486         BottomSep       0.8
487         Align           Block
488         AlignPossible   Block, Left, Right, Center
489         LabelType       Static
490         LabelSep        M
491         LabelString     "Note. ---"
492         Font
493           Family        Roman
494           Size          Normal
495         EndFont
496 End
497
498
499 Style "Table note"
500         Margin          Dynamic
501         LatexType       Command
502         LatexName       tablenotetext
503         ParSkip         0.4
504         Align           Block
505         LabelSep        xx
506         LabelType       Static
507         LabelString     "Table note:"
508         LabelFont
509           Color         magenta
510         EndFont
511 End
512
513
514 InsetLayout "Flex:tablenotemark"
515         LyxType         custom
516         LatexType       command
517         LatexName       tablenotemark
518         LabelString     "tablenote mark"
519         Font
520           Color         foreground
521           Size          Small
522           Family        Roman
523           Shape         Up
524           Series        Medium
525           Misc          No_Emph
526           Misc          No_Noun
527           Misc          No_Bar
528         EndFont
529         LabelFont
530           Color         magenta
531           Size          Small
532         EndFont
533 End
534
535
536 InsetLayout Caption:FigCaption
537         LabelString     fig.
538         LaTeXType       command
539         LatexName       figcaption
540         MultiPar        false
541         Argument 1
542           LabelString   "Filename"
543           Tooltip       "Filename to identify the corresponding figure file"
544         EndArgument
545         HTMLStyle
546                 div.float-caption {
547                         text-align: center;
548                         border: 2px solid black;
549                         padding: 1ex;
550                         margin: 1ex;
551                 }
552         EndHTMLStyle
553         HTMLAttr "class='float-caption float-caption-figcaption'"
554 End
555
556
557 # Facility style definition
558 Style Facility
559         LeftMargin      MMM
560         Margin          Dynamic
561         LatexType       Command
562         InTitle         0
563         LatexName       facility
564         ParSkip         0.4
565         BottomSep       0.4
566         Align           Block
567         AlignPossible   Block, Left, Right, Center
568         LabelType       Static
569         LabelSep        M
570         LabelString     "Facility:"
571         Font
572           Family        Roman
573           Shape         Up
574           Size          Normal
575         EndFont
576         LabelFont
577           Family        Roman
578           Shape         Italic
579           Size          Normal
580         EndFont
581 End
582
583 # Objectname style definition
584 Style Objectname
585         LeftMargin      MMM
586         Margin          Dynamic
587         LatexType       Command
588         InTitle         0
589         LatexName       objectname
590         ParSkip         0.4
591         BottomSep       0.4
592         Align           Block
593         AlignPossible   Block, Left, Right, Center
594         LabelType       Static
595         LabelSep        M
596         LabelString     "Obj:"
597         Argument 1
598           LabelString   "Recognized Name"
599           Tooltip       "Separate the recognized name of an object from text"
600         EndArgument
601         Font
602           Family        Roman
603           Shape         Up
604           Size          Normal
605         EndFont
606         LabelFont
607           Family        Roman
608           Shape         Italic
609           Size          Normal
610         EndFont
611 End
612
613 # Dataset style definition
614 Style Dataset
615         LeftMargin      MMM
616         Margin          Dynamic
617         LatexType       Command
618         InTitle         0
619         LatexName       dataset
620         ParSkip         0.4
621         BottomSep       0.4
622         Align           Block
623         AlignPossible   Block, Left, Right, Center
624         LabelType       Static
625         LabelSep        M
626         LabelString     "Dataset:"
627         Argument 1
628           LabelString   "Recognized Name"
629           Tooltip       "Separate the dataset ID from text"
630         EndArgument
631         Font
632           Family        Roman
633           Shape         Up
634           Size          Normal
635         EndFont
636         LabelFont
637           Family        Roman
638           Shape         Italic
639           Size          Normal
640         EndFont
641 End
642