]> git.lyx.org Git - lyx.git/blob - lib/layouts/IEEEtran.layout
fix column default of IEEEtran layout
[lyx.git] / lib / layouts / IEEEtran.layout
1 #% Do not delete he line below; configure depends on this
2 #  \DeclareLaTeXClass{IEEE Transactions}
3 #  \DeclareCategory{Articles}
4 # Author : Allan Rae <rae@lyx.org>
5 #
6 # revised for IEEEtran version 1.7a
7 # Author: Uwe Stöhr (uwestoehr@web.de)
8 #
9 # IEEtran textclass definition file.
10
11
12 Format 104
13
14 Columns         2
15 Sides           1
16 SecNumDepth     3
17 TocDepth        3
18 DefaultStyle    Standard
19
20 ClassOptions
21   FontSize      9|10|11|12
22 end
23
24
25 # This is just to show how to declare the default font.
26 # The defaults are exactly those shown here.
27 DefaultFont
28   Family        Roman
29   Series        Medium
30   Shape         Up
31   Size          Normal
32   Color         None
33 EndFont
34
35
36 Style Standard
37   Category      MainText
38   Margin        Static
39   LatexType     Paragraph
40   LatexName     dummy
41   ParIndent     MM
42   ParSkip       0.4
43   Align         Block
44   AlignPossible Block, Left, Right, Center
45   LabelType     No_Label
46   DocBookTag    para
47 End
48
49 Counter         theorem
50         GuiName Theorem
51         RefFormat thm "Theorem \arabic{theorem}"
52         RefFormat cor "Corollary \arabic{theorem}"
53         RefFormat lem "Lemma \arabic{theorem}"
54         RefFormat prop "Proposition \arabic{theorem}"
55         RefFormat conj "Conjecture \arabic{theorem}"
56         RefFormat def "Definition \arabic{theorem}"
57         RefFormat exa "Example \arabic{theorem}"
58         RefFormat prob "Problem \arabic{theorem}"
59         RefFormat exer "Exercise \arabic{theorem}"
60         RefFormat solu "Solution \arabic{theorem}"
61         RefFormat rem "Remark \arabic{theorem}"
62         RefFormat claim "Claim \arabic{theorem}"
63         RefFormat fact "Fact \arabic{theorem}"
64         RefFormat cri "Criterion \arabic{theorem}"
65         RefFormat alg "Algorithm \arabic{theorem}"
66 End
67
68 Input stdcounters.inc
69 Input stdfloats.inc
70 Input stdlists.inc
71 Input stdsections.inc
72 Input stdstarsections.inc
73 Input stdlayouts.inc
74 Input lyxmacros.inc
75
76 ProvidesModule theorems-std
77 Input theorems.inc
78
79 NoStyle Chapter
80 NoCounter chapter
81 NoStyle Chapter*
82
83
84 Style Title
85   Margin        Static
86   LatexType     Command
87   LatexName     title
88   Category      FrontMatter
89   InTitle       1
90   ResetArgs     1
91   ParSkip       0.4
92   ItemSep       0
93   TopSep        0
94   BottomSep     1
95   ParSep        1
96   Align         Center
97   LabelType     No_Label
98   Font
99     Size        Largest
100   EndFont
101   DocBookTag      title
102   DocBookTagType  paragraph
103   DocBookInInfo   maybe
104 End
105
106
107 InsetLayout Flex:IEEE_membership
108   LyxType       custom
109   LatexType     command
110   ForcePlain    1
111   LatexName     IEEEmembership
112   LabelString   "IEEE membership"
113   Font
114     Shape       Italic
115     Size        Large
116     Misc        No_Emph
117     Misc        No_Noun
118     Misc        No_Bar
119   EndFont
120   LabelFont
121     Color       textlabel2
122     Size        Small
123   EndFont
124   ResetsFont true
125 End
126
127
128 InsetLayout Flex:Lowercase
129   CopyStyle     Flex:IEEE_membership
130   LatexType     command
131   LatexName     MakeLowercase
132   LabelString   "lowercase"
133   Font
134     Size        Normal
135   EndFont
136 End
137
138
139 Style Author
140   Margin        Static
141   LatexType     Command
142   Category      FrontMatter
143   InTitle       1
144   Argument 1
145     LabelString "Short Author|S"
146     Tooltip     "A short version of the author name"
147     InsertCotext 1
148   EndArgument
149   LatexName     author
150   LabelSep      xxx
151   ParSkip       0.4
152   TopSep        1.3
153   BottomSep     0.7
154   ParSep        0.7
155   Align         Center
156   LabelType     No_Label
157   Font
158     Size        Large
159   EndFont
160   DocBookTag            personname
161   DocBookTagType        paragraph
162   DocBookWrapperTag     author
163   DocBookWrapperTagType inline
164   DocBookInInfo         always
165 End
166
167
168 InsetLayout Flex:Author_Name
169   LyxType       custom
170   LatexType     command
171   Decoration    Classic
172   ForcePlain    1
173   LaTeXName     IEEEauthorblockN
174   LabelString   "Author name"
175   Font
176     Size        Large
177   EndFont
178   LabelFont
179     Color       textlabel1
180     Size        Small
181   EndFont
182         ResetsFont true
183 End
184
185
186 InsetLayout Flex:Author_Affiliation
187   CopyStyle     Flex:Author_Name
188   LaTeXName     IEEEauthorblockA
189   LabelString   "Author affiliation"
190   Font
191     Size        Normal
192   EndFont
193   LabelFont
194     Color       textlabel1
195     Size        Small
196   EndFont
197 End
198
199
200 InsetLayout Flex:Author_Mark
201         LyxType         custom
202         LatexType       command
203         ForcePlain      1
204         LatexName       IEEEauthorrefmark
205         LabelString     "Author mark"
206         Font
207           Color         foreground
208           Size          Small
209           Family        Roman
210           Shape         Up
211           Series        Medium
212           Misc          No_Emph
213           Misc          No_Noun
214           Misc          No_Bar
215         EndFont
216         LabelFont
217           Color         latex
218           Size          Small
219         EndFont
220         ResetsFont true
221 End
222
223
224 Style Special_Paper_Notice
225   CopyStyle     Title
226   LatexName     IEEEspecialpapernotice
227   InTitle       1
228   Font
229     Shape       Italic
230     Size        Large
231   EndFont
232   DocBookTag  subtitle
233 End
234
235
236 Style After_Title_Text
237   CopyStyle     Special_Paper_Notice
238   LatexName     IEEEaftertitletext
239   Font
240     Shape       Up
241     Size        Normal
242   EndFont
243   DocBookTag          para
244   DocBookWrapperTag   dedication
245   DocBookWrapperAttr  role='IEEEaftertitletext'
246   DocBookInInfo       always
247 End
248
249
250 Style Page_headings
251   LaTeXType     Command
252   LaTeXName     markboth
253   Category      FrontMatter
254   InTitle       1
255   Align         Center
256   Argument 1
257     Mandatory   1
258     AutoInsert  1
259     LabelString "Left Side"
260     Tooltip     "Left side of the header line"
261   EndArgument
262   Font
263     Size        Small
264   EndFont
265   Preamble
266   % protect \markboth against an old bug reintroduced in babel >= 3.8g
267   \let\oldforeign@language\foreign@language
268   \DeclareRobustCommand{\foreign@language}[1]{%
269     \lowercase{\oldforeign@language{#1}}}
270   EndPreamble
271   DocBookTag          titleabbrev
272   DocBookInInfo       maybe
273 End
274
275
276 Style MarkBoth
277   ObsoletedBy   Page_headings
278 End
279
280
281 Style Publication_ID
282   CopyStyle     Special_Paper_Notice
283   LatexName     IEEEpubid
284   Font
285     Shape       Up
286     Size        Small
287   EndFont
288   DocBookTag     releaseinfo
289   DocBookInInfo  always
290 End
291
292
293 Style Abstract
294   Margin        First_Dynamic
295   LatexType     Environment
296   LatexName     abstract
297   Category      FrontMatter
298   TopSep        0.7
299   BottomSep     0.7
300   ParSkip       0.4
301   LabelType     Static
302   LabelString   "Abstract---"
303   Font
304     Series      Bold
305     Size        small
306   EndFont
307   LabelFont
308     Shape       Italic
309     Series      Bold
310     Size        Small
311   EndFont
312   DocBookAbstract       true
313   DocBookInInfo         always
314   DocBookWrapperTag     abstract
315   DocBookWrapperMergeWithPrevious    true
316   DocBookTag            para
317 End
318
319
320 Style Keywords
321   CopyStyle     Abstract
322   LatexName     IEEEkeywords
323   LabelString   "Index Terms---"
324   DocBookTag         keyword
325   DocBookTagType     paragraph
326   DocBookWrapperTag  keywordset
327   DocBookInInfo      always
328   DocBookAbstract    false
329 End
330
331
332 InsetLayout Flex:Paragraph_Start
333   LyxType       custom
334   LatexType     command
335   LaTeXName     IEEEPARstart
336   LabelString   "Paragraph Start"
337   Argument 1
338     Mandatory   1
339     AutoInsert  1
340     LabelString "First Char"
341     Tooltip     "First character of first word"
342   EndArgument
343   Font
344     Size        Small
345   EndFont
346         ResetsFont true
347 End
348
349
350 Style Appendices
351   Margin        Dynamic
352   LatexType     Command
353   LatexName     appendices
354   Category      BackMatter
355   KeepEmpty     1
356   ParSkip       0.4
357   Align         Block
358   LabelSep      xx
359   LabelType     Static
360   LabelString   "Appendices"
361   LabelFont
362     Series      Bold
363     Color       textlabel2
364   EndFont
365 End
366
367
368 Style Peer_Review_Title
369   CopyStyle     Appendices
370   LatexName     IEEEpeerreviewmaketitle
371   Category      FrontMatter
372   TopSep        1
373   LabelString   "PeerReviewTitle"
374 End
375
376
377 Style Appendix
378   CopyStyle     Appendices
379   LatexName     appendix
380   LabelString   "Appendix"
381   Argument 1
382     LabelString "Short Title"
383     Tooltip     "Short title for the appendix"
384     InsertCotext 1
385   EndArgument
386 End
387
388
389 Style Bibliography
390   Margin        First_Dynamic
391   LatexType     Bib_Environment
392   LatexName     thebibliography
393   Category      BackMatter
394   NextNoIndent  1
395   ToggleIndent  Never
396   LeftMargin    MM
397   ParSkip       0.4
398   ItemSep       0
399   TopSep        0.7
400   BottomSep     0.7
401   ParSep        0.5
402   Align         Block
403   AlignPossible Block, Left
404   LabelType     Bibliography
405   LabelString   "References"
406   LabelBottomSep 1.2
407   LabelFont
408     Series      Bold
409     Size        Larger
410   EndFont
411   TocLevel      1
412   IsTocCaption  0
413   Argument listpreamble:1
414     LabelString    "Bib preamble"
415     MenuString     "Bibliography Preamble"
416     Tooltip        "LaTeX code to be inserted before the first bibliography item"
417     PassThru       1
418     Font
419       Family    typewriter
420       Color     latex
421     EndFont
422   EndArgument
423 End
424
425
426 Style Biography
427   LaTeXType     Environment
428   LaTeXName     IEEEbiography
429   Category      BackMatter
430   Argument 1
431     LabelString "Photo"
432     Tooltip     "Optional photo for biography"
433   EndArgument
434   Argument 2
435     Mandatory   1
436     AutoInsert  1
437     LabelString "Name"
438     Tooltip     "Name of the author"
439   EndArgument
440   Align Block
441   TextFont
442     Size        Small
443   EndFont
444 End
445
446
447 Style Biography_without_photo
448   CopyStyle     Biography
449   LaTeXName     IEEEbiographynophoto
450   ResetArgs     1
451   Argument 1
452     Mandatory   1
453     AutoInsert  1
454     LabelString "Name"
455     Tooltip     "Name of the author"
456   EndArgument
457 End
458
459 Style BiographyNoPhoto
460   ObsoletedBy   Biography_without_photo
461 End
462
463
464 Style Proof
465   Category      Reasoning
466   Margin        First_Dynamic
467   LatexType     Environment
468   LatexName     IEEEproof
469   NextNoIndent  1
470   Argument 1
471     LabelString "Alternative Proof String"
472     Tooltip     "An alternative proof string"
473   EndArgument
474   LabelSep      xx
475   ParIndent     MMM
476   ParSkip       0.4
477   ItemSep       0.2
478   TopSep        0.7
479   BottomSep     0.7
480   ParSep        0.3
481   Align         Block
482   AlignPossible Block, Left
483   LabelType     Static
484   LabelString   "Proof."
485   EndLabelType  Filled_Box
486   Font
487     Shape       Up
488     Size        Normal
489   EndFont
490   LabelFont
491     Shape       Italic
492   EndFont
493   DocBookTag            para
494   DocBookAttr           role='proof'
495 End