]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/elsarticle.layout
use LatexParam where appropriate
[lyx.git] / lib / layouts / elsarticle.layout
index 3e418e309a1f514cda1aa20bc8b823e262ae082f..f3360c4d0d1f674fd794698fd222d95664929702 100644 (file)
@@ -1,9 +1,10 @@
 #% 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 35
+Format 41
 
 Columns                        1
 Sides                  1
@@ -11,6 +12,7 @@ SecNumDepth           3
 TocDepth               3
 DefaultStyle           Standard
 Provides natbib                1
+Provides refstyle      1
 
 ClassOptions
        FontSize                10|11|12
@@ -51,13 +53,38 @@ 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
@@ -99,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
@@ -118,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
@@ -160,6 +193,10 @@ 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
 
 
@@ -186,7 +223,7 @@ End
 
 
 Style "Corresponding author"
-       CopyStyle               "Title footnote"
+       CopyStyle               "Author footnote"
        LatexName               cortext
        LabelString             "Corresponding author text:"
 End
@@ -197,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
@@ -213,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
@@ -224,7 +268,7 @@ Style Abstract
        LatexType               Environment
        LatexName               abstract
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        NextNoIndent            1
        LeftMargin              MMM
        RightMargin             MMM
@@ -253,7 +297,7 @@ Style Keywords
        LatexType               Environment
        LatexName               keyword
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        Align                   Left
        NextNoIndent            1
        BottomSep               0.5