]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/amsdefs.inc
Introduce listpreamble argument type
[lyx.git] / lib / layouts / amsdefs.inc
index eb97c183b84ece78aa8fdf9276a09b13fb48f256..c04bd9fd6145128de00483606edd3ca431a0a254 100644 (file)
@@ -1,18 +1,16 @@
 # Author : David L. Johnson <dlj0@lehigh.edu>
 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
 # modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
+# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
+# Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
 
 # Including the maths stuff
-Input amsmaths.inc
+Format 69
 
-# The AMS documentclasses use the package amsmath and provide the
-# functionality of makeidx.sty.
-ProvidesAmsmath         1
-ProvidesMakeidx         1
+# By default AMS articles & books use leqno option (as SIAM journals).
+Provides leqno 1
 
-
-# the environnements copied from the old amsart.layout are :
-# - Proof, 
+# the environments copied from the old amsart.layout are:
 # - Bibliography
 # - Title
 # - Author
@@ -23,46 +21,11 @@ ProvidesMakeidx         1
 # - Keywords
 # - Subjectclass
 
-# Proof style declaration
-Style Proof
-       Margin                First_Dynamic
-       LatexType             Environment
-       LatexName             proof
-       NextNoIndent          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          Box
-       
-       # standard font definition
-       Font
-         Shape               Up
-         Size                Normal
-       EndFont
-
-       # label font definition
-       LabelFont
-         Shape               Italic
-       EndFont
-
-       # We don't want the preamble from Theorem
-       Preamble
-       EndPreamble 
-End  
 
 ### Now the title stuff. We copy do not use stdstruct.inc to keep
 ### things in the right order
-
-# Title style definition
 Style Title
+       Category              FrontMatter
        Margin                Static
        LatexType             Command
        InTitle               1
@@ -73,19 +36,23 @@ Style Title
        BottomSep             1
        ParSep                1
        Align                 Center
-       AlignPossible         Center
        LabelType             No_Label
-
-       # standard font definition
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "Short title which appears in the running headers"
+               InsertCotext  1
+       EndArgument
        Font
          Shape               Smallcaps
          Series              Bold
          Size                Larger
        EndFont
+       HTMLTitle             true
 End
 
-# Author style definition
+
 Style Author
+       Category              FrontMatter
        Margin                Static
        LatexType             Command
        InTitle               1
@@ -96,19 +63,16 @@ Style Author
        BottomSep             0.7
        ParSep                0.7
        Align                 Center
-       AlignPossible         Center
        LabelType             No_Label
-
-       # standard font definition
        Font
          Size                Large
          Shape               Smallcaps
        EndFont
-
 End
 
-# Date style definition
+
 Style Date
+       Category              FrontMatter
        Margin                Dynamic
        LatexType             Command
        InTitle               1
@@ -119,23 +83,20 @@ Style Date
        BottomSep             0.5
        ParSep                1
        Align                 Center
-       AlignPossible         Center
        LabelType             Static
-       LabelString           "Date: "
-
-       # standard font definition
-       Font 
+       LabelString           "Date:"
+       Font
          Size                Large
        EndFont
-
        LabelFont
          Shape               Italic
          Size                Large
        EndFont
 End
 
-# Abstract style definition
-Style Abstract 
+
+Style Abstract
+       Category              FrontMatter
        Margin                First_Dynamic
        LatexType             Environment
        InTitle               1
@@ -147,24 +108,22 @@ Style Abstract
        TopSep                0.7
        BottomSep             0.7
        Align                 Block
-       AlignPossible         Block
        LabelType             Static
-       LabelString           Abstract.
+       LabelString           "Abstract."
        LabelSep              M
-
-       # standard font definition
-       Font 
+       Font
          Size                Small
        EndFont
-
-       # label font definition
        LabelFont
          Shape               Smallcaps
        EndFont
-End 
+End
+
+# Clear Address definition from lyxmacros
+NoStyle Address
 
-# Address style definition
 Style Address
+       Category              FrontMatter
        Margin                Dynamic
        LatexType             Command
        InTitle               1
