]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/aastex.layout
Allow literate documents other than noweb to work out of the box. Currently
[lyx.git] / lib / layouts / aastex.layout
index b6401c3a4c1e4037708769634e2a12decb7020c2..1235c1574918ce842cc492e6ebf5938c6f2d3308 100644 (file)
@@ -1,7 +1,8 @@
 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass[aastex]{article (AASTeX)}
 #
-# Author: Mike Ressler <mike.ressler@alum.mit.edu>      
+# Author: Mike Ressler <mike.ressler@alum.mit.edu>
+# Author: Uwe Stöhr <uwestoehr@web.de>
 #
 # Disclaimer: Though I am an astronomer at the Jet Propulsion Laboratory, this
 # package was prepared on my own time on my own machine. Neither the United
 # license which is found in the file COPYING in the root directory of the LyX
 # distribution.
 #
-# Version 0.0   5/27/99 - Initial submission, basic LaTeX equivalents
-# Version 0.1   6/04/99 - Most everything in sections 2.1-2.11 of AASTeX guide
-#                         works. References work with some ERT. Regular tables
-#                         (2.14) okay, deluxetable will never be supported.
-#                         Figures (2.13) not even attempted yet. Misc (2.15) 
-#                         partially supported, but much will remain ERT.
-#                         Style options (section 3) can be typed into Extra
-#                         Document options.
-#                         Much cleaning of this file needs to be done.
-# Version 1.0   6/09/99 - Implemented remaining commands as well as possible.
-#                         There is little more I can do unless LyX source code
-#                         is changed. (Not by me!) Documentation, template, and
-#                         example files are available.
-# Version 1.1   7/25/99 - Changed \url to take advantage of new layout option.
-# Version 1.2   4/18/02 - Updated for natbib in 1.2.0
-
-
+# Version 0.0   5/27/99  - Initial submission, basic LaTeX equivalents
+# Version 0.1   6/04/99  - Most everything in sections 2.1-2.11 of AASTeX guide
+#                          works. References work with some ERT. Regular tables
+#                          (2.14) okay, deluxetable will never be supported.
+#                          Figures (2.13) not even attempted yet. Misc (2.15)
+#                          partially supported, but much will remain ERT.
+#                          Style options (section 3) can be typed into Extra
+#                          Document options.
+#                          Much cleaning of this file needs to be done.
+# Version 1.0   6/09/99  - Implemented remaining commands as well as possible.
+#                          There is little more I can do unless LyX source code
+#                          is changed. (Not by me!) Documentation, template, and
+#                          example files are available.
+# Version 1.1   7/25/99  - Changed \url to take advantage of new layout option.
+# Version 1.2   4/18/02  - Updated for natbib in 1.2.0
+# Version 1.3   5/7/04   - Updated for AASTeX 5.2
+# Version 1.4   26/10/08 - new custom insets for \altaffilmark, \tablenotemark
+#                        - new environments for \altaffiltext and \tablenotetext
+
+
+Format 11
 Columns                 1
 Sides                   1
 #SecNumDepth            3
 TocDepth                0
 PageStyle               Plain
-ProvidesAmsmath         1
-ProvidesNatbib          1
-ProvidesUrl             1
+Provides amsmath         1
+Provides natbib          1
+Provides url             1
 
 
 ClassOptions
-       PageStyle             ""      
+       PageStyle             ""
 End
 
 
@@ -101,7 +106,7 @@ End
 Style Date
 End
 
-Style Abstract 
+Style Abstract
 End
 
 Style Keywords
@@ -128,8 +133,6 @@ End
 Style TableRefs
 End
 
-Style Caption
-End
 
 Style MathLetters
 End
@@ -137,12 +140,20 @@ End
 Style NoteToEditor
 End
 
+Style Facility
+End
+
+Style Objectname
+End
+
+Style Dataset
+End
 
 # OK, now we have a more or less consistent Ordering. Now fill the
 # definitions. First, the standard includes
 
