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