]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex63.layout
Amend 207eaeee9071cb
[lyx.git] / lib / layouts / aastex63.layout
1 #% Do not delete the line below; configure depends on this
2 #\DeclareLaTeXClass[aastex631,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX v. 6.3.1)}
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 # Version 6.3   04/03/24 - Stub for AASTeX 6.31:
50 #                          new layout file aastex631.layout, because
51 #                          aastex62.cls was renamed to aastex631.cls (2021/09/16)
52 ##
53 # TODO: - support for new commands (see below)
54 #       - aastex6.cls loads hyperref (with pre-set options) and url
55 #         -> option clash if "Use Hyperref" is selected in Document>Settings
56 # support for new commands in aastex 6.3 and aastex 6.31 versions
57 # string freeze for lyx-2.4.0, must be done for lyx-2.4.1
58 #       - in DocBook, the appendix is not output (not a standard LyX appendix
59 #         separator (needs a layout update)
60 #       - in DocBook, the "Software" part should really be a section on its own,
61 #         but that would require a way to provide the section title within the
62 #         layout (needs a layout update)
63 #       - in DocBook, the table notes are not supported at all (move the remarks
64 #         into the table cells instead of outputting tablenotemark in the cells?)
65
66 Format 104
67
68 Provides hyperref 1
69
70 Preamble
71         \newcommand{\vdag}{(v)^\dagger}
72         \newcommand\aastex{AAS\TeX}
73 EndPreamble
74
75 Input           aastex.layout
76
77
78 # For new and updated commands, see
79 # http://journals.aas.org/authors/aastex/revisionhistory.html
80
81 ## New commands:
82
83 Style Software
84         CopyStyle       Keywords
85         LatexName       software
86         Margin          Static
87         LeftMargin      M
88         TopSep          0.7
89         LabelType       Above
90         LabelString     "Software:"
91         LabelFont
92                 Shape           Italic
93         EndFont
94         DocBookTag      remark
95         DocBookAttr     role='software'
96         # Override what's taken from Keywords, but not really wanted.
97         DocBookWrapperTag   NONE
98         DocBookInInfo       never
99 End
100
101 # other new commands are mainly for the user preamble
102
103 ## Updated commands:
104
105 # TODO: dataset should become an inset similar to hyperref:
106 #
107 #   Use the \dataset command to link to data sets hosted externally
108 #   such as the DOI issuing Zenodo repository.
109 #
110 #      \dataset[text]{url}
111 #
112 #   Where url is the URL link to the data. The bracketed argument is optional.
113 #   When present the given text is used as the displayed hyperlink otherwise
114 #   [DATASET] is printed.
115
116
117 # Fixes for aastex.layout
118
119 # TODO: first/second arg for tablenotetext to replace ERT "}{"
120 #       Show "figcaption" label instead of "Senseless!!!"
121
122 # match label to output
123 Style Appendix
124         Margin          Static
125         #       LeftMargin      ""
126         LabelType       Centered
127         LabelString     "APPENDIX"
128 End
129
130 Style TableRefs
131         LabelString     "References-"
132         LabelFont
133                 Series          Bold
134         EndFont
135 End
136
137 Style TableComments
138         LabelString     "Note-"
139 End
140
141 # Added for aastex62
142
143 Style Corresponding_Author
144         Category        FrontMatter
145         LatexType       Command
146         LatexName       correspondingauthor
147         LabelType       Static
148         Margin          Dynamic
149         LabelString     "Corresponding author:"
150         LabelSep        "x"
151 End
152
153 Style Keywords
154         LabelString     "Keywords:"
155 End
156
157 Style Email
158         Align           Left
159         Font
160                 Shape           Up
161                 Color           textlabel1
162                 Size            Small
163         EndFont
164 End
165
166 Style Author
167         LabelType       Static
168         LabelString     "Author:"
169         LabelFont
170                 Shape           Italic
171                 Color           textlabel2
172         EndFont
173         Argument 1
174                 LabelString     ORCID
175                 ToolTip         "Enter the 16 digit ORCID as xxxx-xxxx-xxxx-xxxx"
176                 # TODO: In DocBook, this cannot be in the <personname>, it must be directly within <author>.
177         EndArgument
178         Align           Center
179         Margin          Dynamic
180         DocBookTag            personname
181         DocBookTagType        paragraph
182         DocBookWrapperTag     author
183         DocBookWrapperTagType inline
184         DocBookInInfo         always
185 End
186
187 Style Affiliation
188         LabelType       Static
189         Margin          Dynamic
190         LabelString     "Affiliation:"
191         LatexName       affiliation
192         LabelSep        "x"
193         LabelFont
194                 Shape           Italic
195                 Color           textlabel2
196         EndFont
197         Align           Center
198 End
199
200 Style Collaboration
201         Category        FrontMatter
202         LatexType       Command
203         LatexName       collaboration
204         
205         LabelType       Static
206         Margin          Dynamic
207         LabelString     "Collaboration:"
208         LabelSep        "x"
209         LabelFont
210                 Shape           Italic
211                 Color           textlabel2
212         EndFont
213         Align           Center
214 End
215
216 Style Nocollaboration
217         Category        FrontMatter
218         LatexType       Command
219         LatexName       nocollaboration
220         LabelType       Static
221         Align           Center
222         Margin          Dynamic
223         LabelString     "No collaboration"
224         KeepEmpty       1
225         LabelSep        "x"
226         LabelFont
227                 Shape           Italic
228                 Color           textlabel2
229         EndFont
230 End
231
232 Style Altaffilation
233         LatexName       altaffiliation
234         ResetArgs       1
235         Align           Center
236 End
237
238 Style Acknowledgments
239         Font
240                 Shape           Up
241         EndFont
242         LabelType           Above
243         Margin              Static
244         LabelFont
245                 Color           textlabel2
246         EndFont
247         DocBookTag          para
248         DocBookWrapperTag   acknowledgements
249         DocBookSection      true
250 End
251
252 Counter appendix
253         GuiName Appendix
254         Within          "none"
255 End
256
257 Style Section_Appendix
258         CopyStyle       Section
259         Category        Appendix
260         LabelCounter    appendix
261         LabelString     "\Alph{appendix}."
262         Font
263                 Series          Medium
264                 Shape           Up
265         EndFont
266 End
267
268 Counter subappendix
269         GuiName Subappendix
270         Within          "appendix"
271 End
272
273 Style Subsection_Appendix
274         CopyStyle       Subsection
275         Category        Appendix
276         LabelCounter    subappendix
277         LabelString     "\Alph{appendix}\arabic{subappendix}."
278         Font
279                 Series          Medium
280                 Shape           Italic
281         EndFont
282 End
283
284 Counter subsubappendix
285         GuiName Subsubappendix
286         Within          subappendix
287 End
288
289 Style Subsubsection_Appendix
290         CopyStyle       Subsubsection
291         Category        Appendix
292         LabelCounter    subsubappendix
293         LabelString     "\Alph{appendix}\arabic{subappendix}.\arabic{subsubappendix}."
294         Font
295                 Series          Medium
296         EndFont
297 End
298
299 NoStyle         And
300 NoInsetLayout   Flex:altaffilmark