]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-x.inc
Added revtex4-2.layout
[lyx.git] / lib / layouts / revtex4-x.inc
1 # REVTeX 4.x textclass definition file.
2 # Based on official article.layout, revtex4.layout and stdclass.inc definition files,
3 # and on the unofficial revtex4-1.layout by Manoj Rajagopalan, posted to the wiki.
4 #
5 # Author: Julien Rioux <jrioux@lyx.org> and Uwe Stöhr
6 #
7 # This layout is according to
8 # https://journals.aps.org/files/revtex/auguide4-1.pdf
9
10 # a note:
11 #   - we provide natbib-internal according to LyX bug #5182
12 # todo:
13 #     - add support for \onlinecite{}
14
15
16 Format 66
17
18 Input stdclass.inc
19 Input numrevtex.inc
20
21 Provides natbib-internal        1
22 Provides url                    1
23 Provides tablefootnote          1
24 Provides footnote-alternative   1
25
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 Input stdfloatnames.inc
256
257 Float
258         Type                    algorithm
259         GuiName                 Algorithm
260         Placement               H
261         AllowedPlacement none
262         AllowsSideways  0
263         AllowsWide              0
264         Extension               loa
265         NumberWithin    none
266         Style                   ruled
267         ListName                "List of Algorithms"
268         IsPredefined    false
269         UsesFloatPkg    true
270         RefPrefix               alg
271 End
272
273
274 Float
275         Extension               lov
276         GuiName                 Video
277         IsPredefined    true
278         ListCommand             listofvideos
279         ListName                "List of Videos"
280         NumberWithin    none
281         Placement               tbp
282         AllowsSideways  0
283         Style                   plain
284         Type                    video
285         UsesFloatPkg    false
286 End
287
288
289 OutlinerName video        "Videos"
290
291
292 InsetLayout Flex:Float_Link
293         CopyStyle               Flex:URL
294         LabelString             "Float link"
295         LatexName               setfloatlink
296         LatexType               command
297         LyXType                 custom
298 End
299
300
301 InsetLayout Flex:Lowercase
302         LyxType                 custom
303         LatexType               command
304         LatexName               lowercase
305         LabelString             "lowercase text"
306         Font
307           # Keep empty to preserve font settings
308           # from the surrounding environment
309         EndFont
310         LabelFont
311           Size                  Small
312         EndFont
313         ResetsFont true
314 End
315
316
317 InsetLayout "Flex:Online cite"
318         LyxType                 custom
319         LatexType               command
320         LatexName               onlinecite
321         LabelString             "online cite"
322         Argument 1
323           LabelString   "Text behind"
324           Tooltip               "text behind the cite"
325         EndArgument
326         Font
327           # Keep empty to preserve font settings
328           # from the surrounding environment
329         EndFont
330         LabelFont
331           Size                  Small
332         EndFont
333         ResetsFont true
334 End
335
336
337 InsetLayout Flex:Surname
338         Decoration              conglomerate
339         LabelString             Surname
340         LatexName               surname
341         LatexType               command
342         LyXType                 custom
343         Font
344           # Keep empty to preserve font settings
345           # from the surrounding environment
346         EndFont
347         LabelFont
348           Color                 green
349           Size                  Small
350         EndFont
351         ResetsFont true
352 End
353
354
355 # RevTeX uses normal footnotes in tables
356 InsetLayout Foot:InFloatTable
357         CopyStyle             Foot
358 End
359
360
361 NoStyle Chapter
362 NoStyle Chapter*
363 NoStyle LyX-Code
364 NoStyle Right_Address
365 NoStyle Subparagraph
366 NoStyle Subparagraph*