]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/elsart.layout
lib/ui/stdmenus.inc: change 'Clipboard as xxx' to 'Plain Text as xxx'. I still think...
[lyx.git] / lib / layouts / elsart.layout
index 01002fa2c450f4d420061d80401282a870520b48..82c06d0a29ab3758e78fbdb1eac906cb9a1ade68 100644 (file)
 #       for use of BeginTitle/EndTitle
 # modified 2003-03-11 JMarc for use of TitleLatexType/TitleLatexName
 # modified 2003-04-10 Rod Pinna - added proof env. sent to me by Stacy Prowell
-# modified 2003-07-23 Rod Pinna - changes MaxCounter to Section, 
-#       rather than subsection. The Elsevier doc file allows for 
+# modified 2003-07-23 Rod Pinna - changes MaxCounter to Section,
+#       rather than subsection. The Elsevier doc file allows for
 #       numbered sections, as does the class file.
 
-# General textclass parameters
-Columns         1
-Sides           2
-PageStyle       headings
-MaxCounter      Counter_Section
+
+Format 2
+Columns                 1
+Sides                   2
+PageStyle               headings
 
 
 ClassOptions
-#  FontSize     "default"       # controlled by class
+#  FontSize             "default"       # controlled by class
 End
 
 # elsart does not use the plain old \maketitle
 TitleLatexType Environment
 TitleLatexName frontmatter
 
+Counter
+       Name                  summ
+End
 
-DefaultFont
-       Family        Roman
-       Series        Medium
-       Shape         Up
-       Size          Normal
-       Color         None
-EndFont
+
+Counter
+       Name                  case
+End
 
 
 Style Standard
-       LatexName     dummy
-       LatexType     Paragraph
-       Margin        Static
-       ParIndent     MM
-       ParSkip       0.4
-       ParSep        0.4
-       TopSep        1.0
-       BottomSep     1.0
-       Align         Block
-       AlignPossible Block, Left, Right, Center
-       LabelType     No_Label
+       LatexName             dummy
+       LatexType             Paragraph
+       Margin                Static
+       ParIndent             MM
+       ParSkip               0.4
+       ParSep                0.4
+       TopSep                1.0
+       BottomSep             1.0
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       LabelType             No_Label
 End
 
 
 Style Keywords
-       LatexName     keyword
-       LatexType     Environment
-       Margin        Static
-       ParIndent     MM
-       InTitle       1
-       ParSkip       0.4
-       ParSep        0.4
-       TopSep        1.0
-       BottomSep     1.0
-       Align         Block
-       AlignPossible Block, Left, Right, Center
-       LabelType     No_Label
-Font
-         Color       blue
-EndFont
+       LatexName             keyword
+       LatexType             Environment
+       Margin                Static
+       ParIndent             MM
+       InTitle               1
+       ParSkip               0.4
+       ParSep                0.4
+       TopSep                1.0
+       BottomSep             1.0
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       LabelType             No_Label
+       Font
+         Color               blue
+       EndFont
 End
 
 
-# Load standard defs, as most of the
-# Elsevier stuff seems the same.
 Input stdsections.inc
 Input stdstarsections.inc
 Input stdlists.inc
@@ -103,7 +101,7 @@ Style Title
        ParSep                0.7
        Align                 Center
        LabelType             No_Label
-       Font 
+       Font
          Family              Sans
          Series              Bold
          Size                Largest
@@ -124,7 +122,8 @@ Style Author
        ParSep                0
        Align                 Center
        AlignPossible         Center
-       Font 
+       OptionalArgs          1
+       Font
          Series              Bold
        EndFont
 End
@@ -138,7 +137,9 @@ Style Author_Address
        Align                 Center
        AlignPossible         Center
        Labeltype             Static
-       LabelString           "Address: "
+       LabelSep              M
+       LabelString           "Address:"
+       OptionalArgs          1
        LabelFont
          Shape               Italic
        EndFont
@@ -154,7 +155,8 @@ Style Author_Email
        Align                 Center
        AlignPossible         Center
        Labeltype             Static
