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