mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 22:41:09 +00:00
839461ac86
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7462 a592a061-630c-0410-9148-cb99ea01b6c8
513 lines
11 KiB
Plaintext
513 lines
11 KiB
Plaintext
#% Do not delete the line below; configure depends on this
|
|
# \DeclareLaTeXClass[elsart,amssymb.sty]{article (elsevier)}
|
|
# Author: Rod Pinna <rpinna@civil.uwa.edu.au>
|
|
# The Elsevier doc style also duplicates the theorem
|
|
# environments used by the AMS. The definitions here have been
|
|
# mainly taken from the amsmath.inc file, from lyx-1.0.2, by
|
|
# David L. Johnson and Jean-Marc Lasgouttes. Some modifications
|
|
# have been made.
|
|
#
|
|
# The Elsevier style *does not* implement the starred versions
|
|
# of these environments, so they are not supported by this layout.
|
|
# There are also a few AMS environments not impletemented by Elsevier,
|
|
# so they are not included either.
|
|
#
|
|
# Version 1.0 19990506 R. Pinna Inital version
|
|
# modified 2002-04-02 Herbert Voss <voss@perce.de>
|
|
# 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_Section
|
|
|
|
|
|
ClassOptions
|
|
# 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
|
|
|
|
|
|
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
|
|
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
|
|
End
|
|
|
|
|
|
# Load standard defs, as most of the
|
|
# Elsevier stuff seems the same.
|
|
Input stdsections.inc
|
|
Input stdstarsections.inc
|
|
Input stdlists.inc
|
|
Input stdstruct.inc
|
|
Input stdlayouts.inc
|
|
Input stdfloats.inc
|
|
Input stdcounters.inc
|
|
|
|
|
|
# Title style definition
|
|
Style Title
|
|
Margin Static
|
|
LatexType Command
|
|
InTitle 1
|
|
LatexName title
|
|
NextNoIndent 1
|
|
ParSkip 0.4
|
|
TopSep 1.3
|
|
BottomSep 0.7
|
|
ParSep 0.7
|
|
Align Center
|
|
LabelType No_Label
|
|
# standard font definition
|
|
Font
|
|
Family Sans
|
|
Series Bold
|
|
Size Largest
|
|
EndFont
|
|
End
|
|
|
|
# Author style definition
|
|
Style Author
|
|
Margin Static
|
|
LatexType Command
|
|
InTitle 1
|
|
LatexName author
|
|
NextNoIndent 1
|
|
ParSkip 0.4
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ItemSep 0
|
|
ParSep 0
|
|
Align Center
|
|
AlignPossible Center
|
|
# standard font definition
|
|
Font
|
|
Series Bold
|
|
EndFont
|
|
End
|
|
|
|
# Author Adress
|
|
Style Author_Address
|
|
Margin Static
|
|
LatexType Command
|
|
InTitle 1
|
|
LatexName address
|
|
Align Center
|
|
AlignPossible Center
|
|
Labeltype Static
|
|
LabelString "Address: "
|
|
LabelFont
|
|
Shape Italic
|
|
EndFont
|
|
End
|
|
|
|
Style Author_Email
|
|
Margin Static
|
|
LatexType Command
|
|
InTitle 1
|
|
PassThru 1
|
|
LatexName ead
|
|
Align Center
|
|
AlignPossible Center
|
|
Labeltype Static
|
|
LabelString "Email: "
|
|
TextFont
|
|
Family Typewriter
|
|
EndFont
|
|
LabelFont
|
|
Shape Italic
|
|
Family Roman
|
|
EndFont
|
|
End
|
|
|
|
Style Author_URL
|
|
Margin Static
|
|
LatexType Command
|
|
InTitle 1
|
|
PassThru 1
|
|
LatexName ead
|
|
LatexParam "[url]"
|
|
Align Center
|
|
AlignPossible Center
|
|
Labeltype Static
|
|
LabelString "URL: "
|
|
TextFont
|
|
Family Typewriter
|
|
EndFont
|
|
LabelFont
|
|
Shape Italic
|
|
Family Roman
|
|
EndFont
|
|
End
|
|
|
|
# thanks is like a footnote
|
|
Style Thanks
|
|
Margin Static
|
|
LatexType Command
|
|
LatexName thanks
|
|
InTitle 1
|
|
Font
|
|
Size Small
|
|
Family Typewriter
|
|
Shape Italic
|
|
EndFont
|
|
End
|
|
|
|
# new Abstract style definition
|
|
Style Abstract
|
|
Margin Static
|
|
LatexType Environment
|
|
LatexName abstract
|
|
NextNoIndent 1
|
|
InTitle 1
|
|
LeftMargin MMM
|
|
RightMargin MMM
|
|
ParIndent MM
|
|
ItemSep 0
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ParSep 0
|
|
Align Block
|
|
AlignPossible Block
|
|
LabelType Centered_Top_Environment
|
|
LabelString Abstract
|
|
LabelBottomSep 0.5
|
|
|
|
# standard font definition
|
|
Font
|
|
Size Small
|
|
EndFont
|
|
|
|
# label font definition
|
|
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.
|
|
|
|
|
|
|
|
# The environments defined are :
|
|
# - Theorem
|
|
# - Proof
|
|
# - Corollary
|
|
# - Lemma
|
|
# - Proposition
|
|
# - Conjecture
|
|
# - Criterion
|
|
# - Algorithm
|
|
# - Definition
|
|
# - Example
|
|
# - Problem
|
|
# - Remark
|
|
# - Note
|
|
# - Claim
|
|
# - Summary
|
|
# - Acknowledgement
|
|
# - Case
|
|
|
|
# Theorem-numbered style declaration
|
|
Style Theorem
|
|
Margin First_Dynamic
|
|
LatexType Environment
|
|
LatexName thm
|
|
NextNoIndent 1
|
|
LabelSep xx
|
|
ParIndent MMM
|
|
ParSkip 0.4
|
|
ItemSep 0.2
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ParSep 0.3
|
|
Align Block
|
|
AlignPossible Block, Left
|
|
LabelType Static
|
|
LabelString "Theorem #."
|
|
|
|
|
|
# standard font definition
|
|
Font
|
|
Shape Italic
|
|
Size Normal
|
|
EndFont
|
|
|
|
# label font definition
|
|
LabelFont
|
|
Shape Up
|
|
Series Bold
|
|
EndFont
|
|
|
|
End
|
|
|
|
# Proof style declaration - from email by Stacy Prowell (sprowell@cs.utk.edu)
|
|
Style Proof
|
|
Margin First_Dynamic
|
|
LatexType Environment
|
|
# elsart defines the unusual environment pf for proofs.
|
|
LatexName pf
|
|
NextNoIndent 1
|
|
LabelSep xx
|
|
ParIndent MMM
|
|
ParSkip 0.4
|
|
ItemSep 0.2
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ParSep 0.3
|
|
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
|
|
End
|
|
|
|
# Corollary-numbered style declaration
|
|
Style Corollary
|
|
CopyStyle Theorem
|
|
LatexName cor
|
|
LabelString "Corollary #."
|
|
|
|
# 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 #."
|
|
|
|
# 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 #."
|
|
|
|
# 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 #."
|
|
|
|
# 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
|
|
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
|
|
Style Conjecture
|
|
CopyStyle Theorem
|
|
LatexName conj
|
|
LabelString "Conjecture #."
|
|
|
|
# Preamble
|
|
# \theoremstyle{plain}
|
|
# \newtheorem{conj}[thm]{Conjecture} %%Delete [thm] to re-start numbering
|
|
# EndPreamble
|
|
End
|
|
|
|
# Example-numbered style declaration
|
|
Style Example
|
|
CopyStyle Theorem
|
|
LatexName exmp
|
|
LabelString "Example #."
|
|
|
|
# Preamble
|
|
# \theoremstyle{definition}
|
|
# \newtheorem{exmp}[thm]{Example}
|
|
# EndPreamble
|
|
End
|
|
|
|
# Problem-numbered style declaration
|
|
Style Problem
|
|
CopyStyle Theorem
|
|
LatexName prob
|
|
LabelString "Problem #."
|
|
|
|
# Preamble
|
|
# \theoremstyle{definition}
|
|
# \newtheorem{prob}[thm]{Problem}
|
|
# EndPreamble
|
|
End
|
|
|
|
# Remark-numbered style declaration
|
|
Style Remark
|
|
CopyStyle Theorem
|
|
LatexName rem
|
|
LabelString "Remark #."
|
|
|
|
End
|
|
|
|
# Note-numbered style declaration
|
|
Style Note
|
|
CopyStyle Theorem
|
|
LatexName note
|
|
LabelString "Note #."
|
|
|
|
End
|
|
|
|
# Claim-numbered style declaration
|
|
Style Claim
|
|
CopyStyle Theorem
|
|
LatexName claim
|
|
LabelString "Claim #."
|
|
|
|
End
|
|
|
|
# Summary-numbered style declaration
|
|
Style Summary
|
|
CopyStyle Theorem
|
|
LatexName summ
|
|
LabelString "Summary #."
|
|
|
|
End
|
|
|
|
# Case-numbered style declaration
|
|
Style Case
|
|
CopyStyle Theorem
|
|
LatexName case
|
|
LabelString "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
|
|
# style file.
|
|
|
|
Style Acknowledgement
|
|
Margin Static
|
|
LatexType environment
|
|
LatexName ack
|
|
Labeltype Top_Environment
|
|
LabelBottomsep 1
|
|
LabelString "Acknowledgement #."
|
|
parsep 0.3
|
|
|
|
LabelFont
|
|
Size large
|
|
Series Bold
|
|
EndFont
|
|
|
|
End
|