+Input stdinsets.inc
 Input stdsections.inc
-Input numarticle.inc
 Input stdtitle.inc
 Input stdstruct.inc
 Input stdlists.inc
@@ -158,11 +169,10 @@ NoStyle Bibliography
 
 Style Section
        Align                 Center
-       AlignPossible         Center
        NextNoIndent          0
        TopSep                2.0
        BottomSep             1.3
-       Font 
+       Font
          Series              Bold
          Size                Normal
        EndFont
@@ -171,11 +181,10 @@ End
 
 Style Subsection
        Align                 Center
-       AlignPossible         Center
        NextNoIndent          0
        TopSep                1.7
        BottomSep             1.1
-       Font 
+       Font
          Series              Bold
          Size                Normal
        EndFont
@@ -184,11 +193,10 @@ End
 
 Style Subsubsection
        Align                 Center
-       AlignPossible         Center
        NextNoIndent          0
        TopSep                1.7
        BottomSep             1.1
-       Font 
+       Font
          Series              Medium
          Shape               Italic
          Size                Normal
@@ -197,178 +205,214 @@ End
 
 
 Style Title
-       TopSep                2
-       BottomSep             1.3
-       Align                 Center
-       AlignPossible         Center
-       InTitle               0
-       Font 
-         Series              Bold
-         Size                Large
+       TopSep                  2
+       BottomSep               1.3
+       Align                   Center
+       InTitle                 0
+       Font
+         Series                Bold
+         Size                  Large
        EndFont
 End
 
 
 Style Author
-       Align                 Center
-       AlignPossible         Center
-       LabelType             No_Label
-       InTitle               0
-       Font 
-         Size                Normal
-         Series              Medium
-         Shape               SmallCaps
+       Align                   Center
+       LabelType               No_Label
+       InTitle                 0
+       Font
+         Size                  Normal
+         Series                Medium
+         Shape                 SmallCaps
        EndFont
 End
 
 
 Style Date
-       LabelSep              ""
-       TopSep                1.2
-       Align                 Center
-       AlignPossible         Center
-       InTitle               0
-       Font 
-         Size                Small
+       InTitle                 0
+       LabelSep                ""
+       TopSep                  1.2
+       Align                   Center
+       Font
+         Size                  Small
        EndFont
 End
 
 
-Style Abstract 
-       LeftMargin            "MMM"
-       RightMargin           "MMM"
-       ParIndent             "MM"
-       TopSep                1.4
-       BottomSep             0.7
-       LabelType             Centered_Top_Environment
-       Align                 Block
-       AlignPossible         Block, Left, Right, Center
-       Font 
-         Size                Normal
+Style Abstract
+       LeftMargin              "MMM"
+       RightMargin             "MMM"
+       ParIndent               "MM"
+       InTitle                 0
+       TopSep                  1.4
+       BottomSep               0.7
+       LabelType               Centered_Top_Environment
+       Align                   Block
+       AlignPossible           Block, Left, Right, Center
+       Font
+         Size                  Normal
        EndFont
-       LabelFont 
-         Series              Bold
-         Size                Normal
+       LabelFont
+         Series                Bold
+         Size                  Normal
        EndFont
-End 
+End
 
 
 Style Affiliation
-       Margin                Static
-       LatexType             Command
-       InTitle               0
-       LatexName             affil
-       ParSkip               0.4
-       BottomSep             0.4
-       Align                 Center
-       AlignPossible         Block, Left, Right, Center
-       LabelType             No_Label
+       Margin                  Static
+       LatexType               Command
+       LatexName               affil
+       Category                FrontMatter
+       ParSkip                 0.4
+       BottomSep               0.4
+       Align                   Center
+       AlignPossible           Block, Left, Right, Center
+       LabelType               No_Label
+       Font
+         Family                Roman
+         Size                  Normal
+       EndFont
+End
 
