]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/elsarticle.layout
Update tex2lyx test files
[lyx.git] / lib / layouts / elsarticle.layout
index 6d8105135b2b0bf3e9dfefd5879d818fc8b52ff3..0b1ca9a5a1019422da06d89f397dd9ef829bb00f 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 40
 
-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,17 +46,44 @@ 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
+       InTitle                 0
        OptionalArgs            0
        ParSkip                 0.4
        ItemSep                 0
@@ -61,11 +91,33 @@ Style Title
        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,7 +126,7 @@ Style "Title footnote"
        LatexType               Command
        LatexName               tnotetext
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        OptionalArgs            1
        ParSkip                 0.4
        BottomSep               0.5
@@ -93,7 +145,7 @@ Style Author
        Margin                  Static
        LatexType               Command
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        OptionalArgs            1
        LatexName               author
        LabelSep                xxx
@@ -109,6 +161,28 @@ 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
@@ -116,6 +190,28 @@ Style "Author footnote"
 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"
        LatexName               cortext
@@ -128,7 +224,7 @@ Style Address
        LatexType               Command
        Category                FrontMatter
        LatexName               address
-       InTitle                 1
+       InTitle                 0
        OptionalArgs            1
        ParSkip                 0.4
        Align                   Center
@@ -143,7 +239,7 @@ End
 Style Email
        CopyStyle               Address
        LatexName               ead
-       AlignPossible           None
+       AlignPossible           Block
        Font
          Shape                 Up
        EndFont
@@ -155,7 +251,7 @@ Style Abstract
        LatexType               Environment
        LatexName               abstract
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        NextNoIndent            1
        LeftMargin              MMM
        RightMargin             MMM
@@ -184,7 +280,7 @@ Style Keywords
        LatexType               Environment
        LatexName               keyword
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        Align                   Left
        NextNoIndent            1
        BottomSep               0.5