]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/IEEEtran.layout
Allow literate documents other than noweb to work out of the box. Currently
[lyx.git] / lib / layouts / IEEEtran.layout
index 3b3ad121e4b195ba8dea57cd520c8e87e0f346a6..6a0add2032d3c24e83f58c1fcb8e46c389e2b40b 100644 (file)
@@ -1,6 +1,6 @@
 #% Do not delete he line below; configure depends on this
 #  \DeclareLaTeXClass{article (IEEEtran)}
-# Based on Article textclass definition file. 
+# Based on Article textclass definition file.
 #
 # Author : Allan Rae <rae@lyx.org>
 #
 # 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.
 
-
-# Input general definitions
-
-Columns                 1
-Sides                   1
-MaxCounter              Counter_Section
-SecNumDepth             3
-TocDepth                3
-
-
-ClassOptions
-       FontSize              9|10|11|12
-End  
-
-
-DefaultFont
-       Family                Roman
-       Series                Medium
-       Shape                 Up
-       Size                  Normal
-       Color                 None
-EndFont
-
-
+Format 11
 Style Standard
        Margin                Static
        LatexType             Paragraph
@@ -50,8 +27,13 @@ Style Standard
 End
 
 
-Input stdlists.inc
 
+##
+## stdlists
+##
+
+Input stdlists.inc
+Input stdinsets.inc
 
 # First cut at theorem environment support.
 # What other theorem-like environments are needed?
@@ -63,6 +45,7 @@ Input stdlists.inc
 # Tell me:  rae@lyx.org
 
 
+# Theorem-numbered style *Template* declaration
 Style TheoremTemplate
        Margin                First_Dynamic
        LatexType             Environment
@@ -72,11 +55,10 @@ Style TheoremTemplate
        Align                 Block
        AlignPossible         Block, Left
        LabelType             Static
-
-       # label font definition
        LabelFont
          Shape               Italic
        EndFont
+       OptionalArgs          1
 End
 
 
@@ -92,31 +74,28 @@ Style Theorem
        CopyStyle             TheoremTemplate
        LatexName             thm
        LabelString           "Theorem #:"
-
        Preamble
-         \newtheorem{thm}{Theorem}
+       \newtheorem{thm}{Theorem}
        EndPreamble
-End  
+End
 
 
 Style Lemma
        CopyStyle             TheoremTemplate
        LatexName             lemma
        LabelString           "Lemma #:"
-
        Preamble
-         \newtheorem{lemma}{Lemma}
+       \newtheorem{lemma}{Lemma}
        EndPreamble
-End  
+End
 
 
 Style Corollary
        CopyStyle             TheoremTemplate
        LatexName             cor
        LabelString           "Corollary #:"
-
        Preamble
-         \newtheorem{cor}{Corollary}
+       \newtheorem{cor}{Corollary}
        EndPreamble
 End
 
@@ -125,64 +104,58 @@ Style Proposition
        CopyStyle             TheoremTemplate
        LatexName             prop
        LabelString           "Proposition #:"
-
        Preamble
-         \newtheorem{prop}{Proposition}
+       \newtheorem{prop}{Proposition}
        EndPreamble
-End  
+End
 
 
 Style Conjecture
        CopyStyle             TheoremTemplate
        LatexName             conject
        LabelString           "Conjecture #:"
-
        Preamble
-         \newtheorem{conject}{Conjecture}
+       \newtheorem{conject}{Conjecture}
        EndPreamble
-End  
+End
 
 
 Style Criterion
        CopyStyle             TheoremTemplate
        LatexName             criter
        LabelString           "Criterion #:"
-
        Preamble
-         \newtheorem{criter}{Criterion}
+       \newtheorem{criter}{Criterion}
        EndPreamble
-End  
+End
 
 
 Style Fact
        CopyStyle             TheoremTemplate
        LatexName             fact
        LabelString           "Fact #:"
-
        Preamble
-         \newtheorem{fact}{Fact}
+       \newtheorem{fact}{Fact}
        EndPreamble
-End  
+End
 
 
 Style Axiom
        CopyStyle             TheoremTemplate
        LatexName             axi
        LabelString           "Axiom #:"
-
        Preamble
-         \newtheorem{axi}{Axiom}
+       \newtheorem{axi}{Axiom}
        EndPreamble
-End  
+End
 
 
 Style Definition
        CopyStyle             TheoremTemplate
        LatexName             definitn
        LabelString           "Definition #:"
-
        Preamble
-         \newtheorem{definitn}{Definition}
+       \newtheorem{definitn}{Definition}
        EndPreamble
 End
 
@@ -191,9 +164,8 @@ Style Example
        CopyStyle             TheoremTemplate
        LatexName             example
        LabelString           "Example #:"
-
        Preamble
-         \newtheorem{example}{Example}
+       \newtheorem{example}{Example}
        EndPreamble
 End
 
@@ -202,9 +174,8 @@ Style Condition
        CopyStyle             TheoremTemplate
        LatexName             condition
        LabelString           "Condition #:"
-
        Preamble
-         \newtheorem{condition}{Condition}
+       \newtheorem{condition}{Condition}
        EndPreamble
 End
 
@@ -213,9 +184,8 @@ Style Problem
        CopyStyle             TheoremTemplate
        LatexName             problem
        LabelString           "Problem #:"
