]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-x.inc
update layout files to format 101
[lyx.git] / lib / layouts / revtex4-x.inc
1 # REVTeX 4.x textclass definition file.
2 # Based on official article.layout, revtex4.layout and stdclass.inc definition files,
3 # and on the unofficial revtex4-1.layout by Manoj Rajagopalan, posted to the wiki.
4 #
5 # Author: Julien Rioux <jrioux@lyx.org> and Uwe Stöhr
6 #
7 # This layout is according to
8 # https://journals.aps.org/files/revtex/auguide4-1.pdf
9
10 # a note:
11 #   - we provide natbib-internal according to LyX bug #5182
12 # todo:
13 #     - add support for \onlinecite{}
14
15
16 Format 101
17
18 Input stdclass.inc
19 Input numrevtex.inc
20
21 Provides natbib-internal        1
22 Provides url                    1
23 Provides tablefootnote          1
24 Provides footnote-alternative   1
25
26 SecNumDepth                     4
27 TocDepth                        3
28 DefaultStyle            Standard
29
30 Style Section
31         Align                   Center
32         Font
33           Shape                 Smallcaps
34         EndFont
35         TocLevel 1
36 End
37
38
39 Style Subsubsection
40         Font
41           Shape                 Italic
42         EndFont
43         TocLevel 3
44 End
45
46
47 Style Paragraph
48         Font
49           Shape                 Italic
50         EndFont
51         TocLevel 4
52 End
53
54
55 # This input needs to appear *after* modifications to sections
56 Input stdstarsections.inc
57
58
59 ########### Front matter ############
60
61 Style Abstract
62         InTitle                 1
63 End
64
65
66 Style Affiliation
67         Category                FrontMatter
68         Margin                  Dynamic
69         LatexType               Command
70         InTitle                 1
71         LatexName               affiliation
72         ParSkip                 0.4
73         Align                   Center
74         AlignPossible   Block, Left, Right, Center
75         LabelType               Static
76         LabelSep                M
77         TextFont
78           Family                Typewriter
79         EndFont
80         LabelString             "Affiliation:"
81         LabelFont
82           Color                 textlabel2
83           Series                Bold    
84         EndFont
85         DocBookTag                        address
86         DocBookTagType                    paragraph
87         DocBookWrapperTag                 author
88         DocBookWrapperMergeWithPrevious   true
89         DocBookInInfo                     always
90 End
91
92
93 Style Affiliation_(alternate)
94         CopyStyle               Affiliation
95         LatexName               altaffiliation
96         LabelString             "Affiliation (alternate):"
97         Argument 1
98           LabelString   "Alternate Affiliation Option"
99           Tooltip               "Optional argument to the altaffiliation command"
100         EndArgument
101         PassThru                1
102         DocBookTag                        address
103         DocBookAttr                       role='alternate'
104         DocBookTagType                    paragraph
105         DocBookWrapperTag                 author
106         DocBookWrapperMergeWithPrevious   true
107         DocBookInInfo                     always
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|s"
134           Tooltip               "Optional argument to the email command"
135         EndArgument
136         PassThru                1
137         TextFont
138           Family                Roman
139         EndFont
140         DocBookTag            email
141         DocBookTagType        paragraph
142         DocBookWrapperTag     author
143         DocBookWrapperTagType block
144         DocBookWrapperMergeWithPrevious  true
145         DocBookInInfo         always
146 End
147
148
149 Style Author_URL
150         CopyStyle               Author_Email
151         LatexName               homepage
152         LabelString             "URL:"
153         Argument 1
154           LabelString   "Author URL Option"
155           Tooltip               "Optional argument to the homepage command"
156         EndArgument
157         PassThru                1
158         DocBookTag            uri
159         DocBookTagType        paragraph
160         DocBookWrapperTag     author
161         DocBookWrapperTagType block
162         DocBookWrapperMergeWithPrevious  true
163         DocBookInInfo         always
164 End
165
166
167 Style Collaboration
168         CopyStyle               Affiliation
169         LatexName               collaboration
170         LabelString             "Collaboration:"
171 End
172
173
174 Style Date
175         LabelType               Static
176         LabelString             "Date:"
177 End
178
179
180 Style Keywords
181         Category                FrontMatter
182         Margin                  Dynamic
183         LatexType               Command
184         InTitle                 1
185         LatexName               keywords
186         LabelType               Static
187         LabelSep                M
188         LabelString             "Keywords:"
189         LabelFont
190           Color                 textlabel2
191           Series                Bold
192         EndFont
193         DocBookTag          keyword
194         DocBookTagType      paragraph
195         DocBookWrapperTag   keywordset
196         DocBookInInfo       always
197 End
198
199
200 Style PACS
201         CopyStyle               Keywords
202         LatexName               pacs
203         LabelString             "PACS numbers:"
204         DocBookTag            subjectset
205         DocBookAttr           role='pacs'
206         DocBookTagType        block
207         DocBookItemWrapperTag      subject
208         DocBookItemWrapperTagType  paragraph
209         DocBookItemTag        subjectterm
210         DocBookItemTagType    inline
211         DocBookWrapperTag     NONE
212         DocBookWrapperAttr    ""
213         DocBookInInfo         always
214 End
215
216
217 Style Preprint
218         Category                FrontMatter
219         Margin                  Right_Address_Box
220         LatexType               Command
221         InTitle                 1
222         LatexName               preprint
223         ParSkip                 0.4
224         BottomSep               1.5
225         ParSep                  1.5
226         Align                   Left
227         DocBookWrapperTag   cover
228         DocBookWrapperAttr  role='preprint'
229         DocBookTag          para
230         DocBookInInfo       always
231 End
232
233
234 Style Thanks
235         # TODO: This style has a misleading name, innit?
236         CopyStyle               Affiliation
237         LatexName               thanks
238         LabelString             "Title footnote:"
239         DocBookTag            subtitle
240         DocBookAttr           role='footnote'
241         DocBookWrapperTag     NONE
242         DocBookInInfo         maybe
243 End
244
245
246 Style Title
247         Argument 1
248           LabelString   "Short Title|S"
249           Tooltip               "Short title as it appears in the running headers"
250           InsertCotext  1
251         EndArgument
252         Font
253           Series                Bold
254           Size                  Large
255         EndFont
256 End
257
258
259 ########### Back matter #############
260
261 Style Acknowledgments
262         CopyStyle               Standard
263         Category                BackMatter
264         LatexType               Environment
265         LatexName               acknowledgments
266         LabelType               Centered
267         LabelString             "acknowledgments"
268         LabelBottomSep  0.5
269         LabelFont
270           Series                Bold
271           Shape                 Smallcaps
272           Size                  Larger
273         EndFont
274         TopSep                  0.7
275         DocBookTag            para
276         DocBookWrapperTag     acknowledgements
277         DocBookSection        true
278 End
279
280
281 ##### stuff specific to REVTeX 4.1
282
283 Style Ruled_Table
284         CopyStyle               Standard
285         Category                Specials
286         LatexName               ruledtabular
287         LatexType               environment
288 End
289
290
291 Style Turn_Page
292         CopyStyle               Standard
293         Category                Specials
294         LatexName               turnpage
295         LatexType               environment
296 End
297
298
299 Style Wide_Text
300         CopyStyle               Standard
301         Category                Specials
302         LatexName               widetext
303         LatexType               environment
304 End
305
306
307 Input stdfloatnames.inc
308
309 Float
310         Type                    algorithm
311         GuiName                 Algorithm
312         Placement               H
313         AllowedPlacement none
314         AllowsSideways  0
315         AllowsWide              0
316         Extension               loa
317         NumberWithin    none
318         Style                   ruled
319         ListName                "List of Algorithms"
320         IsPredefined    false
321         UsesFloatPkg    true
322         RefPrefix               alg
323 End
324
325
326 Float
327         Extension               lov
328         GuiName                 Video
329         IsPredefined    true
330         ListCommand             listofvideos
331         ListName                "List of Videos"
332         NumberWithin    none
333         Placement               tbp
334         AllowsSideways  0
335         Style                   plain
336         Type                    video
337         UsesFloatPkg    false
338 End
339
340
341 OutlinerName video        "Videos"
342
343
344 InsetLayout Flex:Float_Link
345         CopyStyle               Flex:URL
346         LabelString             "Float link"
347         LatexName               setfloatlink
348         LatexType               command
349         LyXType                 custom
350 End
351
352
353 InsetLayout Flex:Lowercase
354         LyxType                 custom
355         LatexType               command
356         LatexName               lowercase
357         LabelString             "lowercase text"
358         Font
359           # Keep empty to preserve font settings
360           # from the surrounding environment
361         EndFont
362         LabelFont
363           Size                  Small
364         EndFont
365         ResetsFont true
366 End
367
368
369 InsetLayout "Flex:Online cite"
370         LyxType                 custom
371         LatexType               command
372         LatexName               onlinecite
373         LabelString             "online cite"
374         Argument 1
375           LabelString   "Text behind"
376           Tooltip               "text behind the cite"
377         EndArgument
378         Font
379           # Keep empty to preserve font settings
380           # from the surrounding environment
381         EndFont
382         LabelFont
383           Size                  Small
384         EndFont
385         ResetsFont true
386 End
387
388
389 InsetLayout Flex:Surname
390         Decoration              conglomerate
391         LabelString             Surname
392         LatexName               surname
393         LatexType               command
394         LyXType                 custom
395         Font
396           # Keep empty to preserve font settings
397           # from the surrounding environment
398         EndFont
399         LabelFont
400           Color                 textlabel2
401           Size                  Small
402         EndFont
403         ResetsFont true
404 End
405
406
407 # RevTeX uses normal footnotes in tables
408 InsetLayout Foot:InFloatTable
409         CopyStyle             Foot
410 End
411
412
413 NoStyle Chapter
414 NoStyle Chapter*
415 NoStyle LyX-Code
416 NoStyle Right_Address
417 NoStyle Subparagraph
418 NoStyle Subparagraph*