]> git.lyx.org Git - features.git/blob - lib/layouts/revtex4.layout
* revtex4.layout : Adapt fonts and numbering to better reflect the pdf output.
[features.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 # Heavily modifed and enhanced by serveral developers.
12
13 Format 35
14
15 Columns                   1
16 Sides                     1
17 PageStyle                 Headers
18 Provides natbib-internal  1
19 Provides url              1
20
21 SecNumDepth               4
22 TocDepth                  3
23
24 # Default textclass options. The user may need to modify this.
25 ClassOptions
26         Other                 "aps,manuscript"
27 End
28
29 Preamble
30         \@ifundefined{textcolor}{}
31         {%
32          \definecolor{BLACK}{gray}{0}
33          \definecolor{WHITE}{gray}{1}
34          \definecolor{RED}{rgb}{1,0,0}
35          \definecolor{GREEN}{rgb}{0,1,0}
36          \definecolor{BLUE}{rgb}{0,0,1}
37          \definecolor{CYAN}{cmyk}{1,0,0,0}
38          \definecolor{MAGENTA}{cmyk}{0,1,0,0}
39          \definecolor{YELLOW}{cmyk}{0,0,1,0}
40         }
41 EndPreamble
42
43
44 Style Standard
45         Category              MainText
46         Margin                Static
47         LatexType             Paragraph
48         LatexName             dummy
49         ParIndent             MM
50         ParSkip               0.4
51         Align                 Block
52         AlignPossible         Block, Left, Right, Center
53         LabelType             No_Label
54 End
55
56
57 # Idea from aapaper: declare all layouts here ("Style Foo\nEnd\n")
58 # so that they appear in a specific order in the layout dropdown menu.
59
60 Input stdinsets.inc
61 Input stdsections.inc
62 Input numrevtex.inc
63
64 Style Section
65         Align                 Center
66         AlignPossible         Block, Center, Left
67         Font
68           Shape               Smallcaps
69         EndFont
70         TocLevel              1
71 End
72
73
74 Style Subsection
75         TocLevel              2
76 End
77
78
79 Style Subsubsection
80         Font
81           Series              Medium
82           Shape               Italic
83         EndFont
84         TocLevel              3
85 End
86
87
88 Style Paragraph
89         TopSep                0.7
90         ParSep                0.4
91         Font
92           Series              Medium
93           Shape               Italic
94         EndFont
95         TocLevel              4
96 End
97
98 # then define the unumbered sections, based on the numbered ones.
99 Input stdstarsections.inc
100
101 NoStyle         Chapter
102 NoStyle         Chapter*
103 NoStyle         Subparagraph
104 NoStyle         Subparagraph*
105
106 Input stdlayouts.inc
107 Input stdlists.inc
108 Input stdtitle.inc
109 Input stdstruct.inc
110
111
112 Style Preprint
113         Category              FrontMatter
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 Date
134         LabelType             Static
135         LabelString           "Date:"
136         LabelFont
137           Shape               Italic
138         EndFont
139 End
140
141
142 Style Affiliation
143         Category              FrontMatter
144         Margin                Dynamic
145         LatexType             Command
146         InTitle               1
147         LatexName             affiliation
148         ParSkip               0.4
149         Align                 Center
150         AlignPossible         Block, Left, Right, Center
151         LabelType             Static
152         LabelSep              M
153         LabelString           "Affiliation:"
154
155         LabelFont
156           Shape               Italic
157         EndFont
158 End
159
160
161 Style AltAffiliation
162         CopyStyle             Affiliation
163         PassThru              1
164         ParbreakIsNewline     1
165         LatexName             altaffiliation
166         OptionalArgs          1
167         LabelString           "AltAffiliation"
168 End
169
170
171 # Address is exactly the same as Affiliation. We just put this in so
172 # that tex2lyx will know what to do with it.
173 Style Address
174         CopyStyle             Affiliation
175         LatexName             address
176         LabelString           "Address:"
177 End
178
179
180 Style Thanks
181         CopyStyle             Affiliation
182         LatexName             thanks
183         LabelString           "Thanks:"
184 End
185
186
187 Style Author_Email
188         CopyStyle             Affiliation
189         PassThru              1
190         ParbreakIsNewline     1
191         LatexName             email
192         OptionalArgs          1
193         LabelString           "Electronic Address:"
194         TextFont
195           Family              Typewriter
196         EndFont
197         LabelFont
198           Family              Roman
199         EndFont
200 End
201
202
203 Style Author_URL
204         CopyStyle             Author_Email
205         PassThru              1
206         ParbreakIsNewline     1
207         LatexName             homepage
208         OptionalArgs          1
209         LabelString           "URL:"
210 End
211
212
213 Style Abstract
214         InTitle               1
215         ItemSep               0.2
216         ParSep                0.3
217 End
218
219
220 Style Acknowledgments
221         Category              BackMatter
222         LatexType             Environment
223         LatexName             acknowledgments
224         ParIndent             MM
225         ParSkip               0.4
226         TopSep                0.7
227         Align                 Block
228         AlignPossible         Block, Left, Right, Center
229         LabelType             Centered_Top_Environment
230         LabelString           "Acknowledgments"
231         LabelBottomSep        0.5
232         LabelFont
233           Series              Bold
234           Size                Large
235         EndFont
236 End
237
238
239 Style PACS
240         Category              FrontMatter
241         Margin                Dynamic
242         LatexType             Command
243         InTitle               1
244         LatexName             pacs
245         LabelType             Static
246         LabelSep              M
247         LabelString           "PACS number:"
248 End
249
250
251 Style Keywords
252         CopyStyle             PACS
253         InTitle               1
254         Latexname             keywords
255         LabelSep              M
256         LabelString           "Keywords:"
257 End
258
259
260 Input stdfloats.inc
261 Input stdcounters.inc