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