diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index c87f39d863..3205aa8d67 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -1273,10 +1273,11 @@ lib_templates_files = Split(''' agu_article.lyx apa.lyx beamer-conference-ornate-20min.lyx + biblioExample.bib 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 @@ -2550,6 +2551,7 @@ lib_layouts_files = Split(''' dtk.layout egs.layout elsart.layout + elsarticle.layout entcs.layout europecv.layout extarticle.layout diff --git a/lib/Makefile.am b/lib/Makefile.am index 1ddc6eb546..029caed8be 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -977,6 +977,7 @@ dist_layouts_DATA =\ layouts/dtk.layout \ layouts/egs.layout \ layouts/elsart.layout \ + layouts/elsarticle.layout \ layouts/endnotes.module \ layouts/entcs.layout \ layouts/europecv.layout \ @@ -1109,10 +1110,11 @@ dist_templates_DATA = \ templates/agu_article.lyx \ templates/apa.lyx \ templates/beamer-conference-ornate-20min.lyx \ + templates/biblioExample.bib \ 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 \ diff --git a/lib/layouts/elsarticle.layout b/lib/layouts/elsarticle.layout new file mode 100644 index 0000000000..7b39f0fd11 --- /dev/null +++ b/lib/layouts/elsarticle.layout @@ -0,0 +1,208 @@ +#% 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 8 + +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 + diff --git a/lib/templates/biblioExample.bib b/lib/templates/biblioExample.bib new file mode 100644 index 0000000000..f1be181d12 --- /dev/null +++ b/lib/templates/biblioExample.bib @@ -0,0 +1,16 @@ +This file was created with JabRef 2.2. +Encoding: Cp1252 + +@BOOK{LComp2004, + title = {The LaTeX Companion Second Edition}, + publisher = {Addison-Wesley}, + year = {2004}, + author = {Frank Mittelbach and Michael Goossens} +} + +@MISC{Parkin2005, + author = {Scott Pakin}, + title = {The Comprehensive {\LaTeX{}} Symbol List}, + year = {2005} +} + diff --git a/lib/templates/elsart.lyx b/lib/templates/elsart.lyx deleted file mode 100644 index b1362daacf..0000000000 --- a/lib/templates/elsart.lyx +++ /dev/null @@ -1,194 +0,0 @@ -#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/ -\lyxformat 341 -\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 -\use_hyperref false -\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 -\author "" -\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 Plain Layout - - -\backslash -sep -\end_layout - -\end_inset - - keyword2 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -sep -\end_layout - -\end_inset - - keyword3 -\end_layout - -\begin_layout Keywords -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -PACS -\end_layout - -\end_inset - - code1 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -sep -\end_layout - -\end_inset - - code2 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\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 sans -Document -\begin_inset space ~ -\end_inset - -Layout -\family default - popup (accessed from the -\family sans -Layout -\family default - menu). - See the elsart manual for style options, special macros, and the like -\begin_inset CommandInset citation -LatexCommand cite -key "mycitation" - -\end_inset - -. -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "mycitation" - -\end_inset - -Author, -\begin_inset Quotes eld -\end_inset - -Title -\begin_inset Quotes erd -\end_inset - -, Journal -\series bold -Volume -\series default -, page--numbers (year). -\end_layout - -\end_body -\end_document diff --git a/lib/templates/elsarticle.lyx b/lib/templates/elsarticle.lyx new file mode 100644 index 0000000000..a1b3707085 --- /dev/null +++ b/lib/templates/elsarticle.lyx @@ -0,0 +1,880 @@ +#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/ +\lyxformat 341 +\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 +\use_hyperref false +\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 Plain Layout +For informations about this article class, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space ~ +\end_inset + +to use the right document class options to get the page format for your + journal, have a look at the elsarticle documentation: +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://www.ctan.org/get/macros/latex/contrib/elsarticle/elsdoc.pdf +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +This is a specimen title +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +tnoteref{t1,t2} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\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 Plain Layout +t1 +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +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 Plain Layout +t2 +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +There are two author styles possible: +\end_layout + +\begin_layout Plain Layout +1. + Authors side by side +\begin_inset space \hfill{} +\end_inset + +2. + Authors below each other +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Author +\begin_inset space \hfill{} +\end_inset + +Author +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Email +\begin_inset space \hfill{} +\end_inset + +Email +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Author +\begin_inset space \hfill{} +\end_inset + +Address +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Email +\begin_inset space \hfill{} +\end_inset + +Author +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Addresses +\begin_inset space \hfill{} +\end_inset + +Email +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\begin_layout Plain Layout +------- +\begin_inset space \hfill{} +\end_inset + +Address +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Author +C.V. +\begin_inset space ~ +\end_inset + +Radhakrishnan +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +corref{cor1} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +corref{cor2} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fnref{fn1} +\end_layout + +\end_inset + + +\begin_inset OptArg +status open + +\begin_layout Plain Layout +rvt +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +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 Plain Layout +At least one Email address is required. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Author +K. +\begin_inset space ~ +\end_inset + +Bazargan +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fnref{fn2} +\end_layout + +\end_inset + + +\begin_inset OptArg +status open + +\begin_layout Plain Layout +rvt,focal +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout + +\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 Plain Layout +url +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +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 Plain Layout +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 Plain Layout +fn2 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Corresponding author +Corresponding author +\begin_inset OptArg +status open + +\begin_layout Plain Layout +cor1 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Corresponding author +Principal corresponding author +\begin_inset OptArg +status open + +\begin_layout Plain Layout +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 Plain Layout +rvt +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +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 Plain Layout +focal +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is an example of the second author style: +\end_layout + +\begin_layout Author +C.V. +\begin_inset space ~ +\end_inset + +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. +\begin_inset space ~ +\end_inset + +Bazargan +\end_layout + +\begin_layout Email +http://www.elsevier.com +\begin_inset OptArg +status collapsed + +\begin_layout Plain Layout +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 Plain Layout + + +\backslash +sep +\end_layout + +\end_inset + + polariton +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sep +\end_layout + +\end_inset + + WGM +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +PACS +\end_layout + +\end_inset + + 71.35.-y +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sep +\end_layout + +\end_inset + + 71.35.Lk +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sep +\end_layout + +\end_inset + + 71.36.+c +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +MSC[2008] +\end_layout + +\end_inset + +23-557 +\begin_inset Note Note +status open + +\begin_layout Plain Layout +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 classifications. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +Bla bla, as listed in +\begin_inset CommandInset citation +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 Plain Layout +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 Plain Layout + + +\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 Plain Layout + + +\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 Plain Layout +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 CommandInset bibtex +LatexCommand bibtex +bibfiles "biblioExample" +options "bibtotoc,elsarticle-harv" + +\end_inset + + +\end_layout + +\begin_layout Section* +--------------------- +\end_layout + +\begin_layout Standard +\noindent +Or plain bibliography: +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +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 Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "key-2" + +\end_inset + +Scott Pakin. + The comprehensive LaTeX symbol list, 2005. +\end_layout + +\end_body +\end_document