From dbbe58c2cf950227a16f8a990abe5cd99b6ecc2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Fri, 6 Jan 2012 01:01:57 +0000 Subject: [PATCH] elsarticle.layout: switch from \maketitle to \begin{frontmatter}, see #7977 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40575 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/elsarticle.layout | 37 ++++++++++++++++++---- lib/templates/elsarticle.lyx | 59 +++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 6 deletions(-) diff --git a/lib/layouts/elsarticle.layout b/lib/layouts/elsarticle.layout index a101531392..4e77b63cea 100644 --- a/lib/layouts/elsarticle.layout +++ b/lib/layouts/elsarticle.layout @@ -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 diff --git a/lib/templates/elsarticle.lyx b/lib/templates/elsarticle.lyx index 020ffacd2c..516c8258aa 100644 --- a/lib/templates/elsarticle.lyx +++ b/lib/templates/elsarticle.lyx @@ -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 -- 2.39.2