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