]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex62.layout
Correct version number
[lyx.git] / lib / layouts / aastex62.layout
1 #% Do not delete the line below; configure depends on this
2 #\DeclareLaTeXClass[aastex62,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX v. 6.2)}
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 # Version 6.0   31/03/16 - Stub for AASTeX 6.0:
41 #                          new layout file aastex6.layout, because
42 #                          aastex.cls was renamed to aastex6.cls (2016/02/16)
43 #                          (cf. LyX ticket #10027)
44 #
45 # Version 6.2   14/08/18 - Stub for AASTeX 6.2:
46 #                          new layout file aastex62.layout, because
47 #                          aastex6.cls was renamed to aastex62.cls (2017/10/16)
48 #
49 # TODO: - support for new commands (see below)
50 #       - aastex6.cls loads hyperref (with pre-set options) and url
51 #         -> option clash if "Use Hyerref" is selected in Document>Settings
52
53 Format 82
54
55 Provides hyperref 1
56
57 Preamble
58         \newcommand{\vdag}{(v)^\dagger}
59         \newcommand\aastex{AAS\TeX}
60 EndPreamble
61
62 Input           aastex.layout
63
64
65 # For new and updated commands, see
66 # http://journals.aas.org/authors/aastex/revisionhistory.html
67
68 ## New commands:
69
70 Style Software
71         CopyStyle       Keywords
72         LatexName       software
73         Margin          Static
74         LeftMargin      M
75         TopSep          0.7
76         LabelType       Above
77         LabelString     "Software:"
78         LabelFont
79                 Shape           Italic
80         EndFont
81         
82 End
83
84 # other new commands are mainly for the user preamble
85
86 ## Updated commands:
87
88 # TODO: dataset should become an inset similar to hyperref:
89 #
90 #   Use the \dataset command to link to data sets hosted externally
91 #   such as the DOI issuing Zenodo repository.
92 #
93 #      \dataset[text]{url}
94 #
95 #   Where url is the URL link to the data. The bracketed argument is optional.
96 #   When present the given text is used as the displayed hyperlink otherwise
97 #   [DATASET] is printed.
98
99
100 # Fixes for aastex.layout
101
102 # TODO: first/second arg for tablenotetext to replace ERT "}{"
103 #       Show "figcaption" label instead of "Senseless!!!"
104
105 # match label to output
106 Style Appendix
107         Margin          Static
108         #       LeftMargin      ""
109         LabelType       Centered
110         LabelString     "APPENDIX"
111 End
112
113 Style TableRefs
114         LabelString     "References-"
115         LabelFont
116                 Series          Bold
117         EndFont
118 End
119
120 Style TableComments
121         LabelString     "Note-"
122 End
123
124 # Added for aastex62
125
126 Style Corresponding_Author
127         Category        FrontMatter
128         LatexType       Command
129         LatexName       correspondingauthor
130         LabelType       Static
131         Margin          Dynamic
132         LabelString     "Corresponding author:"
133         LabelSep        "x"
134 End
135
136 Style Keywords
137         LabelString     "Keywords:"
138 End
139
140 Style Email
141         Align           Left
142         Font
143                 Shape           Up
144                 Color           Blue
145                 Size            Small
146         EndFont
147 End
148
149 Style Author
150         LabelType       Static
151         LabelString     "Author:"
152         LabelFont
153                 Shape           Italic
154                 Color           Green
155         EndFont
156         Argument 1
157                 LabelString     ORCID
158                 ToolTip         "Enter the 16 digit ORCID as xxxx-xxxx-xxxx-xxxx"
159         EndArgument
160         Align           Center
161         Margin          Dynamic
162 End
163
164 Style Affiliation
165         LabelType       Static
166         Margin          Dynamic
167         LabelString     "Affiliation:"
168         LatexName       affiliation
169         LabelSep        "x"
170         LabelFont
171                 Shape           Italic
172                 Color           Green
173         EndFont
174         Align           Center
175 End
176
177 Style Collaboration
178         Category        FrontMatter
179         LatexType       Command
180         LatexName       collaboration
181         
182         LabelType       Static
183         Margin          Dynamic
184         LabelString     "Collaboration:"
185         LabelSep        "x"
186         LabelFont
187                 Shape           Italic
188                 Color           Green
189         EndFont
190         Align           Center
191 End
192
193 Style Nocollaboration
194         Category        FrontMatter
195         LatexType       Command
196         LatexName       nocollaboration
197         LabelType       Static
198         Align           Center
199         Margin          Dynamic
200         LabelString     "No collaboration"
201         KeepEmpty       1
202         LabelSep        "x"
203         LabelFont
204                 Shape           Italic
205                 Color           Green
206         EndFont
207 End
208
209 Style Altaffilation
210         LatexName       altaffiliation
211         ResetArgs       1
212         Align           Center
213 End
214
215 Style Acknowledgements
216         Font
217                 Shape           Up
218         EndFont
219         LabelType       Above
220         Margin          Static
221         LabelFont
222                 Color           Green
223         EndFont
224 End
225
226 Counter appendix
227         GuiName Appendix
228         Within          "none"
229 End
230
231 Style Section_Appendix
232         CopyStyle       Section
233         Category        Appendix
234         LabelCounter    appendix
235         LabelString     "\Alph{appendix}."
236         Font
237                 Series          Medium
238                 Shape           Up
239         EndFont
240 End
241
242 Counter subappendix
243         GuiName Subappendix
244         Within          "appendix"
245 End
246
247 Style Subsection_Appendix
248         CopyStyle       Subsection
249         Category        Appendix
250         LabelCounter    subappendix
251         LabelString     "\Alph{appendix}\arabic{subappendix}."
252         Font
253                 Series          Medium
254                 Shape           Italic
255         EndFont
256 End
257
258 Counter subsubappendix
259         GuiName Subsubappendix
260         Within          subappendix
261 End
262
263 Style Subsubsection_Appendix
264         CopyStyle       Subsubsection
265         Category        Appendix
266         LabelCounter    subsubappendix
267         LabelString     "\Alph{appendix}\arabic{subappendix}.\arabic{subsubappendix}."
268         Font
269                 Series          Medium
270         EndFont
271 End
272
273 NoStyle         And
274 NoInsetLayout   Flex:altaffilmark