]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-1.layout
Update tex2lyx test files
[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@physics.utoronto.ca>
9
10 # Some notes:
11 #   - The \definecolor's are there to avoid LyX bug #4625.
12 #   - We provide natbib-internal according to LyX bug #5182.
13 #   - The command \lovname is missing from the class file.
14
15 Format 40
16
17 Input stdclass.inc
18 Input numrevtex.inc
19
20 Provides natbib-internal  1
21 Provides url              1
22 SecNumDepth               4
23 TocDepth                  3
24
25 ClassOptions
26         Other                 "aps,manuscript"
27 End
28
29 Preamble
30         % Fix a couple of bugs in REVTeX 4.1
31         \def\lovname{List of Videos}
32         \@ifundefined{textcolor}{}
33         {%
34          \definecolor{BLACK}{gray}{0}
35          \definecolor{WHITE}{gray}{1}
36          \definecolor{RED}{rgb}{1,0,0}
37          \definecolor{GREEN}{rgb}{0,1,0}
38          \definecolor{BLUE}{rgb}{0,0,1}
39          \definecolor{CYAN}{cmyk}{1,0,0,0}
40          \definecolor{MAGENTA}{cmyk}{0,1,0,0}
41          \definecolor{YELLOW}{cmyk}{0,0,1,0}
42         }
43 EndPreamble
44
45
46 Style Section
47         Align                 Center
48         Font
49           Shape               Smallcaps
50         EndFont
51 End
52
53
54 Style Subsubsection
55         Font
56           Shape               Italic
57         EndFont
58 End
59
60
61 Style Paragraph
62         Font
63           Shape               Italic
64         EndFont
65 End
66
67
68 # This input needs to appear *after* modifications to sections
69 Input stdstarsections.inc
70
71
72 ########### Front matter ############
73
74 Style Abstract
75         InTitle               1
76 End
77
78
79 Style Affiliation
80         Category              FrontMatter
81         Margin                Dynamic
82         LatexType             Command
83         InTitle               1
84         LatexName             affiliation
85         ParSkip               0.4
86         Align                 Center
87         AlignPossible         Block, Left, Right, Center
88         LabelType             Static
89         LabelSep              M
90         LabelString           "Affiliation:"
91
92         LabelFont
93           Shape               Italic
94         EndFont
95 End
96
97
98 Style Affiliation_(alternate)
99         CopyStyle             Affiliation
100         LatexName             altaffiliation
101         LabelString           "Affiliation (alternate):"
102         OptionalArgs          1
103         PassThru              1
104 End
105
106
107 Style Affiliation_(none)
108         CopyStyle             Affiliation
109         KeepEmpty             true
110         LabelString           "No affiliation"
111         LatexName             noaffiliation%
112 End
113
114
115 # Address is exactly the same as Affiliation. We just put
116 # this in so that tex2lyx will know what to do with it.
117 Style Address
118         CopyStyle             Affiliation
119         LatexName             address
120         LabelString           "Address:"
121 End
122
123
124 Style Author_Email
125         CopyStyle             Affiliation
126         LatexName             email
127         LabelString           "Electronic Address:"
128         OptionalArgs          1
129         PassThru              1
130         TextFont
131           Family              Typewriter
132         EndFont
133         LabelFont
134           Family              Roman
135         EndFont
136 End
137
138
139 Style Author_URL
140         CopyStyle             Author_Email
141         LatexName             homepage
142         LabelString           "URL:"
143         OptionalArgs          1
144         PassThru              1
145 End
146
147
148 Style Collaboration
149         CopyStyle             Affiliation
150         LatexName             collaboration
151         LabelString           "Collaboration:"
152 End
153
154
155 Style Date
156         LabelType             Static
157         LabelString           "Date:"
158         LabelFont
159           Shape               Italic
160         EndFont
161 End
162
163
164 Style Keywords
165         Category              FrontMatter
166         Margin                Dynamic
167         LatexType             Command
168         InTitle               1
169         LatexName             keywords
170         LabelType             Static
171         LabelSep              M
172         LabelString           "Keywords:"
173 End
174
175
176 Style PACS
177         CopyStyle             Keywords
178         LatexName             pacs
179         LabelString           "PACS numbers:"
180 End
181
182
183 Style Preprint
184         Category              FrontMatter
185         Margin                Right_Address_Box
186         LatexType             Command
187         InTitle               1
188         LatexName             preprint
189         ParSkip               0.4
190         BottomSep             1.5
191         ParSep                1.5
192         Align                 Left
193 End
194
195
196 Style Thanks
197         CopyStyle             Affiliation
198         LatexName             thanks
199         LabelString           "Thanks:"
200 End
201
202
203 Style Title
204         OptionalArgs          1
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_Top_Environment
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 End
291
292
293 InsetLayout Flex:Surname
294         Decoration            conglomerate
295         LabelString           Surname
296         LatexName             surname
297         LatexType             command
298         LyXType               custom
299         Font
300             # Keep empty to preserve font settings
301             # from the surrounding environment
302         EndFont
303 End
304
305
306 NoStyle Chapter
307 NoStyle Chapter*
308 NoStyle LyX-Code
309 NoStyle Right_Address
310 NoStyle Subparagraph
311 NoStyle Subparagraph*