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