]> git.lyx.org Git - features.git/commitdiff
elsarticle.layout: switch from \maketitle to \begin{frontmatter}, see #7977
authorUwe Stöhr <uwestoehr@web.de>
Fri, 6 Jan 2012 01:01:57 +0000 (01:01 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Fri, 6 Jan 2012 01:01:57 +0000 (01:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40575 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/elsarticle.layout
lib/templates/elsarticle.lyx

index a1015313923dd1eb6ac5c87a18fa2cb7443b827c..4e77b63cea0a6ffc00a5fb7e2eba89549ab1b21b 100644 (file)
@@ -51,12 +51,37 @@ 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
@@ -99,7 +124,7 @@ Style "Title footnote"
        LatexType               Command
        LatexName               tnotetext
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        OptionalArgs            1
        ParSkip                 0.4
        BottomSep               0.5
@@ -118,7 +143,7 @@ Style Author
        Margin                  Static
        LatexType               Command
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        OptionalArgs            1
        LatexName               author
        LabelSep                xxx
@@ -197,7 +222,7 @@ Style Address
        LatexType               Command
        Category                FrontMatter
        LatexName               address
-       InTitle                 1
+       InTitle                 0
        OptionalArgs            1
        ParSkip                 0.4
        Align                   Center
@@ -224,7 +249,7 @@ Style Abstract
        LatexType               Environment
        LatexName               abstract
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        NextNoIndent            1
        LeftMargin              MMM
        RightMargin             MMM
@@ -253,7 +278,7 @@ Style Keywords
        LatexType               Environment
        LatexName               keyword
        Category                FrontMatter
-       InTitle                 1
+       InTitle                 0
        Align                   Left
        NextNoIndent            1
        BottomSep               0.5
index 020ffacd2c147c87be42ec4f16e88bcb2ffbd4b9..516c8258aa4b016f83e904773488bc464502285f 100644 (file)
@@ -6,6 +6,9 @@
 \begin_preamble
 % specify here the journal
 \journal{Example: Nuclear Physics B}
+
+% use this if you need line numbers
+%\usepackage{lineno}
 \end_preamble
 \use_default_options false
 \begin_modules
@@ -117,6 +120,19 @@ http://www.ctan.org/get/macros/latex/contrib/elsarticle/elsdoc.pdf
 \end_inset
 
 
+\end_layout
+
+\begin_layout BeginFrontmatter
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+Keep this empty!
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Title
@@ -701,6 +717,49 @@ MSC
 \end_inset
 
 
+\end_layout
+
+\begin_layout EndFrontmatter
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+Keep this empty!
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+Use here the command 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+linenumbers 
+\end_layout
+
+\end_inset
+
+ and enable the package 
+\series bold
+lineno
+\series default
+ in the preamble if you need line numbers.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Section