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