]> git.lyx.org Git - features.git/blob - lib/layouts/aastex.layout
aastex: fix optional argument of a command
[features.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)}
3 #  \DeclareCategory{Articles}
4 #
5 # Author: Mike Ressler <mike.ressler@alum.mit.edu>
6 # Author: Uwe Stöhr <uwestoehr@web.de>
7 #
8 # Disclaimer: Though I am an astronomer at the Jet Propulsion Laboratory, this
9 # package was prepared on my own time on my own machine. Neither the United
10 # States government, the National Aeronautics and Space Administration, the
11 # California Institute of Technology, the American Astronomical Society, nor
12 # the Jet Propulsion Laboratory endorse this package - indeed, they probably
13 # don't even know of it's existence. Use of this package is covered by the LyX
14 # license which is found in the file COPYING in the root directory of the LyX
15 # distribution.
16 #
17 # Version 0.0   5/27/99  - Initial submission, basic LaTeX equivalents
18 # Version 0.1   6/04/99  - Most everything in sections 2.1-2.11 of AASTeX guide
19 #                          works. References work with some ERT. Regular tables
20 #                          (2.14) okay, deluxetable will never be supported.
21 #                          Figures (2.13) not even attempted yet. Misc (2.15)
22 #                          partially supported, but much will remain ERT.
23 #                          Style options (section 3) can be typed into Extra
24 #                          Document options.
25 #                          Much cleaning of this file needs to be done.
26 # Version 1.0   6/09/99  - Implemented remaining commands as well as possible.
27 #                          There is little more I can do unless LyX source code
28 #                          is changed. (Not by me!) Documentation, template, and
29 #                          example files are available.
30 # Version 1.1   7/25/99  - Changed \url to take advantage of new layout option.
31 # Version 1.2   4/18/02  - Updated for natbib in 1.2.0
32 # Version 1.3   5/7/04   - Updated for AASTeX 5.2
33 # Version 1.4   26/10/08 - new custom insets for \altaffilmark, \tablenotemark
34 #                        - new environments for \altaffiltext and \tablenotetext
35 # Version 1.5   26/11/12 - added mandatory argument for \altaffiltext
36 # Version 1.6   23/01/15 - fix for the optional argument of \figcaption
37
38
39 Format 54
40 Columns                 1
41 Sides                   1
42 #SecNumDepth            3
43 TocDepth                0
44 PageStyle               Plain
45 Provides amsmath        1
46 Provides natbib         1
47 Provides url            1
48
49
50 ClassOptions
51         PageStyle       ""
52 End
53
54
55 Style Standard
56         Category        MainText
57         Margin          Static
58         LatexType       Paragraph
59         LatexName       dummy
60         ParIndent       MM
61         ParSkip         0.4
62         Align           Block
63         AlignPossible   Block, Left, Right, Center
64         LabelType       No_Label
65 End
66
67
68 # OK, now we have a more or less consistent Ordering. Now fill the
69 # definitions. First, the standard includes
70
71 Input stdinsets.inc
72 Input stdsections.inc
73 Input stdtitle.inc
74 Input stdstruct.inc
75 Input stdlists.inc
76 Input stdfloats.inc
77 Input stdcounters.inc
78
79 NoStyle Part
80 NoCounter part
81 NoStyle Chapter
82 NoCounter chapter
83 NoStyle Subparagraph
84 NoCounter subparagraph
85 NoStyle List
86 NoStyle Bibliography
87
88
89 Style Section
90         Align           Center
91         NextNoIndent    0
92         TopSep          2.0
93         BottomSep       1.3
94         Font
95           Series        Bold
96           Size          Normal
97         EndFont
98         TocLevel        1
99 End
100
101
102 Style Subsection
103         Align           Center
104         NextNoIndent    0
105         TopSep          1.7
106         BottomSep       1.1
107         Font
108           Series        Bold
109           Size          Normal
110         EndFont
111         TocLevel        2
112 End
113
114
115 Style Subsubsection
116         Align           Center
117         NextNoIndent    0
118         TopSep          1.7
119         BottomSep       1.1
120         Font
121           Series        Medium
122           Shape         Italic
123           Size          Normal
124         EndFont
125         TocLevel        3
126 End
127
128
129 Style Title
130         TopSep          2
131         BottomSep       1.3
132         Align           Center
133         InTitle         0
134         Font
135           Series        Bold
136           Size          Large
137         EndFont
138 End
139
140
141 Style Author
142         Align           Center
143         LabelType       No_Label
144         InTitle         0
145         Font
146           Size          Normal
147           Series        Medium
148           Shape         SmallCaps
149         EndFont
150 End
151
152
153 Style Affiliation
154         Margin          Static
155         LatexType       Command
156         LatexName       affil
157         Category        FrontMatter
158         ParSkip         0.4
159         BottomSep       0.4
160         Align           Center
161         AlignPossible   Block, Left, Right, Center
162         LabelType       No_Label
163         Font
164           Family        Roman
165           Size          Normal
166         EndFont
167 End
168
169
170 Style Altaffilation
171         Margin          Dynamic
172         LatexType       Command
173         LatexName       altaffiltext
174         Category        FrontMatter
175         ParSkip         0.4
176         Align           Block
177         Argument 1
178           Mandatory     1
179           LabelString   "Number"
180           Tooltip       "Consecutive number for the alternative affiliations"
181         EndArgument
182         LabelSep        xx
183         LabelType       Static
184         LabelString     "Alternative affiliation:"
185         LabelFont
186           Color         green
187         EndFont
188 End
189
190
191 Style Email
192         Margin          Static
193         LatexType       Command
194         InTitle         0
195         LatexName       email
196         Category        FrontMatter
197         ParSkip         0.4
198         BottomSep       0.4
199         Align           Center
200         AlignPossible   Block, Left, Right, Center
201         LabelType       No_Label
202         Font
203           Family        Roman
204           Size          Normal
205           Shape         Italic
206         EndFont
207 End
208
209
210 Style And
211         Margin          Dynamic
212         LatexType       Command
213         InTitle         0
214         LatexName       and
215         Category        FrontMatter
216         TopSep          1.2
217         ParSkip         0.4
218         BottomSep       1.2
219         Align           Center
220         LabelType       Static
221         LabelString     "and"
222         KeepEmpty       1
223         Font
224           Family        Roman
225           Size          Normal
226         EndFont
227 End
228
229
230 Style Date
231         InTitle         0
232         LabelSep        ""
233         TopSep          1.2
234         Align           Center
235         Font
236           Size          Small
237         EndFont
238 End
239
240
241 Style Abstract
242         LeftMargin      "MMM"
243         RightMargin     "MMM"
244         ParIndent       "MM"
245         InTitle         0
246         TopSep          1.4
247         BottomSep       0.7
248         LabelType       Centered
249         Align           Block
250         AlignPossible   Block, Left, Right, Center
251         Font
252           Size          Normal
253         EndFont
254         LabelFont
255           Series        Bold
256           Size          Normal
257         EndFont
258 End
259
260
261 InsetLayout "Flex:altaffilmark"
262         LyxType         custom
263         LatexType       command
264         LatexName       altaffilmark
265         LabelString     "altaffiliation mark"
266         Font
267           Color         foreground
268           Size          Small
269           Family        Roman
270           Shape         Up
271           Series        Medium
272           Misc          No_Emph
273           Misc          No_Noun
274           Misc          No_Bar
275         EndFont
276         LabelFont
277           Color         green
278           Size          Small
279         EndFont
280 End
281
282
283 Style Keywords
284         LeftMargin      MMM
285         Margin          Dynamic
286         LatexType       Command
287         InTitle         0
288         LatexName       keywords
289         Category        FrontMatter
290         ParSkip         0.4
291         BottomSep       0.4
292         Align           Block
293         AlignPossible   Block, Left, Right, Center
294         LabelType       Static
295         LabelSep        M
296         LabelString     "Subject headings:"
297         Font
298           Family        Roman
299           Shape         Up
300           Size          Normal
301         EndFont
302         LabelFont
303           Family        Roman
304           Shape         Italic
305           Size          Normal
306         EndFont
307 End
308
309
310 Style Acknowledgements
311         Category        BackMatter
312         Margin          Dynamic
313         LatexType       Command
314         InTitle         0
315         LatexName       acknowledgements
316         TopSep          1.2
317         ParSkip         0.4
318         BottomSep       0.8
319         Align           Left
320         LabelType       Static
321         LabelString     "[Acknowledgements]"
322         KeepEmpty       1
323         Font
324           Family        Roman
325           Size          Normal
326           Shape         Italic
327         EndFont
328 End
329
330
331 Style PlaceFigure
332         Margin          Dynamic
333         LatexType       Command
334         InTitle         0
335         LatexName       placefigure
336         TopSep          1.2
337         ParSkip         0.4
338         BottomSep       0.8
339         Align           Left
340         LabelType       Static
341         LabelSep        M
342         LabelString     "Place Figure here:"
343         Font
344           Family        Roman
345           Size          Normal
346           Shape         Italic
347         EndFont
348 End
349
350
351 Style PlaceTable
352         Margin          Dynamic
353         LatexType       Command
354         InTitle         0
355         LatexName       placetable
356         TopSep          1.2
357         ParSkip         0.4
358         BottomSep       0.8
359         Align           Left
360         LabelType       Static
361         LabelSep        M
362         LabelString     "Place Table here:"
363         Font
364           Family        Roman
365           Size          Normal
366           Shape         Italic
367         EndFont
368 End
369
370
371 Style Appendix
372         Margin          Dynamic
373         LatexType       Command
374         LatexName       appendix
375         Category        BackMatter
376         TopSep          1.2
377         ParSkip         0.4
378         BottomSep       0.8
379         Align           Left
380         LabelType       Static
381         LabelString     "[Appendix]"
382         KeepEmpty       1
383         Font
384           Family        Roman
385           Size          Normal
386           Shape         Italic
387         EndFont
388 End
389
390
391 Style MathLetters
392         LatexType       Environment
393         LatexName       mathletters
394         LabelType       No_Label
395         Align           Block
396         AlignPossible   Block, Left, Right, Center
397         Font
398           Size          Normal
399         EndFont
400 End
401
402
403 Style References
404         Margin          First_Dynamic
405         LatexType       Bib_Environment
406         LatexName       thebibliography
407         Category        BackMatter
408         NextNoIndent    1
409         ToggleIndent    Never
410         LeftMargin      MM
411         ParSkip         0.4
412         ItemSep         0
413         TopSep          0.7
414         BottomSep       0.7
415         ParSep          0.5
416         LabelType       Bibliography
417         LabelString     "References"
418         LabelBottomSep  0.7
419         Align           Block
420         AlignPossible   Block, Left, Right, Center
421         LabelFont
422           Family        Roman
423           Size          Normal
424           Series        Bold
425         EndFont
426 End
427
428
429 # Need reordering below here
430
431 Style NoteToEditor
432         Margin          Dynamic
433         LatexType       Command
434         InTitle         0
435         LatexName       notetoeditor
436         TopSep          1.2
437         ParSkip         0.4
438         BottomSep       0.8
439         Align           Left
440         AlignPossible   Block, Left, Right, Center
441         LabelType       Static
442         LabelSep        M
443         LabelString     "Note to Editor:"
444         Font
445           Family        Roman
446           Size          Normal
447           Shape         Italic
448         EndFont
449 End
450
451
452 Style TableRefs
453         Margin          First_Dynamic
454         LatexType       Command
455         InTitle         0
456         LatexName       tablerefs
457         TopSep          1.2
458         ParSkip         0.4
459         BottomSep       0.8
460         Align           Block
461         AlignPossible   Block, Left, Right, Center
462         LabelType       Static
463         LabelSep        M
464         LabelString     "References. ---"
465         Font
466           Family        Roman
467           Size          Normal
468         EndFont
469 End
470
471
472 Style TableComments
473         Margin          First_Dynamic
474         LatexType       Command
475         InTitle         0
476         LatexName       tablecomments
477         TopSep          1.2
478         ParSkip         0.4
479         BottomSep       0.8
480         Align           Block
481         AlignPossible   Block, Left, Right, Center
482         LabelType       Static
483         LabelSep        M
484         LabelString     "Note. ---"
485         Font
486           Family        Roman
487           Size          Normal
488         EndFont
489 End
490
491
492 Style "Table note"
493         Margin          Dynamic
494         LatexType       Command
495         LatexName       tablenotetext
496         ParSkip         0.4
497         Align           Block
498         LabelSep        xx
499         LabelType       Static
500         LabelString     "Table note:"
501         LabelFont
502           Color         magenta
503         EndFont
504 End
505
506
507 InsetLayout "Flex:tablenotemark"
508         LyxType         custom
509         LatexType       command
510         LatexName       tablenotemark
511         LabelString     "tablenote mark"
512         Font
513           Color         foreground
514           Size          Small
515           Family        Roman
516           Shape         Up
517           Series        Medium
518           Misc          No_Emph
519           Misc          No_Noun
520           Misc          No_Bar
521         EndFont
522         LabelFont
523           Color         magenta
524           Size          Small
525         EndFont
526 End
527
528
529 InsetLayout Caption:FigCaption
530         LabelString     fig.
531         LaTeXType       command
532         LatexName       figcaption
533         Argument 1
534           LabelString   "Filename"
535           Tooltip       "Filename to identify the corresponding figure file"
536         EndArgument
537         HTMLStyle
538                 div.float-caption {
539                         text-align: center;
540                         border: 2px solid black;
541                         padding: 1ex;
542                         margin: 1ex;
543                 }
544         EndHTMLStyle
545         HTMLAttr "class='float-caption float-caption-figcaption'"
546 End
547
548
549 # Facility style definition
550 Style Facility
551         LeftMargin      MMM
552         Margin          Dynamic
553         LatexType       Command
554         InTitle         0
555         LatexName       facility
556         ParSkip         0.4
557         BottomSep       0.4
558         Align           Block
559         AlignPossible   Block, Left, Right, Center
560         LabelType       Static
561         LabelSep        M
562         LabelString     "Facility:"
563         Font
564           Family        Roman
565           Shape         Up
566           Size          Normal
567         EndFont
568         LabelFont
569           Family        Roman
570           Shape         Italic
571           Size          Normal
572         EndFont
573 End
574
575 # Objectname style definition
576 Style Objectname
577         LeftMargin      MMM
578         Margin          Dynamic
579         LatexType       Command
580         InTitle         0
581         LatexName       objectname
582         ParSkip         0.4
583         BottomSep       0.4
584         Align           Block
585         AlignPossible   Block, Left, Right, Center
586         LabelType       Static
587         LabelSep        M
588         LabelString     "Obj:"
589         Argument 1
590           LabelString   "Recognized Name"
591           Tooltip       "Separate the recognized name of an object from text"
592         EndArgument
593         Font
594           Family        Roman
595           Shape         Up
596           Size          Normal
597         EndFont
598         LabelFont
599           Family        Roman
600           Shape         Italic
601           Size          Normal
602         EndFont
603 End
604
605 # Dataset style definition
606 Style Dataset
607         LeftMargin      MMM
608         Margin          Dynamic
609         LatexType       Command
610         InTitle         0
611         LatexName       dataset
612         ParSkip         0.4
613         BottomSep       0.4
614         Align           Block
615         AlignPossible   Block, Left, Right, Center
616         LabelType       Static
617         LabelSep        M
618         LabelString     "Dataset:"
619         Argument 1
620           LabelString   "Recognized Name"
621           Tooltip       "Separate the dataset ID from text"
622         EndArgument
623         Font
624           Family        Roman
625           Shape         Up
626           Size          Normal
627         EndFont
628         LabelFont
629           Family        Roman
630           Shape         Italic
631           Size          Normal
632         EndFont
633 End
634