]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/aastex.layout
Add frontispiece layout to KOMA classes
[lyx.git] / lib / layouts / aastex.layout
index 7e34d3c830c0a54014eb21f5a65dd7842ef4bf06..e4ddf6c2309c3054d610c338f61141fc59928da6 100644 (file)
@@ -1,7 +1,9 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[aastex,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX)}
+#  \DeclareLaTeXClass[aastex,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty]{American Astronomical Society (AASTeX v. 5)}
 #  \DeclareCategory{Articles}
 #
+# LyX support for the AAS TeX package http://www.ctan.org/pkg/aastex
+#
 # Author: Mike Ressler <mike.ressler@alum.mit.edu>
 # Author: Uwe Stöhr <uwestoehr@web.de>
 #
 # Version 1.4   26/10/08 - new custom insets for \altaffilmark, \tablenotemark
 #                        - new environments for \altaffiltext and \tablenotetext
 # Version 1.5   26/11/12 - added mandatory argument for \altaffiltext
+# Version 1.6   23/01/15 - fix for the optional argument of \figcaption
+# Version 1.7   05/04/19 - Normalize layout name of \thebibliography
 
+# Note: aastex.cls was replaced by aastex6.cls (v.1 2016/02/16)
+#      in the CTAN and TeXLive "aastex" package in march 2016.
+#      The new "aastex6.layout" depends on aastex6.cls but inputs this
+#       file for the definitions (cf. LyX ticket #10027)
 
-Format 43
+Format 90
 Columns                        1
 Sides                  1
 #SecNumDepth           3
@@ -52,7 +60,7 @@ End
 
 
 Style Standard
-       Category        MainText
+       Category        MainText
        Margin          Static
        LatexType       Paragraph
        LatexName       dummy
@@ -61,101 +69,10 @@ Style Standard
        Align           Block
        AlignPossible   Block, Left, Right, Center
        LabelType       No_Label
+       DocBookTag      para
 End
 
 
-# I want to keep the entries in a logical order.
-# Therefore I'll define the entries first, then fill them in
-
-Style Section
-       TocLevel        1
-End
-
-Style Subsection
-       TocLevel        2
-End
-
-Style Subsubsection
-       TocLevel        3
-End
-
-Style Paragraph
-       TocLevel        4
-End
-
-Style Itemize
-End
-
-Style Enumerate
-End
-
-Style Description
-End
-
-Style List
-End
-
-Style Title
-End
-
-Style Author
-End
-
-Style Affiliation
-End
-
-Style Email
-End
-
-Style And
-End
-
-Style Date
-End
-
-Style Abstract
-End
-
-Style Keywords
-End
-
-Style Acknowledgements
-End
-
-Style Appendix
-End
-
-Style References
-End
-
-Style PlaceFigure
-End
-
-Style PlaceTable
-End
-
-Style TableComments
-End
-
-Style TableRefs
-End
-
-
-Style MathLetters
-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
 
@@ -226,6 +143,9 @@ Style Title
          Series        Bold
          Size          Large
        EndFont
+       DocBookTag      title
+       DocBookTagType  paragraph
+       DocBookInInfo   maybe
 End
 
 
@@ -238,37 +158,11 @@ Style Author
          Series        Medium
          Shape         SmallCaps
        EndFont
-End
-
-
-Style Date
-       InTitle         0
-       LabelSep        ""
-       TopSep          1.2
-       Align           Center
-       Font
-         Size          Small
-       EndFont
-End
-
-
-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
-       EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always
 End
 
 
@@ -286,6 +180,12 @@ Style Affiliation
          Family        Roman
          Size          Normal
        EndFont
+       DocBookTag                        affiliation
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookItemTag                    orgname
+       DocBookItemTagType                paragraph
+       DocBookInInfo                     always
 End
 
 
@@ -300,13 +200,101 @@ Style Altaffilation
          Mandatory     1
          LabelString   "Number"
          Tooltip       "Consecutive number for the alternative affiliations"
+         PassThru      1
        EndArgument
        LabelSep        xx
        LabelType       Static
        LabelString     "Alternative affiliation:"
        LabelFont
