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