]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4-x.inc
DocBook: deploy fix for acknowledgements.
[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 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         DocBookSection        true
275 End
276
277
278 ##### stuff specific to REVTeX 4.1
279
280 Style Ruled_Table
281         CopyStyle               Standard
282         Category                Specials
283         LatexName               ruledtabular
284         LatexType               environment
285 End
286
287
288 Style Turn_Page
289         CopyStyle               Standard
290         Category                Specials
291         LatexName               turnpage
292         LatexType               environment
293 End
294
295
296 Style Wide_Text
297         CopyStyle               Standard
298         Category                Specials
299         LatexName               widetext
300         LatexType               environment
301 End
302
303
304 Input stdfloatnames.inc
305
306 Float
307         Type                    algorithm
308         GuiName                 Algorithm
309         Placement               H
310         AllowedPlacement none
311         AllowsSideways  0
312         AllowsWide              0
313         Extension               loa
314         NumberWithin    none
315         Style                   ruled
316         ListName                "List of Algorithms"
317         IsPredefined    false
318         UsesFloatPkg    true
319         RefPrefix               alg
320 End
321
322
323 Float
324         Extension               lov
325         GuiName                 Video
326         IsPredefined    true
327         ListCommand             listofvideos
328         ListName                "List of Videos"
329         NumberWithin    none
330         Placement               tbp
331         AllowsSideways  0
332         Style                   plain
333         Type                    video
334         UsesFloatPkg    false
335 End
336
337
338 OutlinerName video        "Videos"
339
340
341 InsetLayout Flex:Float_Link
342         CopyStyle               Flex:URL
343         LabelString             "Float link"
344         LatexName               setfloatlink
345         LatexType               command
346         LyXType                 custom
347 End
348
349
350 InsetLayout Flex:Lowercase
351         LyxType                 custom
352         LatexType               command
353         LatexName               lowercase
354         LabelString             "lowercase text"
355         Font
356           # Keep empty to preserve font settings
357           # from the surrounding environment
358         EndFont
359         LabelFont
360           Size                  Small
361         EndFont
362         ResetsFont true
363 End
364
365
366 InsetLayout "Flex:Online cite"
367         LyxType                 custom
368         LatexType               command
369         LatexName               onlinecite
370         LabelString             "online cite"
371         Argument 1
372           LabelString   "Text behind"
373           Tooltip               "text behind the cite"
374         EndArgument
375         Font
376           # Keep empty to preserve font settings
377           # from the surrounding environment
378         EndFont
379         LabelFont
380           Size                  Small
381         EndFont
382         ResetsFont true
383 End
384
385
386 InsetLayout Flex:Surname
387         Decoration              conglomerate
388         LabelString             Surname
389         LatexName               surname
390         LatexType               command
391         LyXType                 custom
392         Font
393           # Keep empty to preserve font settings
394           # from the surrounding environment
395         EndFont
396         LabelFont
397           Color                 green
398           Size                  Small
399         EndFont
400         ResetsFont true
401 End
402
403
404 # RevTeX uses normal footnotes in tables
405 InsetLayout Foot:InFloatTable
406         CopyStyle             Foot
407 End
408
409
410 NoStyle Chapter
411 NoStyle Chapter*
412 NoStyle LyX-Code
413 NoStyle Right_Address
414 NoStyle Subparagraph
415 NoStyle Subparagraph*