]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/elsarticle.layout
Use \babelfonts only if babel >= 3.15 is available.
[lyx.git] / lib / layouts / elsarticle.layout
index a2666a040949381bc3c70285246e4e5b6a9ce849..e4622dc4b0a79786c2b04ebaa58d93291e5c69e8 100644 (file)
@@ -1,23 +1,25 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[elsarticle]{Elsevier}
+#  \DeclareLaTeXClass[elsarticle,natbib.sty,pifont.sty]{Elsevier}
 #  \DeclareCategory{Articles}
 # elsarticle textclass definition file.
 # Author: Uwe Stöhr (uwestoehr@web.de)
 
-Format 68
+Format 76
 
 Columns                                1
 Sides                          1
 SecNumDepth                    3
 TocDepth                       3
-DefaultStyle           Standard
-Provides natbib                1
-Provides refstyle      1
+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.
@@ -53,38 +55,12 @@ 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                 0
+       InTitle                 1
        ResetArgs               1
        ParSkip                 0.4
        ItemSep                 0
@@ -99,7 +75,6 @@ Style Title
        HTMLTitle               true
 End
 
-
 InsetLayout "Flex:Titlenotemark"
        LyxType                 custom
        LatexType               command
@@ -128,9 +103,9 @@ Style "Title footnote"
        LatexType               Command
        LatexName               tnotetext
        Category                FrontMatter
-       InTitle                 0
+       InTitle                 1
        Argument 1
-         LabelString   "Footnote Label"
+         LabelString           "Footnote Label"
          Tooltip               "Label you refer to in the title"
        EndArgument
        ParSkip                 0.4
@@ -150,7 +125,7 @@ Style Author
        Margin                  Static
        LatexType               Command
        Category                FrontMatter
-       InTitle                 0
+       InTitle                 1
        Argument 1
          LabelString   "Author Label"
          Tooltip               "Label you will reference in the address"
@@ -195,6 +170,7 @@ End
 Style "Author footnote"
        CopyStyle               "Title footnote"
        LatexName               fntext
+       InTitle                 1
        LabelString             "Author footnote:"
        Argument 1
          LabelString   "Author Footnote Label"
@@ -216,6 +192,7 @@ End
 Style "Corresponding author"
        CopyStyle               "Author footnote"
        LatexName               cortext
+       InTitle                 1
        LabelString             "Corresponding author text:"
 End
 
@@ -225,7 +202,7 @@ Style Address
        LatexType               Command
        Category                FrontMatter
        LatexName               address
-       InTitle                 0
+       InTitle                 1
        Argument 1
          LabelString   "Address Label"
          Tooltip               "Label of the author you refer to"
@@ -243,6 +220,7 @@ End
 Style Email
        CopyStyle               Address
        LatexName               ead
+       InTitle                 1
        AlignPossible   Block
        Argument 1
          LabelString   "Internet"
@@ -259,7 +237,7 @@ Style Abstract
        LatexType               Environment
        LatexName               abstract
        Category                FrontMatter
-       InTitle                 0
+       InTitle                 1
        NextNoIndent    1
        LeftMargin              MMM
        RightMargin             MMM
@@ -288,7 +266,7 @@ Style Keywords
        LatexType               Environment
        LatexName               keyword
        Category                FrontMatter
-       InTitle                 0
+       InTitle                 1
        NextNoIndent    1
        BottomSep               0.5
        ParSkip                 0.4
@@ -327,5 +305,15 @@ Style Bibliography
        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
 End