X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Felsarticle.layout;h=ad4ccacd64ef5981ba84d7204b65906173fa8cc6;hb=5c545573507bbf55f78c294188537c6aff959bc0;hp=74772c5479e61edc822ad320f475199cf24acef6;hpb=159c8840624503944f6718fed90d34ec826402f7;p=lyx.git diff --git a/lib/layouts/elsarticle.layout b/lib/layouts/elsarticle.layout index 74772c5479..ad4ccacd64 100644 --- a/lib/layouts/elsarticle.layout +++ b/lib/layouts/elsarticle.layout @@ -1,16 +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 64 -Columns 1 -Sides 1 -SecNumDepth 3 -TocDepth 3 -DefaultStyle Standard -Provides natbib 1 +Columns 1 +Sides 1 +SecNumDepth 3 +TocDepth 3 +DefaultStyle Standard +Provides natbib 1 +Provides refstyle 1 ClassOptions FontSize 10|11|12 @@ -29,13 +31,14 @@ EndFont Style Standard + Category MainText Margin Static LatexType Paragraph LatexName dummy ParIndent MM ParSkip 0.4 Align Block - AlignPossible Block, Left, Right, Center + AlignPossible Block, Left, Right, Center LabelType No_Label End @@ -44,9 +47,36 @@ Input stdfloats.inc Input stdlists.inc Input stdsections.inc Input stdstarsections.inc +Input stdlayouts.inc -NoStyle Chapter -NoStyle Chapter* +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 @@ -54,8 +84,8 @@ Style Title LatexType Command LatexName title Category FrontMatter - InTitle 1 - OptionalArgs 0 + InTitle 0 + ResetArgs 1 ParSkip 0.4 ItemSep 0 TopSep 0 @@ -66,12 +96,14 @@ Style Title Font Size Largest EndFont + HTMLTitle true End -InsetLayout Titlenotemark +InsetLayout "Flex:Titlenotemark" LyxType custom LatexType command + ForcePlain 1 LatexName tnoteref LabelString "Titlenote mark" Font @@ -96,8 +128,11 @@ Style "Title footnote" LatexType Command LatexName tnotetext Category FrontMatter - InTitle 1 - OptionalArgs 1 + InTitle 0 + Argument 1 + LabelString "Footnote Label" + Tooltip "Label you refer to in the title" + EndArgument ParSkip 0.4 BottomSep 0.5 Align Left @@ -115,8 +150,11 @@ Style Author Margin Static LatexType Command Category FrontMatter - InTitle 1 - OptionalArgs 1 + InTitle 0 + Argument 1 + LabelString "Author Label" + Tooltip "Label you will reference in the address" + EndArgument LatexName author LabelSep xxx ParSkip 0.4 @@ -131,9 +169,10 @@ Style Author End -InsetLayout Authormark +InsetLayout "Flex:Authormark" LyxType custom LatexType command + ForcePlain 1 LatexName fnref LabelString "Author mark" Font @@ -157,33 +196,25 @@ Style "Author footnote" CopyStyle "Title footnote" LatexName fntext LabelString "Author footnote:" + Argument 1 + LabelString "Author Footnote Label" + Tooltip "Label you refer to for an author" + EndArgument End -InsetLayout CorAuthormark - LyxType custom - LatexType command +InsetLayout "Flex:CorAuthormark" + CopyStyle "Flex:Authormark" 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" + CopyStyle "Author footnote" LatexName cortext LabelString "Corresponding author text:" End @@ -194,11 +225,14 @@ Style Address LatexType Command Category FrontMatter LatexName address - InTitle 1 - OptionalArgs 1 + InTitle 0 + Argument 1 + LabelString "Address Label" + Tooltip "Label of the author you refer to" + EndArgument ParSkip 0.4 Align Center - AlignPossible Left, Right + AlignPossible Left, Right LabelType No_Label Font Shape Italic @@ -209,7 +243,11 @@ End Style Email CopyStyle Address LatexName ead - AlignPossible Block + AlignPossible Block + Argument 1 + LabelString "Internet" + Tooltip "If content is 'url', email becomes an Internet address" + EndArgument Font Shape Up EndFont @@ -221,8 +259,8 @@ Style Abstract LatexType Environment LatexName abstract Category FrontMatter - InTitle 1 - NextNoIndent 1 + InTitle 0 + NextNoIndent 1 LeftMargin MMM RightMargin MMM ParIndent MM @@ -231,10 +269,10 @@ Style Abstract BottomSep 0.7 ParSep 0 Align Block - AlignPossible Block - LabelType Centered_Top_Environment + AlignPossible Block + LabelType Centered LabelString "Abstract" - LabelBottomSep 0.5 + LabelBottomSep 0.5 Font Size Small EndFont @@ -250,9 +288,8 @@ Style Keywords LatexType Environment LatexName keyword Category FrontMatter - InTitle 1 - Align Left - NextNoIndent 1 + InTitle 0 + NextNoIndent 1 BottomSep 0.5 ParSkip 0.4 Align Block @@ -271,7 +308,8 @@ Style Bibliography LatexType Bib_Environment LatexName thebibliography Category BackMatter - NextNoIndent 1 + NextNoIndent 1 + ToggleIndent Never LeftMargin MM ParSkip 0.4 ItemSep 0 @@ -279,10 +317,10 @@ Style Bibliography BottomSep 0.7 ParSep 0.5 Align Block - AlignPossible Block, Left + AlignPossible Block, Left LabelType Bibliography LabelString "References" - LabelBottomSep 1.2 + LabelBottomSep 1.2 LabelFont Series Bold Size Larger