-
        Preamble
-         \newtheorem{problem}{Problem}
+       \newtheorem{problem}{Problem}
        EndPreamble
 End
 
@@ -224,9 +194,8 @@ Style Exercise
        CopyStyle             TheoremTemplate
        LatexName             exacise
        LabelString           "Exercise #:"
-
        Preamble
-         \newtheorem{exacise}{Exercise}
+       \newtheorem{exacise}{Exercise}
        EndPreamble
 End
 
@@ -235,9 +204,8 @@ Style Remark
        CopyStyle             TheoremTemplate
        LatexName             remrk
        LabelString           "Remark #:"
-
        Preamble
-         \newtheorem{remrk}{Remark}
+       \newtheorem{remrk}{Remark}
        EndPreamble
 End
 
@@ -246,9 +214,8 @@ Style Claim
        CopyStyle             TheoremTemplate
        LatexName             claim
        LabelString           "Claim #:"
-
        Preamble
-         \newtheorem{claim}{Claim}
+       \newtheorem{claim}{Claim}
        EndPreamble
 End
 
@@ -257,9 +224,8 @@ Style Note
        CopyStyle             TheoremTemplate
        LatexName             note
        LabelString           "Note #:"
-
        Preamble
-         \newtheorem{note}{Note}
+       \newtheorem{note}{Note}
        EndPreamble
 End
 
@@ -268,9 +234,8 @@ Style Notation
        CopyStyle             TheoremTemplate
        LatexName             notation
        LabelString           "Notation #:"
-
        Preamble
-         \newtheorem{notation}{Notation}
+       \newtheorem{notation}{Notation}
        EndPreamble
 End
 
@@ -279,19 +244,23 @@ Style Case
        CopyStyle             TheoremTemplate
        LatexName             case
        LabelString           "Case #:"
-
        Preamble
-         \newtheorem{case}{Case}
+       \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
@@ -303,7 +272,6 @@ NoStyle                 Subparagraph*
 Style Section
        Align                 Center
        AlignPossible         Block, Center, Left
-
        Font
           Shape              Smallcaps
           Size               Normal
@@ -330,7 +298,6 @@ End
 Style Section*
        Align                 Center
        AlignPossible         Block, Center, Left
-
        Font
           Shape              Smallcaps
           Size               Normal
@@ -354,31 +321,31 @@ Style Subsubsection*
 End
 
 
+
+##
+## stdstruct
+##
 Input stdtitle.inc
 Input stdstruct.inc
 
-
 Style Abstract
        Margin                First_Dynamic
        LeftMargin            ""
        RightMargin           ""
 #  ParIndent            MM
-       LabelSep              M
        LabelType             Static
        LabelString           "Abstract---"
 #  LabelBottomSep        0.0
-
-       Font 
+       Font
          Series              Bold
          Size                Small
        EndFont
-
        LabelFont
          Shape               Italic
          Series              Medium
          Size                Small
        EndFont
-End 
+End
 
 
 Style Keywords
@@ -392,7 +359,7 @@ Style Keywords
        Align                 Left
        AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "Keywords---"
+       LabelString           "Index Terms---"
        TextFont
          Shape               Up
          Size                Small
@@ -406,7 +373,7 @@ End
 
 Style Bibliography
        LabelFont
-         Shape               Smallcaps             
+         Shape               Smallcaps
          Series              Medium
          Size                Normal
        EndFont
@@ -437,47 +404,39 @@ End
 
 
 Style Appendices
-       Margin                Static
-       LatexType             Command
-       InTitle               0
+       CopyStyle             Appendix
        LatexName             appendices
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Center
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
        LabelString           "Appendices"
+End
+
+
+Style Biography
+       LaTeXType             Environment
+       LaTeXName             biography
+       Align                 Block
        TextFont
-         Shape               Up
          Size                Small
        EndFont
-       LabelFont
-         Shape               Smallcaps
-         Size                Normal
-       EndFont
 End
 
 
-Style Biography
+Style BiographyNoPhoto
        LaTeXType             Environment
-       LaTeXName             biography
+       LaTeXName             biographynophoto
        Align                 Block
-       AlignPossible         Block
        TextFont
          Size                Small
        EndFont
 End
 
 
+##
+##  stdlayouts
+##
+
 Input stdlayouts.inc
 
 
-Style Caption
-       LabelFont
-         Series              Medium
-       EndFont
-End
 
 
 Style Footernote
@@ -507,13 +466,31 @@ Style MarkBoth
        LaTeXType             Command
        LaTeXName             markboth
        Align                 Center
-       AlignPossible         Center
+       Preamble
+       % protect \markboth against an old bug reintroduced in babel >= 3.8g
+       \let\oldforeign@language\foreign@language
+       \DeclareRobustCommand{\foreign@language}[1]{%
+         \lowercase{\oldforeign@language{#1}}}
+       EndPreamble
 End
 
 
+##
 ## Others
+##
 
 Input stdfloats.inc
-Input stdcounters.inc
 Input lyxmacros.inc
-Input obsolete.inc
+
+
+Columns                 1
+Sides                   1
+SecNumDepth             3
+TocDepth                3
+
+
+ClassOptions
+       FontSize              9|10|11|12
+End
+
+