-       Font 
-         Family              Roman
-         Size                Normal
+
+Style Altaffilation
+       Margin                  Dynamic
+       LatexType               Command
+       LatexName               altaffiltext
+       Category                FrontMatter
+       ParSkip                 0.4
+       Align                   Block
+       LabelSep                xx
+       LabelType               Static
+       LabelString             "Alternative affiliation:"
+       LabelFont
+         Color                 green
+       EndFont
+End
+
+
+InsetLayout altaffilmark
+       LyxType                 custom
+       LatexType               command
+       LatexName               altaffilmark
+       LabelString             "altaffiliation mark"
+       Font
+         Color                 foreground
+         Size                  Small
+         Family                Roman
+         Shape                 Up
+         Series                Medium
+         Misc                  No_Emph
+         Misc                  No_Noun
+         Misc                  No_Bar
+       EndFont
+       LabelFont
+         Color                 green
+         Size                  Small
        EndFont
 End
 
 
 Style Keywords
-       LeftMargin            MMM     
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               0
-       LatexName             keywords
-       ParSkip               0.4
-       BottomSep             0.4
-       Align                 Block
-       AlignPossible         Block, Left, Right, Center
-       LabelType             Static
-       LabelSep              M
-       LabelString           "Subject headings:"
-       Font 
-         Family              Roman
-         Shape               Up
-         Size                Normal
+       LeftMargin              MMM
+       Margin                  Dynamic
+       LatexType               Command
+       InTitle                 0
+       LatexName               keywords
+       Category                FrontMatter
+       ParSkip                 0.4
+       BottomSep               0.4
+       Align                   Block
+       AlignPossible           Block, Left, Right, Center
+       LabelType               Static
+       LabelSep                M
+       LabelString             "Subject headings:"
+       Font
+         Family                Roman
+         Shape                 Up
+         Size                  Normal
        EndFont
-       LabelFont 
-         Family              Roman
-         Shape               Italic
-         Size                Normal
+       LabelFont
+         Family                Roman
+         Shape                 Italic
+         Size                  Normal
        EndFont
 End
 
 
 Style Email
-       Margin                Static
-       LatexType             Command
-       InTitle               0
-       LatexName             email
-       ParSkip               0.4
-       BottomSep             0.4
-       Align                 Center
-       AlignPossible         Block, Left, Right, Center
-       LabelType             No_Label
-       Font 
-         Family              Roman
-         Size                Normal
-         Shape               Italic
+       Margin                  Static
+       LatexType               Command
+       InTitle                 0
+       LatexName               email
+       Category                FrontMatter
+       ParSkip                 0.4
+       BottomSep               0.4
+       Align                   Center
+       AlignPossible           Block, Left, Right, Center
+       LabelType               No_Label
+       Font
+         Family                Roman
+         Size                  Normal
+         Shape                 Italic
        EndFont
 End
 
 
 Style Acknowledgements
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               0
-       LatexName             acknowledgements
-       TopSep                1.2     
-       ParSkip               0.4
-       BottomSep             0.8
-       Align                 Left
-       AlignPossible         Left
-       LabelType             Static
-       LabelString           [Acknowledgements]
-       KeepEmpty             1       
-       Font 
-         Family              Roman
-         Size                Normal
-         Shape               Italic
+       Margin                  Dynamic
+       LatexType               Command
+       InTitle                 0
+       LatexName               acknowledgements
+       TopSep                  1.2
+       ParSkip                 0.4
+       BottomSep               0.8
+       Align                   Left
+       LabelType               Static
+       LabelString             "[Acknowledgements]"
+       KeepEmpty               1
+       Font
+         Family                Roman
+         Size                  Normal
+         Shape                 Italic
        EndFont
 End
 
-       
+
 Style And
