]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex62.layout
dfdb970cbcaffae901a41c3dbfaa034cccc4ba2b
[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          68
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         Within          "none"
228 End
229
230 Style Section_Appendix
231         CopyStyle       Section
232         Category        Appendix
233         LabelCounter    appendix
234         LabelString     "\Alph{appendix}."
235         Font
236                 Series          Medium
237                 Shape           Up
238         EndFont
239 End
240
241 Counter subappendix
242         Within          "appendix"
243 End
244
245 Style Subsection_Appendix
246         CopyStyle       Subsection
247         Category        Appendix
248         LabelCounter    subappendix
249         LabelString     "\Alph{appendix}\arabic{subappendix}."
250         Font
251                 Series          Medium
252                 Shape           Italic
253         EndFont
254 End
255
256 Counter subsubappendix
257         Within          subappendix
258 End
259
260 Style Subsubsection_Appendix
261         CopyStyle       Subsubsection
262         Category        Appendix
263         LabelCounter    subsubappendix
264         LabelString     "\Alph{appendix}\arabic{subappendix}.\arabic{subsubappendix}."
265         Font
266                 Series          Medium
267         EndFont
268 End
269
270 NoStyle         And
271 NoInsetLayout   Flex:altaffilmark