]> git.lyx.org Git - lyx.git/blob - lib/layouts/aastex62.layout
DocBook: fix margin notes.
[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         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           Blue
149                 Size            Small
150         EndFont
151 End
152
153 Style Author
154         LabelType       Static
155         LabelString     "Author:"
156         LabelFont
157                 Shape           Italic
158                 Color           Green
159         EndFont
160         Argument 1
161                 LabelString     ORCID
162                 ToolTip         "Enter the 16 digit ORCID as xxxx-xxxx-xxxx-xxxx"
163         EndArgument
164         Align           Center
165         Margin          Dynamic
166 End
167
168 Style Affiliation
169         LabelType       Static
170         Margin          Dynamic
171         LabelString     "Affiliation:"
172         LatexName       affiliation
173         LabelSep        "x"
174         LabelFont
175                 Shape           Italic
176                 Color           Green
177         EndFont
178         Align           Center
179 End
180
181 Style Collaboration
182         Category        FrontMatter
183         LatexType       Command
184         LatexName       collaboration
185         
186         LabelType       Static
187         Margin          Dynamic
188         LabelString     "Collaboration:"
189         LabelSep        "x"
190         LabelFont
191                 Shape           Italic
192                 Color           Green
193         EndFont
194         Align           Center
195 End
196
197 Style Nocollaboration
198         Category        FrontMatter
199         LatexType       Command
200         LatexName       nocollaboration
201         LabelType       Static
202         Align           Center
203         Margin          Dynamic
204         LabelString     "No collaboration"
205         KeepEmpty       1
206         LabelSep        "x"
207         LabelFont
208                 Shape           Italic
209                 Color           Green
210         EndFont
211 End
212
213 Style Altaffilation
214         LatexName       altaffiliation
215         ResetArgs       1
216         Align           Center
217 End
218
219 Style Acknowledgements
220         Font
221                 Shape           Up
222         EndFont
223         LabelType       Above
224         Margin          Static
225         LabelFont
226                 Color           Green
227         EndFont
228 End
229
230 Counter appendix
231         GuiName Appendix
232         Within          "none"
233 End
234
235 Style Section_Appendix
236         CopyStyle       Section
237         Category        Appendix
238         LabelCounter    appendix
239         LabelString     "\Alph{appendix}."
240         Font
241                 Series          Medium
242                 Shape           Up
243         EndFont
244 End
245
246 Counter subappendix
247         GuiName Subappendix
248         Within          "appendix"
249 End
250
251 Style Subsection_Appendix
252         CopyStyle       Subsection
253         Category        Appendix
254         LabelCounter    subappendix
255         LabelString     "\Alph{appendix}\arabic{subappendix}."
256         Font
257                 Series          Medium
258                 Shape           Italic
259         EndFont
260 End
261
262 Counter subsubappendix
263         GuiName Subsubappendix
264         Within          subappendix
265 End
266
267 Style Subsubsection_Appendix
268         CopyStyle       Subsubsection
269         Category        Appendix
270         LabelCounter    subsubappendix
271         LabelString     "\Alph{appendix}\arabic{subappendix}.\arabic{subsubappendix}."
272         Font
273                 Series          Medium
274         EndFont
275 End
276
277 NoStyle         And
278 NoInsetLayout   Flex:altaffilmark