-       Margin                Dynamic
-       LatexType             Command
-       InTitle               0
-       LatexName             and
-       TopSep                1.2     
-       ParSkip               0.4
-       BottomSep             1.2
-       Align                 Center
-       AlignPossible         Center
-       LabelType             Static
-       LabelString           and
-       KeepEmpty             1       
-       Font 
-         Family              Roman
-         Size                Normal
+       Margin                  Dynamic
+       LatexType               Command
+       InTitle                 0
+       LatexName               and
+       Category                FrontMatter
+       TopSep                  1.2
+       ParSkip                 0.4
+       BottomSep               1.2
+       Align                   Center
+       LabelType               Static
+       LabelString             "and"
+       KeepEmpty               1
+       Font
+         Family                Roman
+         Size                  Normal
        EndFont
 End
+
 
 Style PlaceFigure
        Margin                Dynamic
        LatexType             Command
        InTitle               0
        LatexName             placefigure
-       TopSep                1.2     
+       TopSep                1.2
        ParSkip               0.4
        BottomSep             0.8
        Align                 Left
-       AlignPossible         Left
        LabelType             Static
-       LabelString           "Place Figure here: "
-       Font 
+       LabelSep              M
+       LabelString           "Place Figure here:"
+       Font
          Family              Roman
          Size                Normal
          Shape               Italic
@@ -381,14 +425,14 @@ Style PlaceTable
        LatexType             Command
        InTitle               0
        LatexName             placetable
-       TopSep                1.2     
+       TopSep                1.2
        ParSkip               0.4
        BottomSep             0.8
        Align                 Left
-       AlignPossible         Left
        LabelType             Static
-       LabelString           "Place Table here: "
-       Font 
+       LabelSep              M
+       LabelString           "Place Table here:"
+       Font
          Family              Roman
          Size                Normal
          Shape               Italic
@@ -399,17 +443,16 @@ End
 Style Appendix
        Margin                Dynamic
        LatexType             Command
-       InTitle               0
        LatexName             appendix
-       TopSep                1.2     
+       Category                BackMatter
+       TopSep                1.2
        ParSkip               0.4
        BottomSep             0.8
        Align                 Left
-       AlignPossible         Left
        LabelType             Static
-       LabelString           [Appendix]
-       KeepEmpty             1       
-       Font 
+       LabelString           "[Appendix]"
+       KeepEmpty             1
+       Font
          Family              Roman
          Size                Normal
          Shape               Italic
@@ -418,21 +461,22 @@ End
 
 
 Style MathLetters
-       LatexType             Environment     
+       LatexType             Environment
        LatexName             mathletters
        LabelType             No_Label
        Align                 Block
        AlignPossible         Block, Left, Right, Center
-       Font 
+       Font
          Size                Normal
        EndFont
-End 
+End
 
 
 Style References
-       Margin                First_Dynamic   
-       LatexType             Item_Environment        
+       Margin                First_Dynamic
+       LatexType             Bib_Environment
        LatexName             thebibliography
+       Category                BackMatter
        NextNoIndent          1
        LeftMargin            MM
        ParSkip               0.4
@@ -441,16 +485,16 @@ Style References
        BottomSep             0.7
        ParSep                0.5
        LabelType             Bibliography
-       LabelString           References
+       LabelString           "References"
        LabelBottomSep        0.7
        Align                 Block
        AlignPossible         Block, Left, Right, Center
-       LabelFont 
+       LabelFont
          Family              Roman
          Size                Normal
          Series              Bold
        EndFont
-End 
+End
 
 
 # Need reordering below here
@@ -460,14 +504,15 @@ Style NoteToEditor
        LatexType             Command
        InTitle               0
        LatexName             notetoeditor
-       TopSep                1.2     
+       TopSep                1.2
        ParSkip               0.4
        BottomSep             0.8
        Align                 Left
        AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "Note to Editor: "
-       Font 
+       LabelSep              M
+       LabelString           "Note to Editor:"
+       Font
          Family              Roman
          Size                Normal
          Shape               Italic
@@ -480,14 +525,15 @@ Style TableRefs
        LatexType             Command
        InTitle               0
        LatexName             tablerefs
