]> git.lyx.org Git - lyx.git/blob - lib/layouts/revtex4.layout
Fix bug #7630.
[lyx.git] / lib / layouts / revtex4.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[revtex4,natbib.sty,revsymb.sty]{article (REVTeX 4)}
3 # RevTeX 4 textclass definition file. Based on:
4 # AMS-Article textclass definition file. Taken from initial LyX source code
5 # and from the Article textclass definition file, following the AMS sample
6 # paper "testmath.tex" of January, 1995
7 # Author : David L. Johnson <dlj0@lehigh.edu> (AMS)
8 #          Marc Mengel (RevTeX)
9 #          Amir Karger (LyX v11.34 style modifications)
10 #          Amir Karger (RevTeX 4 beta) 9/1999, 7/2000
11
12
13 Format 35
14 Columns                 1
15 Sides                   1
16 PageStyle               Headers
17 Provides natbib-internal        1
18 Provides url            1
19
20 # Default textclass options. The user may need to modify this.
21 ClassOptions
22         Other                 "aps,manuscript"
23 End
24
25 Preamble
26         \@ifundefined{textcolor}{}
27         {%
28          \definecolor{BLACK}{gray}{0}
29          \definecolor{WHITE}{gray}{1}
30          \definecolor{RED}{rgb}{1,0,0}
31          \definecolor{GREEN}{rgb}{0,1,0}
32          \definecolor{BLUE}{rgb}{0,0,1}
33          \definecolor{CYAN}{cmyk}{1,0,0,0}
34          \definecolor{MAGENTA}{cmyk}{0,1,0,0}
35          \definecolor{YELLOW}{cmyk}{0,0,1,0}
36          }
37 EndPreamble
38
39
40 Style Standard
41         Margin                Static
42         LatexType             Paragraph
43         LatexName             dummy
44         ParIndent             MM
45         ParSkip               0.4
46         Align                 Block
47         AlignPossible         Block, Left, Right, Center
48         LabelType             No_Label
49 End
50
51
52 # Idea from aapaper: declare all layouts here ("Style Foo\nEnd\n")
53 # so that they appear in a specific order in the layout dropdown menu.
54
55 Input stdinsets.inc
56 Input stdsections.inc
57 Input numrevtex.inc
58
59 Style Section
60         Align                 Center
61         AlignPossible         Block, Center, Left
62         Font
63           Series              Medium
64           Shape               Smallcaps
65           Size                Large
66         EndFont
67         TocLevel 1
68 End
69
70
71 Style Subsection
72         Font
73           Series              Bold
74           Size                Normal
75         EndFont
76         TocLevel 2
77 End
78
79
80 Style Subsubsection
81         Font
82           Shape               Italic
83           Size                Normal
84         EndFont
85         TocLevel 3
86 End
87
88
89 Style Paragraph
90         TopSep                0.7
91         ParSep                0.4
92         Font
93           Shape               Italic
94           Size                Normal
95         EndFont
96         TocLevel 4
97 End
98
99 # then define the unumbered sections, based on the numbered ones.
100 Input stdstarsections.inc
101
102 NoStyle         Chapter
103 NoStyle         Chapter*
104 NoStyle         Subparagraph
105 NoStyle         Subparagraph*
106
107 Input stdlayouts.inc
108 Input stdlists.inc
109 Input stdtitle.inc
110 Input stdstruct.inc
111
112
113 Style Preprint
114         Margin                Right_Address_Box
115         LatexType             Command
116         InTitle               1
117         LatexName             preprint
118         ParSkip               0.4
119         BottomSep             1.5
120         ParSep                1.5
121         Align                 Left
122 End
123
124
125 Style Title
126         Font
127           Series              Bold
128           Size                Large
129         EndFont
130 End
131
132
133 Style Author
134         Font
135           Size                Large
136           Shape               Smallcaps
137         EndFont
138 End
139
140
141 Style Date
142         LabelType             Static
143         LabelString           "Date:"
144         LabelFont
145           Shape               Italic
146           Size                Large
147         EndFont
148 End
149
150
151 Style Affiliation
152         Margin                Dynamic
153         LatexType             Command
154         InTitle               1
155         LatexName             affiliation
156         ParSkip               0.4
157 #  BottomSep            1.5
158 #  ParSep               1.5
159         Align                 Center
160         AlignPossible         Block, Left, Right, Center
161         LabelType             Static
162         LabelSep              M
163         LabelString           "Affiliation:"
164
165         LabelFont
166           Shape               Italic
167         EndFont
168 End
169
170
171 Style AltAffiliation
172         CopyStyle             Affiliation
173         PassThru              1
174         ParbreakIsNewline     1
175         LatexName             altaffiliation
176         OptionalArgs          1
177         LabelString           "AltAffiliation"
178 End
179
180
181 # Address is exactly the same as Affiliation. We just put this in so
182 # that tex2lyx will know what to do with it.
183 Style Address
184         CopyStyle             Affiliation
185         LatexName             address
186         LabelString           "Address:"
187 End
188
189
190 Style Thanks
191         CopyStyle             Affiliation
192         LatexName             thanks
193         LabelString           "Thanks:"
194 End
195
196
197 Style Author_Email
198         CopyStyle             Affiliation
199         PassThru              1
200         ParbreakIsNewline     1
201         LatexName             email
202         OptionalArgs          1
203         LabelString           "Electronic Address:"
204         TextFont
205           Family              Typewriter
206         EndFont
207         LabelFont
208           Family              Roman
209         EndFont
210 End
211
212
213 Style Author_URL
214         CopyStyle             Author_Email
215         PassThru              1
216         ParbreakIsNewline     1
217         LatexName             homepage
218         OptionalArgs          1
219         LabelString           "URL:"
220 End
221
222
223 Style Abstract
224         InTitle               1
225         ItemSep               0.2
226         ParSep                0.3
227         LabelFont
228           Size                Large
229         EndFont
230 End
231
232
233 Style Acknowledgments
234         LatexType             Environment
235         LatexName             acknowledgments
236         ParIndent             MM
237         ParSkip               0.4
238         Align                 Block
239         AlignPossible         Block, Left, Right, Center
240         LabelType             Centered_Top_Environment
241         LabelString           "acknowledgments"
242         LabelBottomSep        0.5
243         LabelFont
244           Series              Medium
245           Shape               Smallcaps
246           Size                Large
247         EndFont
248 End
249
250
251 Style PACS
252         Margin                Dynamic
253         LatexType             Command
254         InTitle               1
255         LatexName             pacs
256         LabelType             Static
257         LabelSep              M
258         LabelString           "PACS number:"
259 End
260
261
262 Style Keywords
263         CopyStyle             PACS
264         InTitle               1
265         Latexname             keywords
266         LabelSep              M
267         LabelString           "Keywords:"
268 End
269
270
271 Input stdfloats.inc
272 Input stdcounters.inc