]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/elsarticle.layout
Move RevTeX section in Additional.lyx into Chapter 3 Document classes
[lyx.git] / lib / layouts / elsarticle.layout
index bcb8210d87c8feecd4fde201f4b553d2fd03392c..e04198f955193fdcf769259d34e7e8c720157b14 100644 (file)
@@ -1,21 +1,25 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[elsarticle,natbib.sty,pifont.sty]{article (Elsevier)}
+#  \DeclareLaTeXClass[elsarticle,natbib.sty,pifont.sty]{Elsevier}
+#  \DeclareCategory{Articles}
 # elsarticle textclass definition file.
 # Author: Uwe Stöhr (uwestoehr@web.de)
 
-Format 29
+Format 98
 
-Columns                        1
-Sides                  1
-SecNumDepth            3
-TocDepth               3
-DefaultStyle           Standard
-Provides natbib                1
+Columns                                1
+Sides                          1
+SecNumDepth                    3
+TocDepth                       3
+DefaultStyle                   Standard
+Provides natbib                        1
+Provides refstyle              1
 
 ClassOptions
        FontSize                10|11|12
 end
 
+TitleLatexType Environment
+TitleLatexName frontmatter
 
 # This is just to show how to declare the default font.
 # The defaults are exactly those shown here.
@@ -29,14 +33,16 @@ EndFont
 
 
 Style Standard
+       Category                MainText
        Margin                  Static
        LatexType               Paragraph
        LatexName               dummy
        ParIndent               MM
        ParSkip                 0.4
        Align                   Block
-       AlignPossible           Block, Left, Right, Center
+       AlignPossible   Block, Left, Right, Center
        LabelType               No_Label
+       DocBookTag      para
 End
 
 Input stdcounters.inc
@@ -46,9 +52,9 @@ Input stdsections.inc
 Input stdstarsections.inc
 Input stdlayouts.inc
 
-NoStyle Chapter
-NoStyle Chapter*
-
+NoStyle                                Chapter
+NoCounter                      chapter
+NoStyle                                Chapter*
 
 Style Title
        Margin                  Static
@@ -56,7 +62,7 @@ Style Title
        LatexName               title
        Category                FrontMatter
        InTitle                 1
-       OptionalArgs            0
+       ResetArgs               1
        ParSkip                 0.4
        ItemSep                 0
        TopSep                  0
@@ -67,13 +73,16 @@ Style Title
        Font
          Size                  Largest
        EndFont
-       HTMLTitle             true
+       HTMLTitle               true
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
-
-InsetLayout Titlenotemark
+InsetLayout "Flex:Titlenotemark"
        LyxType                 custom
        LatexType               command
+       ForcePlain              1
        LatexName               tnoteref
        LabelString             "Titlenote mark"
        Font
@@ -87,9 +96,11 @@ InsetLayout Titlenotemark
          Misc                  No_Bar
        EndFont
        LabelFont
-         Color                 green
+         Color                 textlabel2
          Size                  Small
        EndFont
+       DocBookTag      footnoteref
+       # TODO: the content will be output within the tag, while it should be the linkend attribute, i.e. the output should be <footnoteref linked="[content]"/>. If the content has several footnotes, it should be split on the comma: "t1,t2" should generate <footnoteref linked="t1"/><footnoteref linked="t2"/>.
 End
 
 
@@ -99,7 +110,12 @@ Style "Title footnote"
        LatexName               tnotetext
        Category                FrontMatter
        InTitle                 1
-       OptionalArgs            1
+       Argument 1
+         LabelString   "Footnote Label"
+         Tooltip       "Label you refer to in the title"
+         DocBookTag    anchor
+         DocBookTagType  inline
+       EndArgument
        ParSkip                 0.4
        BottomSep               0.5
        Align                   Left
@@ -107,9 +123,16 @@ Style "Title footnote"
        LabelType               Static
        LabelString             "Title footnote:"
        LabelFont
-         Color                 Green
+         Color                 textlabel2
          Series                Bold
        EndFont
+       DocBookTag      footnote
+       DocBookItemTag  para
+       DocBookWrapperTag      title
+       DocBookWrapperTagType  paragraph
+       DocBookWrapperMergeWithPrevious  true
+       DocBookInInfo   maybe
+       # TODO: the argument will be output within the tag, while it should be the xml:id attribute, i.e. the output should be <footnote xml:id="[Argument 1]"/>. And it should also be within the title, and not as a second title.
 End
 
 
@@ -118,7 +141,12 @@ Style Author
        LatexType               Command
        Category                FrontMatter
        InTitle                 1
-       OptionalArgs            1
+       Argument 1
+         LabelString   "Author Label"
+         Tooltip               "Label you will reference in the address"
+         DocBookTag    phrase
+         DocBookAttr   role='address-label'
+       EndArgument
        LatexName               author
        LabelSep                xxx
        ParSkip                 0.4
@@ -130,12 +158,18 @@ Style Author
        Font
          Size                  Large
        EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType block
+       DocBookInInfo         always
 End
 
 
