]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/elsarticle.layout
use LatexParam where appropriate
[lyx.git] / lib / layouts / elsarticle.layout
index 6d8105135b2b0bf3e9dfefd5879d818fc8b52ff3..f3360c4d0d1f674fd794698fd222d95664929702 100644 (file)
@@ -1,15 +1,18 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[elsarticle]{article (Elsevier)}
+#  \DeclareLaTeXClass[elsarticle,natbib.sty,pifont.sty]{Elsevier}
+#  \DeclareCategory{Articles}
 # elsarticle textclass definition file.
 # Author: Uwe Stöhr (uwestoehr@web.de)
 
-Format 11
+Format 41
 
-Columns                 1
-Sides                   1
-SecNumDepth             3
-TocDepth                3
-DefaultStyle            Standard
+Columns                        1
+Sides                  1
+SecNumDepth            3
+TocDepth               3
+DefaultStyle           Standard
+Provides natbib                1
+Provides refstyle      1
 
 ClassOptions
        FontSize                10|11|12
@@ -43,29 +46,78 @@ Input stdfloats.inc
 Input stdlists.inc
 Input stdsections.inc
 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
        BottomSep               1
        ParSep                  1
        Align                   Center
-       AlignPossible           None
        LabelType               No_Label
        Font
          Size                  Largest
        EndFont
+       HTMLTitle             true
+End
+
+
+InsetLayout "Flex:Titlenotemark"
+       LyxType                 custom
+       LatexType               command
+       LatexName               tnoteref
+       LabelString             "Titlenote 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
 
 
@@ -74,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
@@ -93,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
@@ -109,15 +167,63 @@ Style Author
 End
 
 
+InsetLayout "Flex:Authormark"
+       LyxType                 custom
+       LatexType               command
+       LatexName               fnref
+       LabelString             "Author mark"
+       Font
+         Color                 foreground
+         Size                  Small
+         Family                Roman
+         Shape                 Up
+         Series                Medium
+         Misc                  No_Emph
+         Misc                  No_Noun
+         Misc                  No_Bar
+       EndFont
+       LabelFont
+         Color                 latex
+         Size                  Small
+       EndFont
+End
+
+
 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 "Flex:CorAuthormark"
+       LyxType                 custom
+       LatexType               command
+       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
+       EndFont
 End
 
 
 Style "Corresponding author"
-       CopyStyle               "Title footnote"
+       CopyStyle               "Author footnote"
        LatexName               cortext
        LabelString             "Corresponding author text:"
 End
@@ -128,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
@@ -143,7 +252,11 @@ End
 Style Email
        CopyStyle               Address
        LatexName               ead
-       AlignPossible           None
+       AlignPossible           Block
+       Argument 1
+         LabelString           "Internet"
+         Tooltip               "if content is 'url', email becomes an Internet address"
+       EndArgument
        Font
          Shape                 Up
        EndFont
@@ -155,7 +268,7 @@ Style Abstract
        LatexType               Environment
        LatexName               abstract
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        NextNoIndent            1
        LeftMargin              MMM
        RightMargin             MMM
@@ -184,7 +297,7 @@ Style Keywords
        LatexType               Environment
        LatexName               keyword
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        Align                   Left
        NextNoIndent            1
        BottomSep               0.5