@@ -175,171 +134,79 @@ Style Address
        Align                 Left
        AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "Address: "
-       # label font definition
+       LabelString           "Address:"
+       LabelSep              M
        LabelFont
          Shape               Italic
        EndFont
-End  
+End
+
 
-# Current Address style definition
 Style Current_Address
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               1
+       CopyStyle             Address
        LatexName             curraddr
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       LabelString           "Current address: "
-       # label font definition
-       LabelFont
-         Shape               Italic
-       EndFont
-End  
+       LabelString           "Current address:"
+End
+
 
-# Email style definition
 Style Email
+       CopyStyle             Address
        Margin                First_Dynamic
-       LatexType             Command
-       InTitle               1
        LatexName             email
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       labelString           "E-mail address: "
-       LabelFont
-         Shape               Italic
-       EndFont
+       LabelString           "E-mail address:"
 End
 
-# URL style definition
+
 Style URL
+       CopyStyle             Address
        Margin                First_Dynamic
-       LatexType             Command
-       InTitle               1
        LatexName             urladdr
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       labelString           "URL: "
-       LabelFont
-         Shape               Italic
-       EndFont
+       LabelString           "URL:"
 End
 
-# Keywords style definition
+
 Style Keywords
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               1
+       CopyStyle             Address
        LatexName             keywords
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       LabelString           "Key words and phrases: "
-       # label font definition
-       LabelFont
-         Shape               Italic
-       EndFont
-End  
+       LabelString           "Key words and phrases:"
+End
+
 
-# Thanks style definition
 Style Thanks
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               1
+       CopyStyle             Address
        LatexName             thanks
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       LabelString           "Thanks: "
-       # label font definition
-       LabelFont
-         Shape               Italic
-       EndFont
-End  
+       LabelString           "Thanks:"
+End
+
 
-# Dedicatory style definition
 Style Dedicatory
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               1
+       CopyStyle             Address
        LatexName             dedicatory
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       LabelString           "Dedication: "
-       # label font definition
-       LabelFont
-         Shape               Italic
-       EndFont
-End  
+       LabelString           "Dedication:"
+End
 
 
-# Translator style definition
 Style Translator
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               1
+       CopyStyle             Address
        LatexName             translator
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       LabelString           "Translator: "
-       # label font definition
-       LabelFont
-         Shape               Italic
-       EndFont
-End  
+       LabelString           "Translator:"
+End
+
 
-# Subjectclass style definition
 Style Subjectclass
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               1
-       LatexName             subjclass
-       ParSkip               0.4
-       BottomSep             1.5
-       ParSep                1.5
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       LabelString           "1991 Mathematics Subject Classification: "
-       # label font definition
-       LabelFont
-         Shape               Italic
-       EndFont
-End 
+       CopyStyle             Address
+       LatexName             subjclass[2000]
+       LabelString           "2000 Mathematics Subject Classification:"
+End
 
 
-# Bibliography style definition
 Style Bibliography
+       Category              BackMatter
        Margin                First_Dynamic
        LatexType             Bib_Environment
        LatexName             thebibliography
        NextNoIndent          1
+       ToggleIndent          Never
        LeftMargin            MM
        ParSkip               0.4
        ItemSep               0
@@ -349,18 +216,25 @@ Style Bibliography
        Align                 Block
        AlignPossible         Block, Left
        LabelType             Bibliography
-       LabelString           References
-       LabelBottomSep    0.7
-
-       # standard font definition
+       LabelString           "References"
+       LabelBottomSep        0.7
        Font
          Size                Small
        EndFont
-
-       # label font definition
        LabelFont
          Size                Normal
          Shape               Smallcaps
        EndFont
+       TocLevel             1
+       IsTocCaption         0
+       Argument listpreamble:1
+         LabelString    "Bib preamble"
+         MenuString     "Bibiography Preamble"
+         Tooltip        "LaTeX code to be inserted before the first bibliography item"
+         PassThru           1
+         Font
+           Family           typewriter
+           Color            latex
+         EndFont
+       EndArgument
 End
-