]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-1.layout
jasatex.layout, JASA.lyx; correct the SVN EOL style
[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]{article (REVTeX 4.1)}
3 # REVTeX 4.1 textclass definition file.
4 # Based on official article.layout, revtex4.layout and stdclass.inc definition files,
5 # and on the unofficial revtex4-1.layout by Manoj Rajagopalan, posted to the wiki.
6
7 # Author: Julien Rioux <jrioux@physics.utoronto.ca>
8
9 # Some notes:
10 #   - The \definecolor's are there to avoid LyX bug #4625.
11 #   - We provide natbib-internal according to LyX bug #5182.
12 #   - The command \lovname is missing from the class file.
13
14 Format 36
15
16 Input stdclass.inc
17 Input numrevtex.inc
18
19 Provides natbib-internal  1
20 Provides url              1
21 SecNumDepth               4
22 TocDepth                  3
23
24 ClassOptions
25         Other                 "aps,manuscript"
26 End
27
28 Preamble
29         % Fix a couple of bugs in REVTeX 4.1
30         \def\lovname{List of Videos}
31         \@ifundefined{textcolor}{}
32         {%
33          \definecolor{BLACK}{gray}{0}
34          \definecolor{WHITE}{gray}{1}
35          \definecolor{RED}{rgb}{1,0,0}
36          \definecolor{GREEN}{rgb}{0,1,0}
37          \definecolor{BLUE}{rgb}{0,0,1}
38          \definecolor{CYAN}{cmyk}{1,0,0,0}
39          \definecolor{MAGENTA}{cmyk}{0,1,0,0}
40          \definecolor{YELLOW}{cmyk}{0,0,1,0}
41         }
42 EndPreamble
43
44
45 Style Section
46         Align                 Center
47         Font
48           Shape               Smallcaps
49         EndFont
50 End
51
52
53 Style Subsubsection
54         Font
55           Shape               Italic
56         EndFont
57 End
58
59
60 Style Paragraph
61         Font
62           Shape               Italic
63         EndFont
64 End
65
66
67 # This input needs to appear *after* modifications to sections
68 Input stdstarsections.inc
69
70
71 ########### Front matter ############
72
73 Style Abstract
74         InTitle               1
75 End
76
77
78 Style Affiliation
79         Category              FrontMatter
80         Margin                Dynamic
81         LatexType             Command
82         InTitle               1
83         LatexName             affiliation
84         ParSkip               0.4
85         Align                 Center
86         AlignPossible         Block, Left, Right, Center
87         LabelType             Static
88         LabelSep              M
89         LabelString           "Affiliation:"
90
91         LabelFont
92           Shape               Italic
93         EndFont
94 End
95
96
97 Style Affiliation_(alternate)
98         CopyStyle             Affiliation
99         LatexName             altaffiliation
100         LabelString           "Affiliation (alternate):"
101         OptionalArgs          1
102         PassThru              1
103 End
104
105
106 Style Affiliation_(none)
107         CopyStyle             Affiliation
108         KeepEmpty             true
109         LabelString           "No affiliation"
110         LatexName             noaffiliation%
111 End
112
113
114 # Address is exactly the same as Affiliation. We just put
115 # this in so that tex2lyx will know what to do with it.
116 Style Address
117         CopyStyle             Affiliation
118         LatexName             address
119         LabelString           "Address:"
120 End
121
122
123 Style Author_Email
124         CopyStyle             Affiliation
125         LatexName             email
126         LabelString           "Electronic Address:"
127         OptionalArgs          1
128         PassThru              1
129         TextFont
130           Family              Typewriter
131         EndFont
132         LabelFont
133           Family              Roman
134         EndFont
135 End
136
137
138 Style Author_URL
139         CopyStyle             Author_Email
140         LatexName             homepage
141         LabelString           "URL:"
142         OptionalArgs          1
143         PassThru              1
144 End
145
146
147 Style Collaboration
148         CopyStyle             Affiliation
149         LatexName             collaboration
150         LabelString           "Collaboration:"
151 End
152
153
154 Style Date
155         LabelType             Static
156         LabelString           "Date:"
157         LabelFont
158           Shape               Italic
159         EndFont
160 End
161
162
163 Style Keywords
164         Category              FrontMatter
165         Margin                Dynamic
166         LatexType             Command
167         InTitle               1
168         LatexName             keywords
169         LabelType             Static
170         LabelSep              M
171         LabelString           "Keywords:"
172 End
173
174
175 Style PACS
176         CopyStyle             Keywords
177         LatexName             pacs
178         LabelString           "PACS numbers:"
179 End
180
181
182 Style Preprint
183         Category              FrontMatter
184         Margin                Right_Address_Box
185         LatexType             Command
186         InTitle               1
187         LatexName             preprint
188         ParSkip               0.4
189         BottomSep             1.5
190         ParSep                1.5
191         Align                 Left
192 End
193
194
195 Style Thanks
196         CopyStyle             Affiliation
197         LatexName             thanks
198         LabelString           "Thanks:"
199 End
200
201
202 Style Title
203         OptionalArgs          1
204         Font
205           Series              Bold
206           Size                Large
207         EndFont
208 End
209
210
211 ########### Back matter #############
212
213 Style Acknowledgments
214         CopyStyle             Standard
215         Category              BackMatter
216         LatexType             Environment
217         LatexName             acknowledgments
218         LabelType             Centered_Top_Environment
219         LabelString           "acknowledgments"
220         LabelBottomSep        0.5
221         LabelFont
222           Series              Bold
223           Shape               Smallcaps
224           Size                Larger
225         EndFont
226     TopSep                0.7
227 End
228
229
230 ##### stuff specific to REVTeX 4.1
231
232 Style Ruled_Table
233         CopyStyle             Standard
234     Category              Specials
235         LatexName             ruledtabular
236         LatexType             environment
237 End
238
239
240 Style Turn_Page
241         CopyStyle             Standard
242     Category              Specials
243         LatexName             turnpage
244         LatexType             environment
245 End
246
247
248 Style Wide_Text
249         CopyStyle             Standard
250     Category              Specials
251         LatexName             widetext
252         LatexType             environment
253 End
254
255
256 Float
257         Extension             lov
258         GuiName               Video
259         IsPredefined          true
260         ListCommand           listofvideos
261         ListName              "List of Videos"
262         NumberWithin          none
263         Placement             tbp
264         Style                 plain
265         Type                  video
266         UsesFloatPkg          false
267 End
268
269
270 InsetLayout Flex:Float_Link
271         CopyStyle             Flex:URL
272         LabelString           "Float Link"
273         LatexName             setfloatlink
274         LatexType             command
275         LyXType               custom
276 End
277
278
279 InsetLayout Flex:Lowercase
280         Decoration            conglomerate
281         LabelString           Lowercase
282         LatexName             lowercase
283         LatexType             command
284         LyXType               custom
285         Font
286             # Keep empty to preserve font settings
287             # from the surrounding environment
288         EndFont
289 End
290
291
292 InsetLayout Flex:Surname
293         Decoration            conglomerate
294         LabelString           Surname
295         LatexName             surname
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 NoStyle Chapter
306 NoStyle Chapter*
307 NoStyle LyX-Code
308 NoStyle Right_Address
309 NoStyle Subparagraph
310 NoStyle Subparagraph*