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