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
This commit is contained in:
Uwe Stöhr 2012-01-06 01:01:57 +00:00
parent 6332326cf6
commit dbbe58c2cf
2 changed files with 90 additions and 6 deletions

View 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

View 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