]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-1.layout
Add development manual.
[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>
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 44
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         Argument 1
103                 LabelString   "Alternate Affiliation Option"
104                 Tooltip       "Optional argument to the altaffiliation command"
105         EndArgument
106         PassThru              1
107 End
108
109
110 Style Affiliation_(none)
111         CopyStyle             Affiliation
112         KeepEmpty             true
113         LabelString           "No affiliation"
114         LatexName             noaffiliation%
115 End
116
117
118 # Address is exactly the same as Affiliation. We just put
119 # this in so that tex2lyx will know what to do with it.
120 Style Address
121         CopyStyle             Affiliation
122         LatexName             address
123         LabelString           "Address:"
124 End
125
126
127 Style Author_Email
128         CopyStyle             Affiliation
129         LatexName             email
130         LabelString           "Electronic Address:"
131         Argument 1
132                 LabelString   "Electronic Address Option|s"
133                 Tooltip       "Optional argument to the email command"
134         EndArgument
135         PassThru              1
136         TextFont
137           Family              Typewriter
138         EndFont
139         LabelFont
140           Family              Roman
141         EndFont
142 End
143
144
145 Style Author_URL
146         CopyStyle             Author_Email
147         LatexName             homepage
148         LabelString           "URL:"
149         Argument 1
150                 LabelString   "Author URL Option"
151                 Tooltip       "Optional argument to the homepage command"
152         EndArgument
153         PassThru              1
154 End
155
156
157 Style Collaboration
158         CopyStyle             Affiliation
159         LatexName             collaboration
160         LabelString           "Collaboration:"
161 End
162
163
164 Style Date
165         LabelType             Static
166         LabelString           "Date:"
167         LabelFont
168           Shape               Italic
169         EndFont
170 End
171
172
173 Style Keywords
174         Category              FrontMatter
175         Margin                Dynamic
176         LatexType             Command
177         InTitle               1
178         LatexName             keywords
179         LabelType             Static
180         LabelSep              M
181         LabelString           "Keywords:"
182 End
183
184
185 Style PACS
186         CopyStyle             Keywords
187         LatexName             pacs
188         LabelString           "PACS numbers:"
189 End
190
191
192 Style Preprint
193         Category              FrontMatter
194         Margin                Right_Address_Box
195         LatexType             Command
196         InTitle               1
197         LatexName             preprint
198         ParSkip               0.4
199         BottomSep             1.5
200         ParSep                1.5
201         Align                 Left
202 End
203
204
205 Style Thanks
206         CopyStyle             Affiliation
207         LatexName             thanks
208         LabelString           "Thanks:"
209 End
210
211
212 Style Title
213         Argument 1
214                 LabelString   "Short Title|S"
215                 Tooltip       "Short title as it appears in the running headers"
216         EndArgument
217         Font
218           Series              Bold
219           Size                Large
220         EndFont
221 End
222
223
224 ########### Back matter #############
225
226 Style Acknowledgments
227         CopyStyle             Standard
228         Category              BackMatter
229         LatexType             Environment
230         LatexName             acknowledgments
231         LabelType             Centered
232         LabelString           "acknowledgments"
233         LabelBottomSep        0.5
234         LabelFont
235           Series              Bold
236           Shape               Smallcaps
237           Size                Larger
238         EndFont
239         TopSep                0.7
240 End
241
242
243 ##### stuff specific to REVTeX 4.1
244
245 Style Ruled_Table
246         CopyStyle             Standard
247         Category              Specials
248         LatexName             ruledtabular
249         LatexType             environment
250 End
251
252
253 Style Turn_Page
254         CopyStyle             Standard
255         Category              Specials
256         LatexName             turnpage
257         LatexType             environment
258 End
259
260
261 Style Wide_Text
262         CopyStyle             Standard
263         Category              Specials
264         LatexName             widetext
265         LatexType             environment
266 End
267
268
269 Float
270         Extension             lov
271         GuiName               Video
272         IsPredefined          true
273         ListCommand           listofvideos
274         ListName              "List of Videos"
275         NumberWithin          none
276         Placement             tbp
277         Style                 plain
278         Type                  video
279         UsesFloatPkg          false
280 End
281
282
283 InsetLayout Flex:Float_Link
284         CopyStyle             Flex:URL
285         LabelString           "Float Link"
286         LatexName             setfloatlink
287         LatexType             command
288         LyXType               custom
289 End
290
291
292 InsetLayout Flex:Lowercase
293         Decoration            conglomerate
294         LabelString           Lowercase
295         LatexName             lowercase
296         LatexType             command
297         LyXType               custom
298         Font
299             # Keep empty to preserve font settings
300             # from the surrounding environment
301         EndFont
302 End
303
304
305 InsetLayout Flex:Surname
306         Decoration            conglomerate
307         LabelString           Surname
308         LatexName             surname
309         LatexType             command
310         LyXType               custom
311         Font
312             # Keep empty to preserve font settings
313             # from the surrounding environment
314         EndFont
315 End
316
317
318 NoStyle Chapter
319 NoStyle Chapter*
320 NoStyle LyX-Code
321 NoStyle Right_Address
322 NoStyle Subparagraph
323 NoStyle Subparagraph*