]> git.lyx.org Git - features.git/blob - lib/layouts/revtex4-1.layout
revtex4-1: port changes from branch
[features.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 \lowercase{}
17 #     - add support for \pacs[]{}
18 #     - add support for \onlinecite{}
19 #     - add support for subequation environment
20 #     - fix broken flex inset setfloatlink
21
22
23 Format 49
24
25 Input stdclass.inc
26 Input numrevtex.inc
27
28 Provides natbib-internal        1
29 Provides url                    1
30 SecNumDepth                     4
31 TocDepth                        3
32 DefaultStyle                    Standard
33
34 Style Section
35         Align                 Center
36         Font
37           Shape               Smallcaps
38         EndFont
39 End
40
41
42 Style Subsubsection
43         Font
44           Shape               Italic
45         EndFont
46 End
47
48
49 Style Paragraph
50         Font
51           Shape               Italic
52         EndFont
53 End
54
55
56 # This input needs to appear *after* modifications to sections
57 Input stdstarsections.inc
58
59
60 ########### Front matter ############
61
62 Style Abstract
63         InTitle               1
64 End
65
66
67 Style Affiliation
68         Category              FrontMatter
69         Margin                Dynamic
70         LatexType             Command
71         InTitle               1
72         LatexName             affiliation
73         ParSkip               0.4
74         Align                 Center
75         AlignPossible         Block, Left, Right, Center
76         LabelType             Static
77         LabelSep              M
78         LabelString           "Affiliation:"
79
80         LabelFont
81           Shape               Italic
82         EndFont
83 End
84
85
86 Style Affiliation_(alternate)
87         CopyStyle             Affiliation
88         LatexName             altaffiliation
89         LabelString           "Affiliation (alternate):"
90         Argument 1
91                 LabelString   "Alternate Affiliation Option"
92                 Tooltip       "Optional argument to the altaffiliation command"
93         EndArgument
94         PassThru              1
95 End
96
97
98 Style Affiliation_(none)
99         CopyStyle             Affiliation
100         KeepEmpty             true
101         LabelString           "No affiliation"
102         LatexName             noaffiliation%
103 End
104
105
106 # Address is exactly the same as Affiliation. We just put
107 # this in so that tex2lyx will know what to do with it.
108 Style Address
109         CopyStyle             Affiliation
110         LatexName             address
111         LabelString           "Address:"
112 End
113
114
115 Style Author_Email
116         CopyStyle             Affiliation
117         LatexName             email
118         LabelString           "Electronic Address:"
119         Argument 1
120                 LabelString   "Electronic Address Option|s"
121                 Tooltip       "Optional argument to the email command"
122         EndArgument
123         PassThru              1
124         TextFont
125           Family              Typewriter
126         EndFont
127         LabelFont
128           Family              Roman
129         EndFont
130 End
131
132
133 Style Author_URL
134         CopyStyle             Author_Email
135         LatexName             homepage
136         LabelString           "URL:"
137         Argument 1
138                 LabelString   "Author URL Option"
139                 Tooltip       "Optional argument to the homepage command"
140         EndArgument
141         PassThru              1
142 End
143
144
145 Style Collaboration
146         CopyStyle             Affiliation
147         LatexName             collaboration
148         LabelString           "Collaboration:"
149 End
150
151
152 Style Date
153         LabelType             Static
154         LabelString           "Date:"
155         LabelFont
156           Shape               Italic
157         EndFont
158 End
159
160
161 Style Keywords
162         Category              FrontMatter
163         Margin                Dynamic
164         LatexType             Command
165         InTitle               1
166         LatexName             keywords
167         LabelType             Static
168         LabelSep              M
169         LabelString           "Keywords:"
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           "Thanks:"
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         EndArgument
205         Font
206           Series              Bold
207           Size                Large
208         EndFont
209 End
210
211
212 ########### Back matter #############
213
214 Style Acknowledgments
215         CopyStyle             Standard
216         Category              BackMatter
217         LatexType             Environment
218         LatexName             acknowledgments
219         LabelType             Centered
220         LabelString           "acknowledgments"
221         LabelBottomSep        0.5
222         LabelFont
223           Series              Bold
224           Shape               Smallcaps
225           Size                Larger
226         EndFont
227         TopSep                0.7
228 End
229
230
231 ##### stuff specific to REVTeX 4.1
232
233 Style Ruled_Table
234         CopyStyle             Standard
235         Category              Specials
236         LatexName             ruledtabular
237         LatexType             environment
238 End
239
240
241 Style Turn_Page
242         CopyStyle             Standard
243         Category              Specials
244         LatexName             turnpage
245         LatexType             environment
246 End
247
248
249 Style Wide_Text
250         CopyStyle             Standard
251         Category              Specials
252         LatexName             widetext
253         LatexType             environment
254 End
255
256
257 Float
258         Extension             lov
259         GuiName               Video
260         IsPredefined          true
261         ListCommand           listofvideos
262         ListName              "List of Videos"
263         NumberWithin          none
264         Placement             tbp
265         Style                 plain
266         Type                  video
267         UsesFloatPkg          false
268 End
269
270
271 InsetLayout Flex:Float_Link
272         CopyStyle             Flex:URL
273         LabelString           "Float Link"
274         LatexName             setfloatlink
275         LatexType             command
276         LyXType               custom
277 End
278
279
280 InsetLayout Flex:Lowercase
281         Decoration            conglomerate
282         LabelString           Lowercase
283         LatexName             lowercase
284         LatexType             command
285         LyXType               custom
286         Font
287             # Keep empty to preserve font settings
288             # from the surrounding environment
289         EndFont
290         ResetsFont true
291 End
292
293
294 InsetLayout Flex:Surname
295         Decoration            conglomerate
296         LabelString           Surname
297         LatexName             surname
298         LatexType             command
299         LyXType               custom
300         Font
301             # Keep empty to preserve font settings
302             # from the surrounding environment
303         EndFont
304         ResetsFont true
305 End
306
307
308 NoStyle Chapter
309 NoStyle Chapter*
310 NoStyle LyX-Code
311 NoStyle Right_Address
312 NoStyle Subparagraph
313 NoStyle Subparagraph*