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