]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-1.layout
powerdot-example.lyx: update according to latest layout change
[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 54
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         Extension               loa
262         NumberWithin    none
263         Style                   ruled
264         ListName                "List of Algorithms"
265         IsPredefined    false
266         UsesFloatPkg    true
267         RefPrefix               alg
268 End
269
270
271 Float
272         Extension               lov
273         GuiName                 Video
274         IsPredefined    true
275         ListCommand             listofvideos
276         ListName                "List of Videos"
277         NumberWithin    none
278         Placement               tbp
279         Style                   plain
280         Type                    video
281         UsesFloatPkg    false
282 End
283
284
285 InsetLayout Flex:Float_Link
286         CopyStyle               Flex:URL
287         LabelString             "Float link"
288         LatexName               setfloatlink
289         LatexType               command
290         LyXType                 custom
291 End
292
293
294 InsetLayout Flex:Lowercase
295         LyxType                 custom
296         LatexType               command
297         LatexName               lowercase
298         LabelString             "lowercase text"
299         Font
300           # Keep empty to preserve font settings
301           # from the surrounding environment
302         EndFont
303         LabelFont
304           Size                  Small
305         EndFont
306         ResetsFont true
307 End
308
309
310 InsetLayout "Flex:Online cite"
311         LyxType                 custom
312         LatexType               command
313         LatexName               onlinecite
314         LabelString             "online cite"
315         Argument 1
316           LabelString   "Text behind"
317           Tooltip               "text behind the cite"
318         EndArgument
319         Font
320           # Keep empty to preserve font settings
321           # from the surrounding environment
322         EndFont
323         LabelFont
324           Size                  Small
325         EndFont
326         ResetsFont true
327 End
328
329
330 InsetLayout Flex:Surname
331         Decoration              conglomerate
332         LabelString             Surname
333         LatexName               surname
334         LatexType               command
335         LyXType                 custom
336         Font
337           # Keep empty to preserve font settings
338           # from the surrounding environment
339         EndFont
340         LabelFont
341           Color                 green
342           Size                  Small
343         EndFont
344         ResetsFont true
345 End
346
347
348 NoStyle Chapter
349 NoStyle Chapter*
350 NoStyle LyX-Code
351 NoStyle Right_Address
352 NoStyle Subparagraph
353 NoStyle Subparagraph*