-       TopSep                1.2     
+       TopSep                1.2
        ParSkip               0.4
        BottomSep             0.8
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "References. --- "
-       Font 
+        LabelSep              M
+       LabelString           "References. ---"
+       Font
          Family              Roman
          Size                Normal
        EndFont
@@ -499,48 +545,149 @@ Style TableComments
        LatexType             Command
        InTitle               0
        LatexName             tablecomments
-       TopSep                1.2     
+       TopSep                1.2
        ParSkip               0.4
        BottomSep             0.8
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "Note. --- "
-       Font 
+        LabelSep              M
+       LabelString           "Note. ---"
+       Font
          Family              Roman
          Size                Normal
        EndFont
 End
 
 
-Style Caption
+Style "Table note"
+       Margin                  Dynamic
+       LatexType               Command
+       LatexName               tablenotetext
+       ParSkip                 0.4
+       Align                   Block
+       LabelSep                xx
+       LabelType               Static
+       LabelString             "Table note:"
+       LabelFont
+         Color                 magenta
+       EndFont
+End
+
+
+InsetLayout tablenotemark
+       LyxType                 custom
+       LatexType               command
+       LatexName               tablenotemark
+       LabelString             "tablenote mark"
+       Font
+         Color                 foreground
+         Size                  Small
+         Family                Roman
+         Shape                 Up
+         Series                Medium
+         Misc                  No_Emph
+         Misc                  No_Noun
+         Misc                  No_Bar
+       EndFont
+       LabelFont
+         Color                 magenta
+         Size                  Small
+       EndFont
+End
+
+
+Style FigCaption
        Margin                First_Dynamic
        LatexType             Command
-       LatexName             caption
-       NeedProtect           1
+       LatexName             figcaption
        LabelSep              xx
        ParSkip               0.4
        TopSep                0.5
        Align                 Block
        AlignPossible         Block, Left
-       LabelType             Sensitive
-       LabelString           Caption
-       LabelFont 
-         Series              Bold
+       LabelType             Static
+       LabelString           "Fig. ---"
+       OptionalArgs          1
+End
+
+# Facility style definition
+Style Facility
+       LeftMargin            MMM
+       Margin                Dynamic
+       LatexType             Command
+       InTitle               0
+       LatexName             facility
+       ParSkip               0.4
+       BottomSep             0.4
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       LabelType             Static
+       LabelSep              M
+       LabelString           "Facility:"
+       Font
+         Family              Roman
+         Shape               Up
+         Size                Normal
+       EndFont
+       LabelFont
+         Family              Roman
+         Shape               Italic
+         Size                Normal
        EndFont
 End
 
+# Objectname style definition
+Style Objectname
+       LeftMargin            MMM
+       Margin                Dynamic
+       LatexType             Command
+       InTitle               0
+       LatexName             objectname
+       ParSkip               0.4
+       BottomSep             0.4
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       LabelType             Static
+       LabelSep              M
+       LabelString           "Obj:"
+       OptionalArgs          1
+       Font
+         Family              Roman
+         Shape               Up
+         Size                Normal
+       EndFont
+       LabelFont
+         Family              Roman
+         Shape               Italic
+         Size                Normal
+       EndFont
+End
 
-Style FigCaption
-       Margin                First_Dynamic
+# Dataset style definition
+Style Dataset
+       LeftMargin            MMM
+       Margin                Dynamic
        LatexType             Command
-       LatexName             figcaption
-       LatexParam            [FileName]
-       LabelSep              xx
+       InTitle               0
+       LatexName             dataset
        ParSkip               0.4
-       TopSep                0.5
+       BottomSep             0.4
        Align                 Block
-       AlignPossible         Block, Left
+       AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "Fig. --- "
+       LabelSep              M
+       LabelString           "Dataset:"
+       OptionalArgs          1
+       Font
+         Family              Roman
+         Shape               Up
+         Size                Normal
+       EndFont
+       LabelFont
+         Family              Roman
+         Shape               Italic
+         Size                Normal
+       EndFont
 End
+