X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Felsart.layout;h=af1a0d24741a631a7250745e21e0661f88492de3;hb=9e425a0547a2861dc41b130a32b62fc7ff7072c8;hp=970022c2b2d77adf535204c6371c6bf5d63949ec;hpb=5c17c617f712d3bae2949d6214471ac8a63a8459;p=lyx.git diff --git a/lib/layouts/elsart.layout b/lib/layouts/elsart.layout index 970022c2b2..af1a0d2474 100644 --- a/lib/layouts/elsart.layout +++ b/lib/layouts/elsart.layout @@ -1,5 +1,6 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[elsart,amssymb.sty]{article (elsevier)} +# \DeclareLaTeXClass[elsart,amssymb.sty,latexsym.sty]{Elsevier (Obsolete Version)} +# \DeclareCategory{Articles} # Author: Rod Pinna # The Elsevier doc style also duplicates the theorem # environments used by the AMS. The definitions here have been @@ -17,67 +18,69 @@ # for use of BeginTitle/EndTitle # modified 2003-03-11 JMarc for use of TitleLatexType/TitleLatexName # modified 2003-04-10 Rod Pinna - added proof env. sent to me by Stacy Prowell +# modified 2003-07-23 Rod Pinna - changes MaxCounter to Section, +# rather than subsection. The Elsevier doc file allows for +# numbered sections, as does the class file. -# General textclass parameters -Columns 1 -Sides 2 -PageStyle headings -MaxCounter Counter_Subsection + +Format 45 +Columns 1 +Sides 2 +PageStyle headings ClassOptions -# FontSize "default" # controlled by class +# FontSize "default" # controlled by class End # elsart does not use the plain old \maketitle TitleLatexType Environment TitleLatexName frontmatter -DefaultFont - Family Roman - Series Medium - Shape Up - Size Normal - Color None -EndFont +Counter summ +End + + +Counter case +End Style Standard - LatexName dummy - LatexType Paragraph - Margin Static - ParIndent MM - ParSkip 0.4 - ParSep 0.4 - TopSep 1.0 - BottomSep 1.0 - Align Block - AlignPossible Block, Left, Right, Center - LabelType No_Label + Category MainText + LatexName dummy + LatexType Paragraph + Margin Static + ParIndent MM + ParSkip 0.4 + ParSep 0.4 + TopSep 1.0 + BottomSep 1.0 + Align Block + AlignPossible Block, Left, Right, Center + LabelType No_Label End Style Keywords - LatexName keyword - LatexType Environment - Margin Static - ParIndent MM - InTitle 1 - ParSkip 0.4 - ParSep 0.4 - TopSep 1.0 - BottomSep 1.0 - Align Block - AlignPossible Block, Left, Right, Center - LabelType No_Label -Font - Color blue -EndFont + LatexName keyword + LatexType Environment + Margin Static + ParIndent MM + InTitle 1 + ParSkip 0.4 + ParSep 0.4 + TopSep 1.0 + BottomSep 1.0 + Align Block + AlignPossible Block, Left, Right, Center + LabelType No_Label + Font + Color blue + EndFont End -# Load standard defs, as most of the -# Elsevier stuff seems the same. +Input stdinsets.inc Input stdsections.inc Input stdstarsections.inc Input stdlists.inc @@ -87,8 +90,8 @@ Input stdfloats.inc Input stdcounters.inc -# Title style definition Style Title + Category FrontMatter Margin Static LatexType Command InTitle 1 @@ -100,16 +103,17 @@ Style Title ParSep 0.7 Align Center LabelType No_Label -# standard font definition - Font + Font Family Sans Series Bold Size Largest EndFont + HTMLTitle true End -# Author style definition + Style Author + Category FrontMatter Margin Static LatexType Command InTitle 1 @@ -121,38 +125,46 @@ Style Author ItemSep 0 ParSep 0 Align Center - AlignPossible Center - # standard font definition - Font + Argument 1 + LabelString "Author Option" + Tooltip "Optional argument for the author" + EndArgument + Font Series Bold EndFont End -# Author Adress + Style Author_Address - Margin Static + Margin Dynamic LatexType Command InTitle 1 LatexName address Align Center - AlignPossible Center Labeltype Static - LabelString "Address: " + LabelSep M + LabelString "Address:" + Argument 1 + LabelString "Address Option" + Tooltip "Optional argument for the address" + EndArgument LabelFont Shape Italic EndFont End + Style Author_Email - Margin Static + Margin Dynamic LatexType Command InTitle 1 PassThru 1 + ParbreakIsNewline 1 LatexName ead Align Center - AlignPossible Center Labeltype Static - LabelString "Email: " + LabelSep M + LabelString "Email:" TextFont Family Typewriter EndFont @@ -162,17 +174,19 @@ Style Author_Email EndFont End + Style Author_URL - Margin Static + Margin Dynamic LatexType Command InTitle 1 PassThru 1 + ParbreakIsNewline 1 LatexName ead LatexParam "[url]" Align Center - AlignPossible Center Labeltype Static - LabelString "URL: " + LabelSep M + LabelString "URL:" TextFont Family Typewriter EndFont @@ -182,21 +196,26 @@ Style Author_URL EndFont End + # thanks is like a footnote Style Thanks Margin Static LatexType Command - LatexName thanks + LatexName thanks InTitle 1 - Font + Argument 1 + LabelString "Thanks Option" + Tooltip "Optional argument for the thanks statement" + EndArgument + Font Size Small Family Typewriter Shape Italic - EndFont + EndFont End -# new Abstract style definition -Style Abstract + +Style Abstract Margin Static LatexType Environment LatexName abstract @@ -210,31 +229,22 @@ Style Abstract BottomSep 0.7 ParSep 0 Align Block - AlignPossible Block - LabelType Centered_Top_Environment - LabelString Abstract + LabelType Centered + LabelString "Abstract" LabelBottomSep 0.5 - - # standard font definition - Font + Font Size Small EndFont - - # label font definition - LabelFont + LabelFont Series Bold Size Large EndFont -End - - -# Theorm environments have been copied over from -# the amsmaths.inc file. It could not be inputfiled -# as it does some stuff which is incompatible with -# the Elsevier stlye, that is it redefines -# the theorem* environments in the preamble. +End +# Reasoning environments have been copied over from the theorem modules. They +# could not be input as they do some stuff which is incompatible with the +# Elsevier stlye: redefine the theorem* environments in the preamble. # The environments defined are : # - Theorem @@ -255,14 +265,18 @@ End # - Acknowledgement # - Case -# Theorem-numbered style declaration +Counter theorem +End + + Style Theorem + Category Reasoning Margin First_Dynamic LatexType Environment LatexName thm NextNoIndent 1 LabelSep xx - ParIndent MMM + ParIndent MMM ParSkip 0.4 ItemSep 0.2 TopSep 0.7 @@ -271,25 +285,22 @@ Style Theorem Align Block AlignPossible Block, Left LabelType Static - LabelString "Theorem #." - - - # standard font definition + LabelCounter theorem + LabelString "Theorem \arabic{theorem}" Font Shape Italic Size Normal EndFont - - # label font definition LabelFont Shape Up Series Bold EndFont +End -End # Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu) Style Proof + Category Reasoning Margin First_Dynamic LatexType Environment # elsart defines the unusual environment pf for proofs. @@ -305,205 +316,138 @@ Style Proof Align Block AlignPossible Block, Left LabelType Static - # make the label all caps, like it is in the output. LabelString "PROOF." - - # standard font definition Font Shape Up Size Normal EndFont - - # label font definition LabelFont Series Bold EndFont End -# Lemma-numbered style declaration + Style Lemma CopyStyle Theorem LatexName lem - LabelString "Lemma #." - -# Preamble -# \theoremstyle{plain} -# \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering -# EndPreamble + LabelString "Lemma \arabic{theorem}" End -# Corollary-numbered style declaration + Style Corollary CopyStyle Theorem LatexName cor - LabelString "Corollary #." + LabelString "Corollary \arabic{theorem}" +End -# Preamble -# \theoremstyle{plain} -# \newtheorem{cor}[thm]{Corollary} %%Delete [thm] to re-start numbering -# EndPreamble -End -# Proposition-numbered style declaration Style Proposition CopyStyle Theorem LatexName prop - LabelString "Proposition #." + LabelString "Proposition \arabic{theorem}" +End -# Preamble -# \theoremstyle{plain} -# \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start numbering -# EndPreamble -End -# Criterion-numbered style declaration Style Criterion CopyStyle Theorem LatexName crit - LabelString "Criterion #." + LabelString "Criterion \arabic{theorem}" +End -# Preamble -# \theoremstyle{plain} -# \newtheorem{crit}[thm]{Criterion} %%Delete [thm] to re-start numbering -# EndPreamble -End -# Algorithm-numbered style declaration Style Algorithm CopyStyle Theorem LatexName alg - LabelString "Algorithm #." + LabelString "Algorithm \arabic{theorem}" +End -# Preamble -# \theoremstyle{plain} -# \newtheorem{alg}[thm]{Algorithm} %%Delete [thm] to re-start numbering -# EndPreamble -End -# Definition-numbered style declaration Style Definition CopyStyle Theorem LatexName defn - LabelString "Definition #." - - # standard font definition + LabelString "Definition \arabic{theorem}" Font Shape Up EndFont - - # label font definition LabelFont Shape Up Series Bold EndFont - -# Preamble -# \theoremstyle{definition} -# \newtheorem{defn}[thm]{Definition} -# EndPreamble -End - -# Conjecture-numbered style declaration +End + + Style Conjecture CopyStyle Theorem LatexName conj - LabelString "Conjecture #." - -# Preamble -# \theoremstyle{plain} -# \newtheorem{conj}[thm]{Conjecture} %%Delete [thm] to re-start numbering -# EndPreamble + LabelString "Conjecture \arabic{theorem}" End -# Example-numbered style declaration + Style Example CopyStyle Theorem LatexName exmp - LabelString "Example #." + LabelString "Example \arabic{theorem}" +End -# Preamble -# \theoremstyle{definition} -# \newtheorem{exmp}[thm]{Example} -# EndPreamble -End -# Problem-numbered style declaration Style Problem CopyStyle Theorem LatexName prob - LabelString "Problem #." + LabelString "Problem \arabic{theorem}" +End -# Preamble -# \theoremstyle{definition} -# \newtheorem{prob}[thm]{Problem} -# EndPreamble -End -# Remark-numbered style declaration Style Remark CopyStyle Theorem LatexName rem - LabelString "Remark #." + LabelString "Remark \arabic{theorem}" +End -End -# Note-numbered style declaration Style Note CopyStyle Theorem LatexName note - LabelString "Note #." + LabelString "Note \arabic{theorem}" +End -End -# Claim-numbered style declaration Style Claim CopyStyle Theorem LatexName claim - LabelString "Claim #." + LabelString "Claim \arabic{theorem}" +End -End -# Summary-numbered style declaration Style Summary CopyStyle Theorem LatexName summ - LabelString "Summary #." + LabelCounter summ + LabelString "Summary \arabic{summ}" +End -End -# Case-numbered style declaration Style Case CopyStyle Theorem LatexName case - LabelString "Case #." - -End + LabelCounter case + LabelString "Case \arabic{case}" +End -# Acknowledgement-numbered style declaration -#Style Acknowledgement -# CopyStyle Theorem -# LatexName ack -# LabelString "Acknowledgement #." -# -#End -# Acknowledgement style definition -# This is not taken from the AMS defs, -# so as to match the output of the +# This is not taken from the AMS defs, so as to match the output of the # style file. - Style Acknowledgement Margin Static LatexType environment LatexName ack - Labeltype Top_Environment + LabelType Above LabelBottomsep 1 - LabelString "Acknowledgement #." + LabelString "Acknowledgements" parsep 0.3 - -LabelFont - Size large - Series Bold -EndFont - + LabelFont + Size large + Series Bold + EndFont End + +Input theorems-refprefix.inc