]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-1.layout
Const.
[lyx.git] / lib / layouts / revtex4-1.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[revtex4-1,natbib.sty,revsymb4-1.sty,textcase.sty,url.sty]{REVTeX (V. 4.1)}
3 #  \DeclareCategory{Articles}
4 # REVTeX 4.1 textclass definition file.
5 # Based on official article.layout, revtex4.layout and stdclass.inc definition files,
6 # and on the unofficial revtex4-1.layout by Manoj Rajagopalan, posted to the wiki.
7 #
8 # Author: Julien Rioux <jrioux@lyx.org> and Uwe Stöhr
9 #
10 # This layout is according to
11 # https://journals.aps.org/files/revtex/auguide4-1.pdf
12
13 # a note:
14 #   - we provide natbib-internal according to LyX bug #5182
15 # todo:
16 #     - add support for \onlinecite{}
17
18
19 Format 59
20
21 Input stdclass.inc
22 Input numrevtex.inc
23
24 Provides natbib-internal        1
25 Provides url                    1
26 SecNumDepth                     4
27 TocDepth                        3
28 DefaultStyle            Standard
29
30 Style Section
31         Align                   Center
32         Font
33           Shape                 Smallcaps
34         EndFont
35 End
36
37
38 Style Subsubsection
39         Font
40           Shape                 Italic
41         EndFont
42 End
43
44
45 Style Paragraph
46         Font
47           Shape                 Italic
48         EndFont
49 End
50
51
52 # This input needs to appear *after* modifications to sections
53 Input stdstarsections.inc
54
55
56 ########### Front matter ############
57
58 Style Abstract
59         InTitle                 1
60 End
61
62
63 Style Affiliation
64         Category                FrontMatter
65         Margin                  Dynamic
66         LatexType               Command
67         InTitle                 1
68         LatexName               affiliation
69         ParSkip                 0.4
70         Align                   Center
71         AlignPossible   Block, Left, Right, Center
72         LabelType               Static
73         LabelSep                M
74         TextFont
75           Family                Typewriter
76         EndFont
77         LabelString             "Affiliation:"
78         LabelFont
79           Color                 Green
80           Series                Bold    
81         EndFont
82 End
83
84
85 Style Affiliation_(alternate)
86         CopyStyle               Affiliation
87         LatexName               altaffiliation
88         LabelString             "Affiliation (alternate):"
89         Argument 1
90           LabelString   "Alternate Affiliation Option"
91           Tooltip               "Optional argument to the altaffiliation command"
92         EndArgument
93         PassThru                1
94 End
95
96
97 Style Affiliation_(none)
98         CopyStyle               Affiliation
99         KeepEmpty               true
100         LabelString             "No affiliation"
101         LatexName               noaffiliation%
102 End
103
104
105 # Address is exactly the same as Affiliation. We just put
106 # this in so that tex2lyx will know what to do with it.
107 Style Address
108         CopyStyle               Affiliation
109         LatexName               address
110         LabelString             "Address:"
111 End
112
113
114 Style Author_Email
115         CopyStyle               Affiliation
116         LatexName               email
117         LabelString             "Electronic Address:"
118         Argument 1
119           LabelString   "Electronic Address Option|s"
120           Tooltip               "Optional argument to the email command"
121         EndArgument
122         PassThru                1
123         TextFont
124           Family                Roman
125         EndFont
126 End
127
128
129 Style Author_URL
130         CopyStyle               Author_Email
131         LatexName               homepage
132         LabelString             "URL:"
133         Argument 1
134           LabelString   "Author URL Option"
135           Tooltip               "Optional argument to the homepage command"
136         EndArgument
137         PassThru                1
138 End
139
140
141 Style Collaboration
142         CopyStyle               Affiliation
143         LatexName               collaboration
144         LabelString             "Collaboration:"
145 End
146
147
148 Style Date
149         LabelType               Static
150         LabelString             "Date:"
151 End
152
153
154 Style Keywords
155         Category                FrontMatter
156         Margin                  Dynamic
157         LatexType               Command
158         InTitle                 1
159         LatexName               keywords
160         LabelType               Static
161         LabelSep                M
162         LabelString             "Keywords:"
163         LabelFont
164           Color                 Green
165           Series                Bold
166         EndFont
167 End
168
169
170 Style PACS
171         CopyStyle               Keywords
172         LatexName               pacs
173         LabelString             "PACS numbers:"
174 End
175
176
177 Style Preprint
178         Category                FrontMatter
179         Margin                  Right_Address_Box
180         LatexType               Command
181         InTitle                 1
182         LatexName               preprint
183         ParSkip                 0.4
184         BottomSep               1.5
185         ParSep                  1.5
186         Align                   Left
187 End
188
189
190 Style Thanks
191         CopyStyle               Affiliation
192         LatexName               thanks
193         LabelString             "Title footnote:"
194 End
195
196
197 Style Title
198         Argument 1
199           LabelString   "Short Title|S"
200           Tooltip               "Short title as it appears in the running headers"
201           InsertCotext  1
202         EndArgument
203         Font
204           Series                Bold
205           Size                  Large
206         EndFont
207 End
208
209
210 ########### Back matter #############
211
212 Style Acknowledgments
213         CopyStyle               Standard
214         Category                BackMatter
215         LatexType               Environment
216         LatexName               acknowledgments
217         LabelType               Centered
218         LabelString             "acknowledgments"
219         LabelBottomSep  0.5
220         LabelFont
221           Series                Bold
222           Shape                 Smallcaps
223           Size                  Larger
224         EndFont
225         TopSep                  0.7
226 End
227
228
229 ##### stuff specific to REVTeX 4.1
230
231 Style Ruled_Table
232         CopyStyle               Standard
233         Category                Specials
234         LatexName               ruledtabular
235         LatexType               environment
236 End
237
238
239 Style Turn_Page
240         CopyStyle               Standard
241         Category                Specials
242         LatexName               turnpage
243         LatexType               environment
244 End
245
246
247 Style Wide_Text
248         CopyStyle               Standard
249         Category                Specials
250         LatexName               widetext
251         LatexType               environment
252 End
253
254
255 Float
256         Type                    algorithm
257         GuiName                 Algorithm
258         Placement               H
259         AllowedPlacement none
260         AllowsSideways  0
261         AllowsWide              0
262         Extension               loa
263         NumberWithin    none
264         Style                   ruled
265         ListName                "List of Algorithms"
266         IsPredefined    false
267         UsesFloatPkg    true
268         RefPrefix               alg
269 End
270
271
272 Float
273         Extension               lov
274         GuiName                 Video
275         IsPredefined    true
276         ListCommand             listofvideos
277         ListName                "List of Videos"
278         NumberWithin    none
279         Placement               tbp
280         AllowsSideways  0
281         Style                   plain
282         Type                    video
283         UsesFloatPkg    false
284 End
285
286
287 InsetLayout Flex:Float_Link
288         CopyStyle               Flex:URL
289         LabelString             "Float link"
290         LatexName               setfloatlink
291         LatexType               command
292         LyXType                 custom
293 End
294
295
296 InsetLayout Flex:Lowercase
297         LyxType                 custom
298         LatexType               command
299         LatexName               lowercase
300         LabelString             "lowercase text"
301         Font
302           # Keep empty to preserve font settings
303           # from the surrounding environment
304         EndFont
305         LabelFont
306           Size                  Small
307         EndFont
308         ResetsFont true
309 End
310
311
312 InsetLayout "Flex:Online cite"
313         LyxType                 custom
314         LatexType               command
315         LatexName               onlinecite
316         LabelString             "online cite"
317         Argument 1
318           LabelString   "Text behind"
319           Tooltip               "text behind the cite"
320         EndArgument
321         Font
322           # Keep empty to preserve font settings
323           # from the surrounding environment
324         EndFont
325         LabelFont
326           Size                  Small
327         EndFont
328         ResetsFont true
329 End
330
331
332 InsetLayout Flex:Surname
333         Decoration              conglomerate
334         LabelString             Surname
335         LatexName               surname
336         LatexType               command
337         LyXType                 custom
338         Font
339           # Keep empty to preserve font settings
340           # from the surrounding environment
341         EndFont
342         LabelFont
343           Color                 green
344           Size                  Small
345         EndFont
346         ResetsFont true
347 End
348
349
350 NoStyle Chapter
351 NoStyle Chapter*
352 NoStyle LyX-Code
353 NoStyle Right_Address
354 NoStyle Subparagraph
355 NoStyle Subparagraph*