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