X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Felsarticle.layout;h=943962cd6938a0e9ba9e1adf00952cad8a55819f;hb=f8f9eec358c5dcd45665defed13d51c0b304fb8e;hp=6d8105135b2b0bf3e9dfefd5879d818fc8b52ff3;hpb=a2f4949d3842eb2fe5a692031a8f6ccb995b3d24;p=lyx.git diff --git a/lib/layouts/elsarticle.layout b/lib/layouts/elsarticle.layout index 6d8105135b..943962cd69 100644 --- a/lib/layouts/elsarticle.layout +++ b/lib/layouts/elsarticle.layout @@ -1,20 +1,25 @@ #% 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 68 -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 end +TitleLatexType Environment +TitleLatexName frontmatter # This is just to show how to declare the default font. # The defaults are exactly those shown here. @@ -28,13 +33,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 @@ -43,10 +49,11 @@ 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 Title Margin Static @@ -54,18 +61,40 @@ Style Title LatexName title Category FrontMatter InTitle 1 - OptionalArgs 0 + ResetArgs 1 ParSkip 0.4 ItemSep 0 TopSep 0 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 + ForcePlain 1 + 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 @@ -75,7 +104,10 @@ Style "Title footnote" LatexName tnotetext Category FrontMatter InTitle 1 - OptionalArgs 1 + Argument 1 + LabelString "Footnote Label" + Tooltip "Label you refer to in the title" + EndArgument ParSkip 0.4 BottomSep 0.5 Align Left @@ -94,7 +126,10 @@ Style Author LatexType Command Category FrontMatter InTitle 1 - OptionalArgs 1 + Argument 1 + LabelString "Author Label" + Tooltip "Label you will reference in the address" + EndArgument LatexName author LabelSep xxx ParSkip 0.4 @@ -109,16 +144,55 @@ Style Author End +InsetLayout "Flex:Authormark" + LyxType custom + LatexType command + ForcePlain 1 + 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 + InTitle 1 LabelString "Author footnote:" + Argument 1 + LabelString "Author Footnote Label" + Tooltip "Label you refer to for an author" + EndArgument +End + + +InsetLayout "Flex:CorAuthormark" + CopyStyle "Flex:Authormark" + LatexName corref + LabelString "CorAuthor mark" + LabelFont + Color blue + EndFont End Style "Corresponding author" - CopyStyle "Title footnote" + CopyStyle "Author footnote" LatexName cortext + InTitle 1 LabelString "Corresponding author text:" End @@ -129,10 +203,13 @@ Style Address Category FrontMatter LatexName address InTitle 1 - OptionalArgs 1 + 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 @@ -143,7 +220,12 @@ End Style Email CopyStyle Address LatexName ead - AlignPossible None + InTitle 1 + AlignPossible Block + Argument 1 + LabelString "Internet" + Tooltip "If content is 'url', email becomes an Internet address" + EndArgument Font Shape Up EndFont @@ -156,7 +238,7 @@ Style Abstract LatexName abstract Category FrontMatter InTitle 1 - NextNoIndent 1 + NextNoIndent 1 LeftMargin MMM RightMargin MMM ParIndent MM @@ -165,10 +247,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 @@ -185,8 +267,7 @@ Style Keywords LatexName keyword Category FrontMatter InTitle 1 - Align Left - NextNoIndent 1 + NextNoIndent 1 BottomSep 0.5 ParSkip 0.4 Align Block @@ -205,7 +286,8 @@ Style Bibliography LatexType Bib_Environment LatexName thebibliography Category BackMatter - NextNoIndent 1 + NextNoIndent 1 + ToggleIndent Never LeftMargin MM ParSkip 0.4 ItemSep 0 @@ -213,13 +295,15 @@ 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 EndFont + TocLevel 1 + IsTocCaption 0 End