-       LabelString           "Email: "
+       LabelSep              M
+       LabelString           "Email:"
        TextFont
          Family              Typewriter
        EndFont
@@ -175,7 +177,8 @@ Style Author_URL
        Align                 Center
        AlignPossible         Center
        Labeltype             Static
-       LabelString           "URL: "
+       LabelSep              M
+       LabelString           "URL:"
        TextFont
          Family              Typewriter
        EndFont
@@ -190,18 +193,17 @@ End
 Style Thanks
        Margin                Static
        LatexType             Command
-       LatexName             thanks          
+       LatexName             thanks
        InTitle               1
-       Font  
+       Font
          Size                Small
          Family              Typewriter
          Shape               Italic
-       EndFont       
+       EndFont
 End
 
 
-# new Abstract style definition
-Style Abstract 
+Style Abstract
        Margin                Static
        LatexType             Environment
        LatexName             abstract
@@ -217,27 +219,21 @@ Style Abstract
        Align                 Block
        AlignPossible         Block
        LabelType             Centered_Top_Environment
-       LabelString           Abstract
+       LabelString           "Abstract"
        LabelBottomSep        0.5
-
-       Font 
+       Font
          Size                Small
        EndFont
-
-       LabelFont 
+       LabelFont
          Series              Bold
          Size                Large
        EndFont
-End 
-
-
-# Theorm environments have been copied over from
-# the amsmaths.inc file. It could not be inputfiled
-# as it does some stuff which is incompatible with
-# the Elsevier stlye, that is it redefines
-# the theorem* environments in the preamble.
+End
 
 
+# Theorem environments have been copied over from the amsmaths.inc file. It
+# could not be input as it does some stuff which is incompatible with the
+# Elsevier stlye: it redefines the theorem* environments in the preamble.
 
 # The environments defined are :
 # - Theorem
@@ -258,6 +254,10 @@ End
 # - Acknowledgement
 # - Case
 
+Counter
+       Name                  theorem
+End
+
 
 Style Theorem
        Margin                First_Dynamic
@@ -265,7 +265,7 @@ Style Theorem
        LatexName             thm
        NextNoIndent          1
        LabelSep              xx
-       ParIndent             MMM  
+       ParIndent             MMM
        ParSkip               0.4
        ItemSep               0.2
        TopSep                0.7
@@ -273,14 +273,13 @@ Style Theorem
        ParSep                0.3
        Align                 Block
        AlignPossible         Block, Left
-       LabelType             Static
-       LabelString           "Theorem #."
-
+       LabelType             Counter
+       LabelCounter          theorem
+       LabelString           "Theorem \arabic{theorem}"
        Font
          Shape               Italic
          Size                Normal
        EndFont
-
        LabelFont
          Shape               Up
          Series              Bold
@@ -305,14 +304,11 @@ Style Proof
        Align                 Block
        AlignPossible         Block, Left
        LabelType             Static
-       #  make the label all caps, like it is in the output.
        LabelString           "PROOF."
-
        Font
          Shape               Up
          Size                Normal
        EndFont
-
        LabelFont
          Series              Bold
        EndFont
@@ -322,183 +318,122 @@ End
 Style Lemma
        CopyStyle             Theorem
        LatexName             lem
-       LabelString           "Lemma #."
-
-#  Preamble
-#    \theoremstyle{plain}    
-#    \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering
-#  EndPreamble
+       LabelString           "Lemma \arabic{theorem}"
 End
 
 
 Style Corollary
        CopyStyle             Theorem
        LatexName             cor
-       LabelString           "Corollary #."
-
-#  Preamble
-#    \theoremstyle{plain}    
-#    \newtheorem{cor}[thm]{Corollary} %%Delete [thm] to re-start numbering
-#  EndPreamble
-End  
+       LabelString           "Corollary \arabic{theorem}"
+End
 
 
 Style Proposition
        CopyStyle             Theorem
        LatexName             prop
-       LabelString           "Proposition #."
-
-#  Preamble
-#    \theoremstyle{plain}    
-#    \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start numbering
-#  EndPreamble
-End  
+       LabelString           "Proposition \arabic{theorem}"
+End
 
 
 Style Criterion
        CopyStyle             Theorem
        LatexName             crit