-InsetLayout Authormark
+InsetLayout "Flex:Authormark"
        LyxType                 custom
        LatexType               command
+       ForcePlain              1
        LatexName               fnref
        LabelString             "Author mark"
        Font
@@ -158,35 +192,29 @@ End
 Style "Author footnote"
        CopyStyle               "Title footnote"
        LatexName               fntext
+       InTitle                 1
        LabelString             "Author footnote:"
+       Argument 1
+         LabelString   "Author Footnote Label"
+         Tooltip               "Label you refer to for an author"
+       EndArgument
 End
 
 
-InsetLayout CorAuthormark
-       LyxType                 custom
-       LatexType               command
+InsetLayout "Flex:CorAuthormark"
+       CopyStyle               "Flex:Authormark"
        LatexName               corref
        LabelString             "CorAuthor mark"
-       Font
-         Color                 foreground
-         Size                  Small
-         Family                Roman
-         Shape                 Up
-         Series                Medium
-         Misc                  No_Emph
-         Misc                  No_Noun
-         Misc                  No_Bar
-       EndFont
        LabelFont
-         Color                 blue
-         Size                  Small
+         Color                 textlabel1
        EndFont
 End
 
 
 Style "Corresponding author"
-       CopyStyle               "Title footnote"
+       CopyStyle               "Author footnote"
        LatexName               cortext
+       InTitle                 1
        LabelString             "Corresponding author text:"
 End
 
@@ -197,24 +225,46 @@ Style Address
        Category                FrontMatter
        LatexName               address
        InTitle                 1
-       OptionalArgs            1
+       Argument 1
+         LabelString   "Address Label"
+         Tooltip               "Label of the author you refer to"
+         DocBookTag    phrase
+         DocBookAttr   role='label'
+       EndArgument
        ParSkip                 0.4
        Align                   Center
-       AlignPossible           Left, Right
+       AlignPossible   Left, Right
        LabelType               No_Label
        Font
          Shape                 Italic
        EndFont
+       DocBookTag            address
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious  true
+       DocBookInInfo         always
 End
 
 
 Style Email
        CopyStyle               Address
        LatexName               ead
-       AlignPossible           Block
+       InTitle                 1
+       AlignPossible   Block
+       Argument 1
+         LabelString   "Internet"
+         Tooltip               "If content is 'url', email becomes an Internet address"
+       EndArgument
        Font
          Shape                 Up
        EndFont
+       DocBookTag            email
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious  true
+       DocBookInInfo         always
 End
 
 
@@ -224,7 +274,7 @@ Style Abstract
        LatexName               abstract
        Category                FrontMatter
        InTitle                 1
-       NextNoIndent            1
+       NextNoIndent    1
        LeftMargin              MMM
        RightMargin             MMM
        ParIndent               MM
@@ -233,10 +283,10 @@ Style Abstract
        BottomSep               0.7
        ParSep                  0
        Align                   Block
-       AlignPossible           Block
-       LabelType               Centered_Top_Environment
+       AlignPossible   Block
+       LabelType               Centered
        LabelString             "Abstract"
-       LabelBottomSep          0.5
+       LabelBottomSep  0.5
        Font
          Size                  Small
        EndFont
@@ -244,6 +294,11 @@ Style Abstract
          Series                Bold
          Size                  Large
        EndFont
+       DocBookAbstract       true
+       DocBookInInfo         always
+       DocBookWrapperTag     abstract
+       DocBookWrapperMergeWithPrevious    true
+       DocBookTag            para
 End
 
 
@@ -253,8 +308,7 @@ Style Keywords
        LatexName               keyword
        Category                FrontMatter
        InTitle                 1
-       Align                   Left
-       NextNoIndent            1
+       NextNoIndent    1
        BottomSep               0.5
        ParSkip                 0.4
        Align                   Block
@@ -262,9 +316,13 @@ Style Keywords
        LabelType               Static
        LabelString             "Keywords:"
        LabelFont
-         Color                 Green
+         Color                 textlabel2
          Series                Bold
-       EndFont         
+       EndFont
+       DocBookTag         keyword
+       DocBookTagType     paragraph
+       DocBookWrapperTag  keywordset
+       DocBookInInfo      always
 End
 
 
@@ -273,7 +331,8 @@ Style Bibliography
        LatexType               Bib_Environment
        LatexName               thebibliography
        Category                BackMatter
-       NextNoIndent            1
+       NextNoIndent            1
+       ToggleIndent            Never
        LeftMargin              MM
        ParSkip                 0.4
        ItemSep                 0
@@ -281,13 +340,26 @@ Style Bibliography
        BottomSep               0.7
        ParSep                  0.5
        Align                   Block
-       AlignPossible           Block, Left
+       AlignPossible           Block, Left
        LabelType               Bibliography
        LabelString             "References"
-       LabelBottomSep          1.2
+       LabelBottomSep          1.2
        LabelFont
          Series                Bold
          Size                  Larger
        EndFont
+       TocLevel                1
+       IsTocCaption            0
+       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
+       DocBookTag      bibliography
 End