]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/elsarticle.layout
use LatexParam where appropriate
[lyx.git] / lib / layouts / elsarticle.layout
index c6a0376b5ee574dc1a540ff8be05d6b2fda081d1..f3360c4d0d1f674fd794698fd222d95664929702 100644 (file)
@@ -1,16 +1,18 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[elsarticle,article,geometry.sty,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 27
+Format 41
 
-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
@@ -47,16 +49,42 @@ Input stdstarsections.inc
 Input stdlayouts.inc
 
 NoStyle Chapter
+NoCounter chapter
 NoStyle Chapter*
 
 
+Style BeginFrontmatter
+  Margin       Dynamic
+  LatexType    Command
+  LatexName    begin{frontmatter}
+  Category     FrontMatter
+  KeepEmpty    1
+  ParSkip      0.4
+  Align                Block
+  LabelSep     xx
+  LabelType    Static
+  LabelString  "Begin frontmatter"
+  LabelFont
+    Series     Bold
+    Color      Green
+  EndFont
+End
+
+
+Style EndFrontmatter
+  CopyStyle    BeginFrontmatter
+  LatexName    end{frontmatter}
+  LabelString  "End frontmatter"
+End
+
+
 Style Title
        Margin                  Static
        LatexType               Command
        LatexName               title
        Category                FrontMatter
-       InTitle                 1
-       OptionalArgs            0
+       InTitle                 0
+       ResetArgs               1
        ParSkip                 0.4
        ItemSep                 0
        TopSep                  0
@@ -71,7 +99,7 @@ Style Title
 End
 
 
-InsetLayout Titlenotemark
+InsetLayout "Flex:Titlenotemark"
        LyxType                 custom
        LatexType               command
        LatexName               tnoteref
@@ -98,8 +126,11 @@ Style "Title footnote"
        LatexType               Command
        LatexName               tnotetext
        Category                FrontMatter
-       InTitle                 1
-       OptionalArgs            1
+       InTitle                 0
+       Argument 1
+         LabelString           "Footnote Label"
+         Tooltip               "Label you refer to in the title"
+       EndArgument
        ParSkip                 0.4
        BottomSep               0.5
        Align                   Left
@@ -117,8 +148,11 @@ Style Author
        Margin                  Static
        LatexType               Command
        Category                FrontMatter
-       InTitle                 1
-       OptionalArgs            1
+       InTitle                 0
+       Argument 1
+         LabelString           "Author Label"
+         Tooltip               "Label you will reference in the address"
+       EndArgument
        LatexName               author
        LabelSep                xxx
        ParSkip                 0.4
@@ -133,7 +167,7 @@ Style Author
 End
 
 
-InsetLayout Authormark
+InsetLayout "Flex:Authormark"
        LyxType                 custom
        LatexType               command
        LatexName               fnref
@@ -159,10 +193,14 @@ Style "Author footnote"
        CopyStyle               "Title footnote"
        LatexName               fntext
        LabelString             "Author footnote:"
+       Argument 1
+         LabelString           "Author Footnote Label"
+         Tooltip               "Label you refer to for an author"
+       EndArgument
 End
 
 
-InsetLayout CorAuthormark
+InsetLayout "Flex:CorAuthormark"
        LyxType                 custom
        LatexType               command
        LatexName               corref
@@ -185,7 +223,7 @@ End
 
 
 Style "Corresponding author"
-       CopyStyle               "Title footnote"
+       CopyStyle               "Author footnote"
        LatexName               cortext
        LabelString             "Corresponding author text:"
 End
@@ -196,8 +234,11 @@ Style Address
        LatexType               Command
        Category                FrontMatter
        LatexName               address
-       InTitle                 1
-       OptionalArgs            1
+       InTitle                 0
+       Argument 1
+         LabelString           "Address Label"
+         Tooltip               "Label of the author you refer to"
+       EndArgument
        ParSkip                 0.4
        Align                   Center
        AlignPossible           Left, Right
@@ -212,6 +253,10 @@ Style Email
        CopyStyle               Address
        LatexName               ead
        AlignPossible           Block
+       Argument 1
+         LabelString           "Internet"
+         Tooltip               "if content is 'url', email becomes an Internet address"
+       EndArgument
        Font
          Shape                 Up
        EndFont
@@ -223,7 +268,7 @@ Style Abstract
        LatexType               Environment
        LatexName               abstract
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        NextNoIndent            1
        LeftMargin              MMM
        RightMargin             MMM
@@ -252,7 +297,7 @@ Style Keywords
        LatexType               Environment
        LatexName               keyword
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        Align                   Left
        NextNoIndent            1
        BottomSep               0.5