This patch backports our IEEEtran layout file revision to branch? OK?
regards Uwe
Index: IEEEtran.layout =================================================================== --- IEEEtran.layout (revision 34441) +++ IEEEtran.layout (working copy) @@ -1,496 +1,303 @@ #% Do not delete he line below; configure depends on this # \DeclareLaTeXClass{article (IEEEtran)} -# Based on Article textclass definition file. -# # Author : Allan Rae <r...@lyx.org> # -# IEEEtran is the class used for submitting to any of the IEEE Transactions. -# The on-screen display in LyX is set to reflect the appearance of two column -# text. The section counters appear correctly in the output but are -# in arabic numerals in LyX -- this requires some additional code in LyX -# to get right (maybe LyX-2.0 ;-). +# revised for IEEtran version 1.7a +# Author: Uwe Stöhr (uwesto...@web.de) # -# IEEEtran.cls can be obtained from the www.ieee.org website -- look for -# the author information area. There is a LaTeX 2.09 IEEEtran.sty available -# also but LyX doesn't support 2.09 stuff so don't get that one. +# IEEtran textclass definition file. + Format 11 -Style Standard - Margin Static - LatexType Paragraph - LatexName dummy - ParIndent MM - ParSkip 0.4 - Align Block - AlignPossible Block, Left, Right, Center - LabelType No_Label -End +Sides 1 +SecNumDepth 3 +TocDepth 3 +DefaultStyle Standard +ClassOptions + FontSize 9|10|11|12 +end -## -## stdlists -## -Input stdlists.inc -Input stdinsets.inc +# This is just to show how to declare the default font. +# The defaults are exactly those shown here. +DefaultFont + Family Roman + Series Medium + Shape Up + Size Normal + Color None +EndFont -# First cut at theorem environment support. -# What other theorem-like environments are needed? -# How many of these should be discarded? -# I got this list from amsmaths*.inc but I haven't -# found an official list of theorem environments for -# IEEE Transactions. -# OH! and all theorems are numbered. Is that a problem? -# Tell me: r...@lyx.org - -# Theorem-numbered style *Template* declaration -Style TheoremTemplate - Margin First_Dynamic - LatexType Environment - LabelSep M - ParIndent MM - ParSep 0.4 - Align Block - AlignPossible Block, Left - LabelType Static - LabelFont - Shape Italic - EndFont - OptionalArgs 1 +Style Standard + Margin Static + LatexType Paragraph + LatexName dummy + ParIndent MM + ParSkip 0.4 + Align Block + AlignPossible Block, Left, Right, Center + LabelType No_Label End - -Style Proof - CopyStyle TheoremTemplate - LatexName proof - LabelString "Proof:" - EndLabelType Filled_Box +Counter theorem End +Input stdcounters.inc +Input stdfloats.inc +Input stdlists.inc +Input stdsections.inc +Input stdstarsections.inc +Input stdlayouts.inc +Input theorems.inc -Style Theorem - CopyStyle TheoremTemplate - LatexName thm - LabelString "Theorem #:" - Preamble - \newtheorem{thm}{Theorem} - EndPreamble -End +NoStyle Chapter +NoStyle Chapter* -Style Lemma - CopyStyle TheoremTemplate - LatexName lemma - LabelString "Lemma #:" - Preamble - \newtheorem{lemma}{Lemma} - EndPreamble -End - -Style Corollary - CopyStyle TheoremTemplate - LatexName cor - LabelString "Corollary #:" - Preamble - \newtheorem{cor}{Corollary} - EndPreamble +Style Title + Margin Static + LatexType Command + LatexName title + Category FrontMatter + InTitle 1 + OptionalArgs 0 + ParSkip 0.4 + ItemSep 0 + TopSep 0 + BottomSep 1 + ParSep 1 + Align Center + LabelType No_Label + Font + Size Largest + EndFont End -Style Proposition - CopyStyle TheoremTemplate - LatexName prop - LabelString "Proposition #:" - Preamble - \newtheorem{prop}{Proposition} - EndPreamble +InsetLayout IEEE_membership + LyxType custom + LatexType command + LatexName IEEEmembership + LabelString "IEEE membership" + Font + Shape Italic + Size Large + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color green + Size Small + EndFont End -Style Conjecture - CopyStyle TheoremTemplate - LatexName conject - LabelString "Conjecture #:" - Preamble - \newtheorem{conject}{Conjecture} - EndPreamble -End - - -Style Criterion - CopyStyle TheoremTemplate - LatexName criter - LabelString "Criterion #:" - Preamble - \newtheorem{criter}{Criterion} - EndPreamble -End - - -Style Fact - CopyStyle TheoremTemplate - LatexName fact - LabelString "Fact #:" - Preamble - \newtheorem{fact}{Fact} - EndPreamble -End - - -Style Axiom - CopyStyle TheoremTemplate - LatexName axi - LabelString "Axiom #:" - Preamble - \newtheorem{axi}{Axiom} - EndPreamble -End - - -Style Definition - CopyStyle TheoremTemplate - LatexName definitn - LabelString "Definition #:" - Preamble - \newtheorem{definitn}{Definition} - EndPreamble -End - - -Style Example - CopyStyle TheoremTemplate - LatexName example - LabelString "Example #:" - Preamble - \newtheorem{example}{Example} - EndPreamble -End - - -Style Condition - CopyStyle TheoremTemplate - LatexName condition - LabelString "Condition #:" - Preamble - \newtheorem{condition}{Condition} - EndPreamble -End - - -Style Problem - CopyStyle TheoremTemplate - LatexName problem - LabelString "Problem #:" - Preamble - \newtheorem{problem}{Problem} - EndPreamble -End - - -Style Exercise - CopyStyle TheoremTemplate - LatexName exacise - LabelString "Exercise #:" - Preamble - \newtheorem{exacise}{Exercise} - EndPreamble -End - - -Style Remark - CopyStyle TheoremTemplate - LatexName remrk - LabelString "Remark #:" - Preamble - \newtheorem{remrk}{Remark} - EndPreamble -End - - -Style Claim - CopyStyle TheoremTemplate - LatexName claim - LabelString "Claim #:" - Preamble - \newtheorem{claim}{Claim} - EndPreamble -End - - -Style Note - CopyStyle TheoremTemplate - LatexName note - LabelString "Note #:" - Preamble - \newtheorem{note}{Note} - EndPreamble -End - - -Style Notation - CopyStyle TheoremTemplate - LatexName notation - LabelString "Notation #:" - Preamble - \newtheorem{notation}{Notation} - EndPreamble -End - - -Style Case - CopyStyle TheoremTemplate - LatexName case - LabelString "Case #:" - Preamble - \newtheorem{case}{Case} - EndPreamble -End - -NoStyle TheoremTemplate - - - -## -## stdcounters, stdsections, and stdstarsections -## - -Input stdcounters.inc -Input stdsections.inc -Input stdstarsections.inc - -NoStyle Part -NoStyle Part* -NoStyle Chapter -NoStyle Chapter* -NoStyle Subparagraph -NoStyle Subparagraph* - - -Style Section - Align Center - AlignPossible Block, Center, Left +InsetLayout Lowercase + CopyStyle IEEE_membership + LatexType command + LatexName MakeLowercase + LabelString "lowercase" Font - Shape Smallcaps - Size Normal + Size Normal EndFont End -Style Subsection +Style Author + Margin Static + LatexType Command + Category FrontMatter + InTitle 1 + OptionalArgs 1 + LatexName author + LabelSep xxx + ParSkip 0.4 + TopSep 1.3 + BottomSep 0.7 + ParSep 0.7 + Align Center + LabelType No_Label Font - Shape Italic - Size Normal + Size Large EndFont End -Style Subsubsection +Style Special_Paper_Notice + CopyStyle Title + LatexName IEEEspecialpapernotice + InTitle 1 Font - Shape Up - Size Normal + Shape Italic + Size Large EndFont End -Style Section* - Align Center - AlignPossible Block, Center, Left +Style After_Title_Text + CopyStyle Special_Paper_Notice + LatexName IEEEaftertitletext Font - Shape Smallcaps - Size Normal + Shape Up + Size Normal EndFont End -Style Subsection* +Style MarkBoth + LaTeXType Command + LaTeXName markboth + Category FrontMatter + InTitle 1 + Align Center Font - Shape Italic - Size Normal + Size Small EndFont + Preamble + % protect \markboth against an old bug reintroduced in babel >= 3.8g + \let\oldfore...@language\foreign@language + \declarerobustcommand{\fore...@language}[1]{% + \lowercase{\oldfore...@language{#1}}} + EndPreamble End -Style Subsubsection* +Style Publisher_ID + CopyStyle Special_Paper_Notice + LatexName IEEEpubid Font - Shape Up - Size Normal + Shape Up + Size Small EndFont End - -## -## stdstruct -## -Input stdtitle.inc -Input stdstruct.inc - Style Abstract - Margin First_Dynamic - LeftMargin "" - RightMargin "" -# ParIndent MM - LabelType Static - LabelString "Abstract---" -# LabelBottomSep 0.0 + Margin First_Dynamic + LatexType Environment + LatexName abstract + Category FrontMatter + TopSep 0.7 + BottomSep 0.7 + ParSkip 0.4 + LabelType Static + LabelString "Abstract---" Font - Series Bold - Size Small + Series Bold + Size small EndFont LabelFont - Shape Italic - Series Medium - Size Small + Shape Italic + Series Bold + Size Small EndFont End Style Keywords - Margin Dynamic - LatexType Environment - InTitle 0 - LatexName keywords - ParSkip 0.4 - BottomSep 1.5 - ParSep 1.5 - Align Left - AlignPossible Block, Left, Right, Center - LabelType Static - LabelString "Index Terms---" - TextFont - Shape Up - Size Small - EndFont - LabelFont - Shape Italic - Size Small - EndFont + CopyStyle Abstract + LatexName IEEEkeywords + LabelString "Index Terms---" End -Style Bibliography +Style Appendices + Margin Dynamic + LatexType Command + LatexName appendices + Category BackMatter + KeepEmpty 1 + ParSkip 0.4 + Align Block + LabelSep xx + LabelType Static + LabelString "Appendices" LabelFont - Shape Smallcaps - Series Medium - Size Normal + Series Bold + Color Green EndFont End - Style Appendix - Margin Static - LatexType Command - InTitle 0 - LatexName appendix - ParSkip 0.4 - BottomSep 1.5 - ParSep 1.5 - Align Block - AlignPossible Block, Left, Right, Center - LabelType Static - LabelString "Appendix" - TextFont - Shape Up - Size Normal - EndFont - LabelFont - Shape Smallcaps - Size Normal - EndFont + CopyStyle Appendices + LatexName appendix + LabelString "Appendix" + OptionalArgs 1 End -Style Appendices - CopyStyle Appendix - LatexName appendices - LabelString "Appendices" +Style Bibliography + Margin First_Dynamic + LatexType Bib_Environment + LatexName thebibliography + Category BackMatter + NextNoIndent 1 + LeftMargin MM + ParSkip 0.4 + ItemSep 0 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.5 + Align Block + AlignPossible Block, Left + LabelType Bibliography + LabelString "References" + LabelBottomSep 1.2 + LabelFont + Series Bold + Size Larger + EndFont End Style Biography - LaTeXType Environment - LaTeXName biography - Align Block + LaTeXType Environment + LaTeXName IEEEbiography + Category BackMatter + OptionalArgs 1 + Align Block TextFont - Size Small + Size Small EndFont End -Style BiographyNoPhoto - LaTeXType Environment - LaTeXName biographynophoto - Align Block - TextFont - Size Small - EndFont +Style Biography_without_photo + CopyStyle Biography + LaTeXName IEEEbiographynophoto + OptionalArgs 0 End -## -## stdlayouts -## - -Input stdlayouts.inc - - - - -Style Footernote - Margin Static - LatexType Command - InTitle 0 - LatexName footernote - ParSkip 0.4 - BottomSep 1.5 - ParSep 1.5 - Align Center - AlignPossible Block, Left, Right, Center - LabelType Static - LabelString "Footernote" - TextFont - Shape Up - Size Small +Style Proof + Category Theorem + Margin First_Dynamic + LatexType Environment + LatexName IEEEproof + NextNoIndent 1 + OptionalArgs 1 + LabelSep xx + ParIndent MMM + ParSkip 0.4 + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Block, Left + LabelType Static + LabelString "Proof." + EndLabelType Filled_Box + Font + Shape Up + Size Normal EndFont LabelFont - Shape Italic - Size Small + Shape Italic EndFont End - - -Style MarkBoth - LaTeXType Command - LaTeXName markboth - Align Center - Preamble - % protect \markboth against an old bug reintroduced in babel >= 3.8g - \let\oldfore...@language\foreign@language - \declarerobustcommand{\fore...@language}[1]{% - \lowercase{\oldfore...@language{#1}}} - EndPreamble -End - - -## -## Others -## - -Input stdfloats.inc -Input lyxmacros.inc - - -Columns 1 -Sides 1 -SecNumDepth 3 -TocDepth 3 - - -ClassOptions - FontSize 9|10|11|12 -End - -