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