-         Color         green
+         Color         textlabel2
+       EndFont
+       DocBookTag                        affiliation
+       DocBookAttr                       role='alternate'
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookItemTag                    orgname
+       DocBookItemTagType                paragraph
+       DocBookInInfo                     always
+End
+
+
+Style Email
+       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
+       DocBookTag                        email
+       DocBookTagType                    paragraph
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookInInfo                     always
+End
+
+
+Style And
+       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 Date
+       InTitle         0
+       LabelSep        ""
+       TopSep          1.2
+       Align           Center
+       Font
+         Size          Small
+       EndFont
+End
+
+
+Style Abstract
+       LeftMargin      "MMM"
+       RightMargin     "MMM"
+       ParIndent       "MM"
+       InTitle         0
+       TopSep          1.4
+       BottomSep       0.7
+       LabelType       Centered
+       Align           Block
+       AlignPossible   Block, Left, Right, Center
+       Font
+         Size          Normal
+       EndFont
+       LabelFont
+         Series        Bold
+         Size          Normal
        EndFont
+       DocBookAbstract       true
+       DocBookInInfo         always
+       DocBookWrapperTag     abstract
+       DocBookWrapperMergeWithPrevious    true
+       DocBookTag            para
 End
 
 
@@ -326,7 +314,7 @@ InsetLayout "Flex:altaffilmark"
          Misc          No_Bar
        EndFont
        LabelFont
-         Color         green
+         Color         textlabel2
          Size          Small
        EndFont
 End
@@ -356,25 +344,10 @@ Style Keywords
          Shape         Italic
          Size          Normal
        EndFont
-End
-
-
-Style Email
-       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
+       DocBookTag          keyword
+       DocBookTagType      paragraph
+       DocBookWrapperTag   keywordset
+       DocBookInInfo       always
 End
 
 
@@ -396,26 +369,8 @@ Style Acknowledgements
          Size          Normal
          Shape         Italic
        EndFont
-End
-
-
-Style And
-       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
+       DocBookTag            para
+       DocBookWrapperTag     acknowledgements
 End
 
 
@@ -488,15 +443,17 @@ Style MathLetters
        Font
          Size          Normal
        EndFont
+       DocBookTag  NONE
 End
 
 
-Style References
+Style Bibliography
        Margin          First_Dynamic
        LatexType       Bib_Environment
        LatexName       thebibliography
        Category        BackMatter
        NextNoIndent    1
+       ToggleIndent    Never
        LeftMargin      MM
        ParSkip         0.4
        ItemSep         0
@@ -513,6 +470,20 @@ Style References
          Size          Normal
          Series        Bold
        EndFont
+       Argument listpreamble:1
+         LabelString    "Bib preamble"
+         MenuString     "Bibliography Preamble"
+         Tooltip        "LaTeX code to be inserted before the first bibliography item"
+         PassThru       1
+         Font
+           Family      typewriter
+           Color       latex
+         EndFont
+       EndArgument
+End
+
+Style References
+       Obsoletedby     Bibliography
 End
 
 
@@ -536,6 +507,9 @@ Style NoteToEditor
          Size          Normal
          Shape         Italic
        EndFont
+       DocBookTag      remark
+       DocBookTagType  paragraph
+       DocBookAttr     role='to-editor'
 End
 
 
@@ -556,6 +530,9 @@ Style TableRefs
          Family        Roman
          Size          Normal
        EndFont
+       DocBookTag      remark
+       DocBookTagType  paragraph
+       DocBookAttr     role='tablerefs'
 End
 
 
@@ -576,6 +553,9 @@ Style TableComments
          Family        Roman
          Size          Normal
        EndFont
+       DocBookTag      remark
+       DocBookTagType  paragraph
+       DocBookAttr     role='tablecomments'
 End
 
 
@@ -589,8 +569,11 @@ Style "Table note"
        LabelType       Static
        LabelString     "Table note:"
        LabelFont
-         Color         magenta
+         Color         textlabel3
        EndFont
+       DocBookTag      remark
+       DocBookTagType  paragraph
+       DocBookAttr     role='tablenote'
 End
 
 
@@ -610,19 +593,23 @@ InsetLayout "Flex:tablenotemark"
          Misc          No_Bar
        EndFont
        LabelFont
-         Color         magenta
+         Color         textlabel3
          Size          Small
        EndFont
+       DocBookTag      remark
+       DocBookTagType  paragraph
+       DocBookAttr     role='tablenotemark'
 End
 
 
 InsetLayout Caption:FigCaption
-       LabelString          fig.
-       LaTeXType            command
-       LatexName            figcaption
+       LabelString     fig.
+       LaTeXType       command
+       LatexName       figcaption
+       MultiPar        false
        Argument 1
-           LabelString   "Short Title|S"
-           Tooltip       "The caption as it appears in the list of figures"
+         LabelString   "Filename"
+         Tooltip       "Filename to identify the corresponding figure file"
        EndArgument
        HTMLStyle
                div.float-caption {