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