- new layout for the elsarticle class

- remove the template for elsart, as this class is obsolete since elsarticle was released

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26716 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-10-04 11:56:27 +00:00
parent d7fc0b7ba8
commit a998a0a342
7 changed files with 1042 additions and 202 deletions

View File

@ -1499,7 +1499,7 @@ lib_templates_files = Split('''
de_beamer-conference-ornate-20min.lyx
dinbrief.lyx
docbook_article.lyx
elsart.lyx
elsarticle.lyx
fr_beamer-conference-ornate-20min.lyx
g-brief-de.lyx
g-brief-en.lyx
@ -2735,6 +2735,7 @@ lib_layouts_files = Split('''
dtk.layout
egs.layout
elsart.layout
elsarticle.layout
entcs.layout
europecv.layout
extarticle.layout

View File

@ -951,6 +951,7 @@ dist_layouts_DATA =\
layouts/dtk.layout \
layouts/egs.layout \
layouts/elsart.layout \
layouts/elsarticle.layout \
layouts/entcs.layout \
layouts/europecv.layout \
layouts/extarticle.layout \
@ -1057,7 +1058,7 @@ dist_templates_DATA = \
templates/de_beamer-conference-ornate-20min.lyx \
templates/dinbrief.lyx \
templates/docbook_article.lyx \
templates/elsart.lyx \
templates/elsarticle.lyx \
templates/fr_beamer-conference-ornate-20min.lyx \
templates/g-brief2.lyx \
templates/g-brief-de.lyx \

View File

@ -1,5 +1,5 @@
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[elsart,amssymb.sty]{article (Elsevier)}
# \DeclareLaTeXClass[elsart,amssymb.sty]{article (Elsevier (obsolete))}
# 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

View File

@ -0,0 +1,209 @@
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[elsarticle]{article (Elsevier)}
# elsarticle textclass definition file.
# Author: Uwe Stöhr (uwestoehr@web.de)
Format 4
Columns 1
Sides 1
SecNumDepth 3
TocDepth 3
DefaultStyle Standard
ClassOptions
FontSize 10|11|12
end
# This is just to show how to declare the default font.
# The defaults are exactly those shown here.
DefaultFont
Family Roman
Series Medium
Shape Up
Size Normal
Color None
EndFont
Style Standard
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
End
Input stdtitle.inc
Input stdlists.inc
Input stdsections.inc
Input stdstarsections.inc
NoStyle Chapter
NoStyle Chapter*
Style Title
CopyStyle Title
OptionalArgs 0
AlignPossible None
End
Style "Title footnote"
Margin Dynamic
LatexType Command
LatexName tnotetext
InTitle 1
OptionalArgs 1
ParSkip 0.4
BottomSep 0.5
Align Left
LabelSep xx
LabelType Static
LabelString "Title footnote:"
LabelFont
Color Green
Series Bold
EndFont
End
Style Author
Margin Static
LatexType Command
InTitle 1
OptionalArgs 1
LatexName author
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Center
LabelType No_Label
Font
Size Large
EndFont
End
Style "Author footnote"
CopyStyle "Title footnote"
LatexName fntext
LabelString "Author footnote:"
End
Style "Corresponding author"
CopyStyle "Title footnote"
LatexName cortext
LabelString "Corresponding author text:"
End
Style Address
Margin Static
LatexType Command
LatexName address
InTitle 1
OptionalArgs 1
ParSkip 0.4
Align Center
AlignPossible Left, Right
LabelType No_Label
Font
Shape Italic
EndFont
End
Style Email
CopyStyle Address
LatexName ead
AlignPossible None
Font
Shape Up
EndFont
End
Style Abstract
Margin Static
LatexType Environment
LatexName abstract
InTitle 1
NextNoIndent 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
Font
Size Small
EndFont
LabelFont
Series Bold
Size Large
EndFont
End
Style Keywords
Margin Dynamic
LatexType Environment
LatexName keyword
InTitle 1
Align Left
NextNoIndent 1
BottomSep 0.5
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
LabelString "Keywords:"
LabelFont
Color Green
Series Bold
EndFont
End
Style Bibliography
Margin First_Dynamic
LatexType Bib_Environment
LatexName thebibliography
NextNoIndent 1
LeftMargin MM
ParSkip 0.4
ItemSep 0
TopSep 0.7
BottomSep 0.7
ParSep 0.5
Align Block
AlignPossible Block, Left
LabelType Bibliography
LabelString "References"
LabelBottomSep 1.2
LabelFont
Series Bold
Size Larger
EndFont
End
Input stdfloats.inc
Input stdcounters.inc
Input amsmaths.inc

View File

@ -1,197 +0,0 @@
#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass elsart
\begin_preamble
\usepackage{natbib}
\usepackage{amssymb}
\end_preamble
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize default
\use_geometry false
\use_amsmath 0
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header
\begin_body
\begin_layout Title
Insert your Title Here
\end_layout
\begin_layout Author
Author's name
\end_layout
\begin_layout Author Address
Author's address
\end_layout
\begin_layout Author Email
email@address
\end_layout
\begin_layout Author URL
http://www.home.page
\end_layout
\begin_layout Abstract
Text of abstract.
\end_layout
\begin_layout Keywords
keyword1
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
keyword2
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
keyword3
\end_layout
\begin_layout Keywords
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
PACS
\end_layout
\end_inset
code1
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
code2
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
code3
\end_layout
\begin_layout Section
First section
\end_layout
\begin_layout Standard
See style options in the
\family default
\family sans
Document\InsetSpace ~
Layout
\family default
popup (accessed from the
\family default
\family sans
Layout
\family default
menu).
See the elsart manual for style options, special macros, and the like
\begin_inset LatexCommand cite
key "mycitation"
\end_inset
.
\end_layout
\begin_layout Bibliography
\begin_inset LatexCommand bibitem
key "mycitation"
\end_inset
Author,
\begin_inset Quotes eld
\end_inset
Title
\begin_inset Quotes erd
\end_inset
, Journal
\series default
\series bold
Volume
\series default
, page--numbers (year).
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,824 @@
#LyX 1.5.7svn created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass elsarticle
\begin_preamble
% options for the bibliography, see the elsarticle documentation for further
% information!
%\biboptions{longnamesfirst,angle,semicolon}
% sort and compress citations
% the heading "Reference" is inserted by natbib
%\usepackage[numbers, sort&compress]{natbib}
% define \newblock to get natbib work with ioparticle
% (normally only needed for the "thebibliography" environment)
%\def\newblock{\hskip .11em plus .33em minus .07em}
\end_preamble
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize default
\use_geometry true
\use_amsmath 0
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle headings
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Standard
For informations about this article class, e.\InsetSpace \thinspace{}
g.\InsetSpace ~
to use the right document class
options to get the page format for your journal, have a look at the elsarticle
documentation:
\begin_inset LatexCommand url
target "http://www.ctan.org/get/macros/latex/contrib/elsarticle/elsdoc.pdf"
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Title
This is a specimen title
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
tnoteref{t1,t2}
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Standard
\size normal
With
\series bold
\size default
\backslash
tnoteref
\series default
\size normal
you refer to the title footnotes.
\end_layout
\end_inset
\end_layout
\begin_layout Title footnote
This document is a collaborative effort.
\begin_inset OptArg
status open
\begin_layout Standard
t1
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Standard
The short title is the label you refer to in the title.
\end_layout
\end_inset
\end_layout
\begin_layout Title footnote
The second title footnote which is a longer longer than the first one and
with an intention to fill in up more than one line while formatting.
\begin_inset OptArg
status open
\begin_layout Standard
t2
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Standard
There are two author styles possible:
\end_layout
\begin_layout Standard
1.
Authors side by side
\hfill
2.
Authors below each other
\hfill
\end_layout
\begin_layout Standard
Author
\hfill
Author
\hfill
\end_layout
\begin_layout Standard
Email
\hfill
Email
\hfill
\end_layout
\begin_layout Standard
Author
\hfill
Address
\hfill
\end_layout
\begin_layout Standard
Email
\hfill
Author
\hfill
\end_layout
\begin_layout Standard
Addresses
\hfill
Email
\hfill
\end_layout
\begin_layout Standard
-------
\hfill
Address
\hfill
\end_layout
\end_inset
\end_layout
\begin_layout Author
C.V.\InsetSpace ~
Radhakrishnan
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
corref{cor1}
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
corref{cor2}
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
fnref{fn1}
\end_layout
\end_inset
\begin_inset OptArg
status open
\begin_layout Standard
rvt
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Standard
The short title is the reference of the address.
\end_layout
\end_inset
\end_layout
\begin_layout Email
cvr@river-valley.com
\begin_inset Note Note
status collapsed
\begin_layout Standard
At least one Email address is required.
\end_layout
\end_inset
\end_layout
\begin_layout Author
K.\InsetSpace ~
Bazargan
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
fnref{fn2}
\end_layout
\end_inset
\begin_inset OptArg
status open
\begin_layout Standard
rvt,focal
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Standard
\size normal
With
\series bold
\size default
\backslash
fnref
\series default
\size normal
and you refer to the author footnotes.
\end_layout
\end_inset
\end_layout
\begin_layout Email
http://www.elsevier.com
\begin_inset OptArg
status open
\begin_layout Standard
url
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Standard
When the short title is
\begin_inset Quotes eld
\end_inset
url
\begin_inset Quotes erd
\end_inset
, the email becomes an Internet address.
\end_layout
\end_inset
\end_layout
\begin_layout Author footnote
This is the specimen author footnote.
\begin_inset OptArg
status open
\begin_layout Standard
fn1
\end_layout
\end_inset
\end_layout
\begin_layout Author footnote
Another author footnote, but a little more longer.
\begin_inset OptArg
status open
\begin_layout Standard
fn2
\end_layout
\end_inset
\end_layout
\begin_layout Corresponding author
Corresponding author
\begin_inset OptArg
status open
\begin_layout Standard
cor1
\end_layout
\end_inset
\end_layout
\begin_layout Corresponding author
Principal corresponding author
\begin_inset OptArg
status open
\begin_layout Standard
cor2
\end_layout
\end_inset
\end_layout
\begin_layout Address
River Valley Technologies, SJP Building, Cotton Hills, Trivandrum, Kerala,
India 695014
\begin_inset OptArg
status open
\begin_layout Standard
rvt
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Standard
The short title is the label you refer to in the authors.
\end_layout
\end_inset
\end_layout
\begin_layout Address
River Valley Technologies, 9, Browns Court, Kennford, Exeter, United Kingdom
\begin_inset OptArg
status open
\begin_layout Standard
focal
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Standard
This is an example of the second author style:
\end_layout
\begin_layout Author
C.V.\InsetSpace ~
Radhakrishnan
\end_layout
\begin_layout Email
cvr@river-valley.com
\end_layout
\begin_layout Address
River Valley Technologies, SJP Building, Cotton Hills, Trivandrum, Kerala,
India 695014
\end_layout
\begin_layout Author
K.\InsetSpace ~
Bazargan
\end_layout
\begin_layout Email
http://www.elsevier.com
\begin_inset OptArg
status collapsed
\begin_layout Standard
url
\end_layout
\end_inset
\end_layout
\begin_layout Address
River Valley Technologies, 9, Browns Court, Kennford, Exeter, United Kingdom
\end_layout
\end_inset
\end_layout
\begin_layout Abstract
Abstract, should normally be not longer than 200 words.
\end_layout
\begin_layout Keywords
quadruple exiton
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
polariton
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
WGM
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
PACS
\end_layout
\end_inset
71.35.-y
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
71.35.Lk
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
sep
\end_layout
\end_inset
71.36.+c
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
MSC[2008]
\end_layout
\end_inset
23-557
\begin_inset Note Note
status open
\begin_layout Standard
Keywords must be separated by
\series bold
\backslash
sep
\series default
.
\series bold
\backslash
PACS
\series default
and
\series bold
\backslash
MSC
\series default
are optional classifiactions.
\end_layout
\end_inset
\end_layout
\begin_layout Section
Introduction
\end_layout
\begin_layout Standard
Bla bla, as listed in
\begin_inset LatexCommand cite
key "Parkin2005,LComp2004"
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset Formula \begin{eqnarray}
A & = & \prod_{i=1}^{\infty}B\nonumber \\
& = & C\end{eqnarray}
\end_inset
\end_layout
\begin_layout Enumerate
test
\end_layout
\begin_layout Enumerate
test
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Standard
To get another numbering scheme, you cannot use an option argument (a.k.a.
short title) as described in the elsarticle manual.
But you can use the following TeX-code command to achieve the same:
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Standard
\backslash
renewcommand{
\backslash
labelenumi}{(
\backslash
roman{enumi})}
\end_layout
\end_inset
\end_layout
\begin_layout Enumerate
test
\end_layout
\begin_layout Enumerate
test
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Standard
\backslash
renewcommand{
\backslash
labelenumi}{Step
\backslash
,
\backslash
alph{enumi})}
\end_layout
\end_inset
\end_layout
\begin_layout Enumerate
test
\end_layout
\begin_layout Enumerate
test
\end_layout
\begin_layout Section
\start_of_appendix
Appendix name
\end_layout
\begin_layout Standard
Appendix, only when needed, inserted behind the acknowledgments but before
the bibliography.
\end_layout
\begin_layout Section*
-----------------
\end_layout
\begin_layout Standard
You can use either BibTeX:
\begin_inset Note Note
status open
\begin_layout Standard
The following bibliography styles are allowed:
\family sans
elsarticle-harv
\family default
,
\family sans
elsarticle-num-names
\family default
,
\family sans
elsarticle-num
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset LatexCommand bibtex
options "bibtotoc,elsarticle-harv"
bibfiles "biblioExample"
\end_inset
\end_layout
\begin_layout Section*
---------------------
\end_layout
\begin_layout Standard
\noindent
Or plain bibliography:
\end_layout
\begin_layout Bibliography
\begin_inset LatexCommand bibitem
key "key-1"
\end_inset
Frank Mittelbach and Michel Goossens:
\emph on
The LaTeX Companion Second Edition.
\emph default
Addison-Wesley, 2004.
\end_layout
\begin_layout Standard
\begin_inset LatexCommand bibitem
key "key-2"
\end_inset
Scott Pakin.
The comprehensive LaTeX symbol list, 2005.
\end_layout
\end_body
\end_document

View File

@ -42,6 +42,10 @@ What's new
- New layout file for journal articles of the Inderscience publishing group.
- New layout file and template for journal articles of the Elsevier publishing
group. The template file for the now obsolete Elsevier layout has been
removed.
- New layout file for the svjour3 class (journal articles of the Springer
publishing group) (bug 5154).
@ -128,8 +132,6 @@ What's new
- Remove confusing warning about 'server socket' under MS Windows.
- Allow the Thanks environment in Elsevier articles to have short titles.
* DOCUMENTATION AND LOCALIZATION