]> git.lyx.org Git - lyx.git/blob - lib/layouts/IEEEtran.layout
Fix conflicting inset font defaults (bug #8874)
[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 49
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 End
46
47 Counter         theorem
48 End
49
50 Input stdcounters.inc
51 Input stdfloats.inc
52 Input stdlists.inc
53 Input stdsections.inc
54 Input stdstarsections.inc
55 Input stdlayouts.inc
56 Input lyxmacros.inc
57
58 ProvidesModule theorems-std
59 Input theorems.inc
60
61 NoStyle Chapter
62 NoCounter chapter
63 NoStyle Chapter*
64
65
66 Style Title
67   Margin        Static
68   LatexType     Command
69   LatexName     title
70   Category      FrontMatter
71   InTitle       1
72   ResetArgs     1
73   ParSkip       0.4
74   ItemSep       0
75   TopSep        0
76   BottomSep     1
77   ParSep        1
78   Align         Center
79   LabelType     No_Label
80   Font
81     Size        Largest
82   EndFont
83 End
84
85
86 InsetLayout Flex:IEEE_membership
87   LyxType       custom
88   LatexType     command
89   ForcePlain    1
90   LatexName     IEEEmembership
91   LabelString   "IEEE membership"
92   Font
93     Shape       Italic
94     Size        Large
95     Misc        No_Emph
96     Misc        No_Noun
97     Misc        No_Bar
98   EndFont
99   LabelFont
100     Color       green
101     Size        Small
102   EndFont
103         ResetsFont true
104 End
105
106
107 InsetLayout Flex:Lowercase
108   CopyStyle     Flex:IEEE_membership
109   LatexType     command
110   LatexName     MakeLowercase
111   LabelString   "lowercase"
112   Font
113     Size        Normal
114   EndFont
115 End
116
117
118 Style Author
119   Margin        Static
120   LatexType     Command
121   Category      FrontMatter
122   InTitle       1
123   Argument 1
124     LabelString "Short Author|S"
125     Tooltip     "A short version of the author name"
126   EndArgument
127   LatexName     author
128   LabelSep      xxx
129   ParSkip       0.4
130   TopSep        1.3
131   BottomSep     0.7
132   ParSep        0.7
133   Align         Center
134   LabelType     No_Label
135   Font
136     Size        Large
137   EndFont
138 End
139
140
141 InsetLayout Flex:Author_Name
142   LyxType       custom
143   LatexType     command
144   Decoration    Classic
145   ForcePlain    1
146   LaTeXName     IEEEauthorblockN
147   LabelString   "Author name"
148   Font
149     Size        Large
150   EndFont
151   LabelFont
152     Color       blue
153     Size        Small
154   EndFont
155         ResetsFont true
156 End
157
158
159 InsetLayout Flex:Author_Affiliation
160   CopyStyle     Flex:Author_Name
161   LaTeXName     IEEEauthorblockA
162   LabelString   "Author affiliation"
163   Font
164     Size        Normal
165   EndFont
166   LabelFont
167     Color       blue
168     Size        Small
169   EndFont
170 End
171
172
173 InsetLayout Flex:Author_Mark
174         LyxType         custom
175         LatexType       command
176         ForcePlain      1
177         LatexName       IEEEauthorrefmark
178         LabelString     "Author mark"
179         Font
180           Color         foreground
181           Size          Small
182           Family        Roman
183           Shape         Up
184           Series        Medium
185           Misc          No_Emph
186           Misc          No_Noun
187           Misc          No_Bar
188         EndFont
189         LabelFont
190           Color         latex
191           Size          Small
192         EndFont
193         ResetsFont true
194 End
195
196
197 Style Special_Paper_Notice
198   CopyStyle     Title
199   LatexName     IEEEspecialpapernotice
200   InTitle       1
201   Font
202     Shape       Italic
203     Size        Large
204   EndFont
205 End
206
207
208 Style After_Title_Text
209   CopyStyle     Special_Paper_Notice
210   LatexName     IEEEaftertitletext
211   Font
212     Shape       Up
213     Size        Normal
214   EndFont
215 End
216
217
218 Style Page_headings
219   LaTeXType     Command
220   LaTeXName     markboth
221   Category      FrontMatter
222   InTitle       1
223   Align         Center
224   Argument 1
225     Mandatory   1
226     AutoInsert  1
227     LabelString "Left Side"
228     Tooltip     "Left side of the header line"
229   EndArgument
230   Font
231     Size        Small
232   EndFont
233   Preamble
234   % protect \markboth against an old bug reintroduced in babel >= 3.8g
235   \let\oldforeign@language\foreign@language
236   \DeclareRobustCommand{\foreign@language}[1]{%
237     \lowercase{\oldforeign@language{#1}}}
238   EndPreamble
239 End
240
241
242 Style MarkBoth
243   ObsoletedBy   Page_headings
244 End
245
246
247 Style Publication_ID
248   CopyStyle     Special_Paper_Notice
249   LatexName     IEEEpubid
250   Font
251     Shape       Up
252     Size        Small
253   EndFont
254 End
255
256
257 Style Abstract
258   Margin        First_Dynamic
259   LatexType     Environment
260   LatexName     abstract
261   Category      FrontMatter
262   TopSep        0.7
263   BottomSep     0.7
264   ParSkip       0.4
265   LabelType     Static
266   LabelString   "Abstract---"
267   Font
268     Series      Bold
269     Size        small
270   EndFont
271   LabelFont
272     Shape       Italic
273     Series      Bold
274     Size        Small
275   EndFont
276 End
277
278
279 Style Keywords
280   CopyStyle     Abstract
281   LatexName     IEEEkeywords
282   LabelString   "Index Terms---"
283 End
284
285
286 InsetLayout Flex:Paragraph_Start
287   LyxType       custom
288   LatexType     command
289   LaTeXName     IEEEPARstart
290   LabelString   "Paragraph Start"
291   Argument 1
292     Mandatory   1
293     AutoInsert  1
294     LabelString "First Char"
295     Tooltip     "First character of first word"
296   EndArgument
297   Font
298     Size        Small
299   EndFont
300         ResetsFont true
301 End
302
303
304 Style Appendices
305   Margin        Dynamic
306   LatexType     Command
307   LatexName     appendices
308   Category      BackMatter
309   KeepEmpty     1
310   ParSkip       0.4
311   Align         Block
312   LabelSep      xx
313   LabelType     Static
314   LabelString   "Appendices"
315   LabelFont
316     Series      Bold
317     Color       Green
318   EndFont
319 End
320
321
322 Style Peer_Review_Title
323   CopyStyle     Appendices
324   LatexName     IEEEpeerreviewmaketitle
325   Category      FrontMatter
326   TopSep        1
327   LabelString   "PeerReviewTitle"
328 End
329
330
331 Style Appendix
332   CopyStyle     Appendices
333   LatexName     appendix
334   LabelString   "Appendix"
335   Argument 1
336     LabelString "Short Title"
337     Tooltip     "Short title for the appendix"
338   EndArgument
339 End
340
341
342 Style Bibliography
343   Margin        First_Dynamic
344   LatexType     Bib_Environment
345   LatexName     thebibliography
346   Category      BackMatter
347   NextNoIndent  1
348   LeftMargin    MM
349   ParSkip       0.4
350   ItemSep       0
351   TopSep        0.7
352   BottomSep     0.7
353   ParSep        0.5
354   Align         Block
355   AlignPossible Block, Left
356   LabelType     Bibliography
357   LabelString   "References"
358   LabelBottomSep 1.2
359   LabelFont
360     Series      Bold
361     Size        Larger
362   EndFont
363 End
364
365
366 Style Biography
367   LaTeXType     Environment
368   LaTeXName     IEEEbiography
369   Category      BackMatter
370   Argument 1
371     LabelString "Photo"
372     Tooltip     "Optional photo for biography"
373   EndArgument
374   Argument 2
375     Mandatory   1
376     AutoInsert  1
377     LabelString "Name"
378     Tooltip     "Name of the author"
379   EndArgument
380   Align Block
381   TextFont
382     Size        Small
383   EndFont
384 End
385
386
387 Style Biography_without_photo
388   CopyStyle     Biography
389   LaTeXName     IEEEbiographynophoto
390   ResetArgs     1
391   Argument 1
392     Mandatory   1
393     AutoInsert  1
394     LabelString "Name"
395     Tooltip     "Name of the author"
396   EndArgument
397 End
398
399 Style BiographyNoPhoto
400   ObsoletedBy   Biography_without_photo
401 End
402
403
404 Style Proof
405   Category      Reasoning
406   Margin        First_Dynamic
407   LatexType     Environment
408   LatexName     IEEEproof
409   NextNoIndent  1
410   Argument 1
411     LabelString "Alternative Proof String"
412     Tooltip     "An alternative proof string"
413   EndArgument
414   LabelSep      xx
415   ParIndent     MMM
416   ParSkip       0.4
417   ItemSep       0.2
418   TopSep        0.7
419   BottomSep     0.7
420   ParSep        0.3
421   Align         Block
422   AlignPossible Block, Left
423   LabelType     Static
424   LabelString   "Proof."
425   EndLabelType  Filled_Box
426   Font
427     Shape       Up
428     Size        Normal
429   EndFont
430   LabelFont
431     Shape       Italic
432   EndFont
433 End