-       LabelString           "Criterion #."
-
-#  Preamble
-#    \theoremstyle{plain}    
-#    \newtheorem{crit}[thm]{Criterion} %%Delete [thm] to re-start numbering
-#  EndPreamble
-End  
+       LabelString           "Criterion \arabic{theorem}"
+End
 
 
 Style Algorithm
        CopyStyle             Theorem
        LatexName             alg
-       LabelString           "Algorithm #."
-
-#  Preamble
-#    \theoremstyle{plain}    
-#    \newtheorem{alg}[thm]{Algorithm} %%Delete [thm] to re-start numbering
-#  EndPreamble
-End  
+       LabelString           "Algorithm \arabic{theorem}"
+End
 
 
 Style Definition
        CopyStyle             Theorem
        LatexName             defn
-       LabelString           "Definition #."
-       
+       LabelString           "Definition \arabic{theorem}"
        Font
          Shape               Up
        EndFont
-
        LabelFont
          Shape               Up
          Series              Bold
        EndFont
-#  Preamble
-#   \theoremstyle{definition}
-#   \newtheorem{defn}[thm]{Definition}
-#  EndPreamble
-End  
+End
 
 
 Style Conjecture
        CopyStyle             Theorem
        LatexName             conj
-       LabelString           "Conjecture #."
-
-#  Preamble
-#    \theoremstyle{plain}    
-#    \newtheorem{conj}[thm]{Conjecture} %%Delete [thm] to re-start numbering
-#  EndPreamble
+       LabelString           "Conjecture \arabic{theorem}"
 End
 
 
 Style Example
        CopyStyle             Theorem
        LatexName             exmp
-       LabelString           "Example #."
-
-#  Preamble
-#   \theoremstyle{definition}
-#    \newtheorem{exmp}[thm]{Example}
-#  EndPreamble
-End  
+       LabelString           "Example \arabic{theorem}"
+End
 
 
 Style Problem
        CopyStyle             Theorem
        LatexName             prob
-       LabelString           "Problem #."
-
-#  Preamble
-#   \theoremstyle{definition}
-#    \newtheorem{prob}[thm]{Problem}
-#  EndPreamble
-End  
+       LabelString           "Problem \arabic{theorem}"
+End
 
 
 Style Remark
        CopyStyle             Theorem
        LatexName             rem
-       LabelString           "Remark #."
-
-End  
+       LabelString           "Remark \arabic{theorem}"
+End
 
 
 Style Note
        CopyStyle             Theorem
        LatexName             note
-       LabelString           "Note #."
-
-End  
+       LabelString           "Note \arabic{theorem}"
+End
 
 
 Style Claim
        CopyStyle             Theorem
        LatexName             claim
-       LabelString           "Claim #."
-
-End  
+       LabelString           "Claim \arabic{theorem}"
+End
 
 
 Style Summary
        CopyStyle             Theorem
        LatexName             summ
-       LabelString           "Summary #."
-
-End  
+       LabelCounter          summ
+       LabelString           "Summary \arabic{summ}"
+End
 
 
 Style Case
        CopyStyle             Theorem
        LatexName             case
-       LabelString           "Case #."
-
-End  
-
+       LabelCounter          case
+       LabelString           "Case \arabic{case}"
+End
 
-#Style Acknowledgement
-#  CopyStyle            Theorem
-#  LatexName            ack
-#  LabelString          "Acknowledgement #."
-#
-#End  
 
-# Acknowledgement style definition
-# This is not taken from the AMS defs,
-# so as to match the output of the
+# This is not taken from the AMS defs, so as to match the output of the
 # style file.
-
 Style Acknowledgement
        Margin                Static
        LatexType             environment
        LatexName             ack
        Labeltype             Top_Environment
        LabelBottomsep        1
-       LabelString           "Acknowledgement #."
+       LabelString           "Acknowledgement \arabic{theorem}"
        parsep                0.3
-
        LabelFont
-               Size                  large
-               Series                Bold
+         Size                large
+         Series              Bold
        EndFont
 End