]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex62.layout
DocBook: fix delimitation of bibliographies.
[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         DocBookWrapperTag   para
82         DocBookTag          application
83 End
84
85 # other new commands are mainly for the user preamble
86
87 ## Updated commands:
88
89 # TODO: dataset should become an inset similar to hyperref:
90 #
91 #   Use the \dataset command to link to data sets hosted externally
92 #   such as the DOI issuing Zenodo repository.
93 #
94 #      \dataset[text]{url}
95 #
96 #   Where url is the URL link to the data. The bracketed argument is optional.
97 #   When present the given text is used as the displayed hyperlink otherwise
98 #   [DATASET] is printed.
99
100
101 # Fixes for aastex.layout
102
103 # TODO: first/second arg for tablenotetext to replace ERT "}{"
104 #       Show "figcaption" label instead of "Senseless!!!"
105
106 # match label to output
107 Style Appendix
108         Margin          Static
109         #       LeftMargin      ""
110         LabelType       Centered
111         LabelString     "APPENDIX"
112 End
113
114 Style TableRefs
115         LabelString     "References-"
116         LabelFont
117                 Series          Bold
118         EndFont
119 End
120
121 Style TableComments
122         LabelString     "Note-"
123 End
124
125 # Added for aastex62
126
127 Style Corresponding_Author
128         Category        FrontMatter
129         LatexType       Command
130         LatexName       correspondingauthor
131         LabelType       Static
132         Margin          Dynamic
133         LabelString     "Corresponding author:"
134         LabelSep        "x"
135 End
136
137 Style Keywords
138         LabelString     "Keywords:"
139 End
140
141 Style Email
142         Align           Left
143         Font
144                 Shape           Up
145                 Color           Blue
146                 Size            Small
147         EndFont
148 End
149
150 Style Author
151         LabelType       Static
152         LabelString     "Author:"
153         LabelFont
154                 Shape           Italic
155                 Color           Green
156         EndFont
157         Argument 1
158                 LabelString     ORCID
159                 ToolTip         "Enter the 16 digit ORCID as xxxx-xxxx-xxxx-xxxx"
160         EndArgument
161         Align           Center
162         Margin          Dynamic
163 End
164
165 Style Affiliation
166         LabelType       Static
167         Margin          Dynamic
168         LabelString     "Affiliation:"
169         LatexName       affiliation
170         LabelSep        "x"
171         LabelFont
172                 Shape           Italic
173                 Color           Green
174         EndFont
175         Align           Center
176 End
177
178 Style Collaboration
179         Category        FrontMatter
180         LatexType       Command
181         LatexName       collaboration
182         
183         LabelType       Static
184         Margin          Dynamic
185         LabelString     "Collaboration:"
186         LabelSep        "x"
187         LabelFont
188                 Shape           Italic
189                 Color           Green
190         EndFont
191         Align           Center
192 End
193
194 Style Nocollaboration
195         Category        FrontMatter
196         LatexType       Command
197         LatexName       nocollaboration
198         LabelType       Static
199         Align           Center
200         Margin          Dynamic
201         LabelString     "No collaboration"
202         KeepEmpty       1
203         LabelSep        "x"
204         LabelFont
205                 Shape           Italic
206                 Color           Green
207         EndFont
208 End
209
210 Style Altaffilation
211         LatexName       altaffiliation
212         ResetArgs       1
213         Align           Center
214 End
215
216 Style Acknowledgements
217         Font
218                 Shape           Up
219         EndFont
220         LabelType       Above
221         Margin          Static
222         LabelFont
223                 Color           Green
224         EndFont
225 End
226
227 Counter appendix
228         GuiName Appendix
229         Within          "none"
230 End
231
232 Style Section_Appendix
233         CopyStyle       Section
234         Category        Appendix
235         LabelCounter    appendix
236         LabelString     "\Alph{appendix}."
237         Font
238                 Series          Medium
239                 Shape           Up
240         EndFont
241 End
242
243 Counter subappendix
244         GuiName Subappendix
245         Within          "appendix"
246 End
247
248 Style Subsection_Appendix
249         CopyStyle       Subsection
250         Category        Appendix
251         LabelCounter    subappendix
252         LabelString     "\Alph{appendix}\arabic{subappendix}."
253         Font
254                 Series          Medium
255                 Shape           Italic
256         EndFont
257 End
258
259 Counter subsubappendix
260         GuiName Subsubappendix
261         Within          subappendix
262 End
263
264 Style Subsubsection_Appendix
265         CopyStyle       Subsubsection
266         Category        Appendix
267         LabelCounter    subsubappendix
268         LabelString     "\Alph{appendix}\arabic{subappendix}.\arabic{subsubappendix}."
269         Font
270                 Series          Medium
271         EndFont
272 End
273
274 NoStyle         And
275 NoInsetLayout   Flex:altaffilmark