# HG changeset patch # User Alpar Juttner # Date 1479482282 -3600 # Node ID bc6edeef8717ad18df476d5f84545db939221aa6 Initial setup diff -r 000000000000 -r bc6edeef8717 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Fri Nov 18 16:18:02 2016 +0100 @@ -0,0 +1,28 @@ +syntax: glob +*.obj +*.orig +*.rej +*~ +*.o +*.log +*.lo +*.tar.* +*.bak +doc/Doxyfile +*.aux +*.bbl +*.blg +*.dvi +*.toc +*.nav +*.out +*.snm +*.spl +*.zip +damecco.pdf + +syntax: regexp +(.*/)?\#[^/]*\#$ +(.*/)?\.\#[^/]*$ +^.*objs.*/.* +^.*build.*/.* diff -r 000000000000 -r bc6edeef8717 damecco.tex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/damecco.tex Fri Nov 18 16:18:02 2016 +0100 @@ -0,0 +1,137 @@ +%% +%% Copyright 2007, 2008, 2009 Elsevier Ltd +%% +%% This file is part of the 'Elsarticle Bundle'. +%% --------------------------------------------- +%% +%% It may be distributed under the conditions of the LaTeX Project Public +%% License, either version 1.2 of this license or (at your option) any +%% later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% The list of all files belonging to the 'Elsarticle Bundle' is +%% given in the file `manifest.txt'. +%% + +%% Template article for Elsevier's document class `elsarticle' +%% with numbered style bibliographic references +%% SP 2008/03/01 + +\documentclass[preprint,12pt]{elsarticle} + +%% Use the option review to obtain double line spacing +%% \documentclass[authoryear,preprint,review,12pt]{elsarticle} + +%% Use the options 1p,twocolumn; 3p; 3p,twocolumn; 5p; or 5p,twocolumn +%% for a journal layout: +%% \documentclass[final,1p,times]{elsarticle} +%% \documentclass[final,1p,times,twocolumn]{elsarticle} +%% \documentclass[final,3p,times]{elsarticle} +%% \documentclass[final,3p,times,twocolumn]{elsarticle} +%% \documentclass[final,5p,times]{elsarticle} +%% \documentclass[final,5p,times,twocolumn]{elsarticle} + +%% For including figures, graphicx.sty has been loaded in +%% elsarticle.cls. If you prefer to use the old commands +%% please give \usepackage{epsfig} + +%% The amssymb package provides various useful mathematical symbols +\usepackage{amssymb} +%% The amsthm package provides extended theorem environments +%% \usepackage{amsthm} + +%% The lineno packages adds line numbers. Start line numbering with +%% \begin{linenumbers}, end it with \end{linenumbers}. Or switch it on +%% for the whole article with \linenumbers. +%% \usepackage{lineno} + +\journal{Nuclear Physics B} + +\begin{document} + +\begin{frontmatter} + +%% Title, authors and addresses + +%% use the tnoteref command within \title for footnotes; +%% use the tnotetext command for theassociated footnote; +%% use the fnref command within \author or \address for footnotes; +%% use the fntext command for theassociated footnote; +%% use the corref command within \author for corresponding author footnotes; +%% use the cortext command for theassociated footnote; +%% use the ead command for the email address, +%% and the form \ead[url] for the home page: +%% \title{Title\tnoteref{label1}} +%% \tnotetext[label1]{} +%% \author{Name\corref{cor1}\fnref{label2}} +%% \ead{email address} +%% \ead[url]{home page} +%% \fntext[label2]{} +%% \cortext[cor1]{} +%% \address{Address\fnref{label3}} +%% \fntext[label3]{} + +\title{} + +%% use optional labels to link authors explicitly to addresses: +%% \author[label1,label2]{} +%% \address[label1]{} +%% \address[label2]{} + +\author{} + +\address{} + +\begin{abstract} +%% Text of abstract + +\end{abstract} + +\begin{keyword} +%% keywords here, in the form: keyword \sep keyword + +%% PACS codes here, in the form: \PACS code \sep code + +%% MSC codes here, in the form: \MSC code \sep code +%% or \MSC[2008] code \sep code (2000 is the default) + +\end{keyword} + +\end{frontmatter} + +%% \linenumbers + +%% main text +\section{} +\label{} + +%% The Appendices part is started with the command \appendix; +%% appendix sections are then done as normal sections +%% \appendix + +%% \section{} +%% \label{} + +%% If you have bibdatabase file and want bibtex to generate the +%% bibitems, please use +%% +%% \bibliographystyle{elsarticle-num} +%% \bibliography{} + +%% else use the following coding to input the bibitems directly in the +%% TeX file. + +\begin{thebibliography}{00} + +%% \bibitem{label} +%% Text of bibliographic item + +\bibitem{} + +\end{thebibliography} +\end{document} +\endinput +%% +%% End of file `elsarticle-template-num.tex'. diff -r 000000000000 -r bc6edeef8717 elsarticle/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/elsarticle/README Fri Nov 18 16:18:02 2016 +0100 @@ -0,0 +1,46 @@ +This is Elsevier's new document class for typeset journal articles, +elsarticle.cls. It is now accepted for submitted articles, both in +Elsevier's electronic submission system and elsewhere. + +Elsevier's previous document class for typeset articles, elsart.cls, +is now over 10 years old. It has been replaced with this newly written +document class elsarticle.cls, which has been developed for Elsevier +by the leading TeX developer River Valley Technologies. + +elsarticle.cls is based upon the standard LaTeX document class +article.cls. It uses natbib.sty for bibliographical references. + +Bugs and problems with elsarticle.cls may be reported to the +developers of the class via elsarticle@river-valley.com. + +The file manifest.txt provides a list of the files in the elsarticle +bundle. The following are the main files available: +- elsarticle.cls, the class file +- elsdoc.pdf, the user documentation +- elsarticle-template-num.tex, template file for numerical references +- elsarticle-template-harv.tex, template file for name-year references +- elsarticle-num.bst, bibliographic style for numerical references +- elsarticle-harv.bst, bibliographic style for name-year references +- elsarticle-num-names.bst, bibliographic style for numerical references + with author-year citation + +To extract all files from *.dtx: latex elsarticle.ins + +The documentation file is elsdoc.tex in the contrib directory. To +compile it: +1. pdflatex elsdoc +2. pdflatex elsdoc +3. pdflatex elsdoc + +or + +use the makefile. Use the target `all' (eg: make all). + +The above procedure will create a print version, namely elsdoc.pdf. + +Copyright 2007-2009, Elsevier. Bugs, feature requests, suggestions and +comments may be mailed to elsarticle@river-valley.com. elsarticle.cls, +related documentation and supporting packages are released under the +LATEX Project Public Licence, either version 1.3 or any later +version. This work has the LPPL maintenance status +'author-maintained'. diff -r 000000000000 -r bc6edeef8717 elsarticle/doc/els-1p.pdf Binary file elsarticle/doc/els-1p.pdf has changed diff -r 000000000000 -r bc6edeef8717 elsarticle/doc/els-3pd.pdf Binary file elsarticle/doc/els-3pd.pdf has changed diff -r 000000000000 -r bc6edeef8717 elsarticle/doc/els1.pdf Binary file elsarticle/doc/els1.pdf has changed diff -r 000000000000 -r bc6edeef8717 elsarticle/doc/els2.pdf Binary file elsarticle/doc/els2.pdf has changed diff -r 000000000000 -r bc6edeef8717 elsarticle/doc/elsdoc.pdf Binary file elsarticle/doc/elsdoc.pdf has changed diff -r 000000000000 -r bc6edeef8717 elsarticle/doc/elsdoc.tex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/elsarticle/doc/elsdoc.tex Fri Nov 18 16:18:02 2016 +0100 @@ -0,0 +1,729 @@ +%% +%% Copyright 2007, 2008, 2009 Elsevier Ltd +%% +%% This file is part of the 'Elsarticle Bundle'. +%% --------------------------------------------- +%% +%% It may be distributed under the conditions of the LaTeX Project Public +%% License, either version 1.2 of this license or (at your option) any +%% later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% The list of all files belonging to the 'Elsarticle Bundle' is +%% given in the file `manifest.txt'. +%% +\documentclass[a4paper,12pt]{article} + +\usepackage[xcolor,qtwo]{rvdtx} +\usepackage{multicol} +\usepackage{color} +\usepackage{xspace} +\usepackage{pdfwidgets} +\usepackage{enum} + +\def\ttdefault{cmtt} + +\headsep4pc + +\makeatletter +\def\bs{\expandafter\@gobble\string\\} +\def\lb{\expandafter\@gobble\string\{} +\def\rb{\expandafter\@gobble\string\}} +\def\@pdfauthor{C.V.Radhakrishnan} +\def\@pdftitle{elsarticle.cls -- A documentation} +\def\@pdfsubject{Document formatting with elsarticle.cls} +\def\@pdfkeywords{LaTeX, Elsevier Ltd, document class} +\def\file#1{\textsf{#1}\xspace} + +%\def\LastPage{19} + +\DeclareRobustCommand{\LaTeX}{L\kern-.26em% + {\sbox\z@ T% + \vbox to\ht\z@{\hbox{\check@mathfonts + \fontsize\sf@size\z@ + \math@fontsfalse\selectfont + A\,}% + \vss}% + }% + \kern-.15em% + \TeX} +\makeatother + +\def\figurename{Clip} + +\begin{document} + +\def\testa{This is a specimen document. } +\def\testc{\testa\testa\testa\testa} +\def\testb{\testc\testc\testc\testc\testc} +\long\def\test{\testb\par\testb\par\testb\par} + +\pinclude{\copy\contbox\printSq{\LastPage}} + +\title{elsarticle.cls -- A better way to format your document} + +\author{Elsevier Ltd} +\contact{elsarticle@river-valley.com} + +\version{1.20} +\date{\today} +\maketitle + +\section{Introduction} +%\hypertarget{introduction}{} + +\file{elsarticle.cls} is a thoroughly re-written document class +for formatting \LaTeX{} submissions to Elsevier journals. +The class uses the environments and commands defined in \LaTeX{} kernel +without any change in the signature so that clashes with other +contributed \LaTeX{} packages such as \file{hyperref.sty}, +\file{preview-latex.sty}, etc., will be minimal. +\file{elsarticle.cls} is primarily built upon the default +\file{article.cls}. This class depends on the following packages +for its proper functioning: + +\begin{enumerate} +\item \file{pifont.sty} for openstar in the title footnotes; +\item \file{natbib.sty} for citation processing; +\item \file{geometry.sty} for margin settings; +\item \file{fleqn.clo} for left aligned equations; +\item \file{graphicx.sty} for graphics inclusion; +\item \file{txfonts.sty} optional font package, if the document is to + be formatted with Times and compatible math fonts; +\item \file{hyperref.sty} optional packages if hyperlinking is + required in the document. + +\end{enumerate} + +All the above packages are part of any standard \LaTeX{} installation. +Therefore, the users need not be bothered about downloading any +extra packages. Furthermore, users are free to make use of \textsc{ams} +math packages such as \file{amsmath.sty}, \file{amsthm.sty}, +\file{amssymb.sty}, \file{amsfonts.sty}, etc., if they want to. All +these packages work in tandem with \file{elsarticle.cls} without +any problems. + +\section{Major Differences} +%\hypertarget{majordifferences}{} + +Following are the major differences between \file{elsarticle.cls} +and its predecessor package, \file{elsart.cls}: + +\begin{enumerate}[\textbullet] +\item \file{elsarticle.cls} is built upon \file{article.cls} +while \file{elsart.cls} is not. \file{elsart.cls} redefines +many of the commands in the \LaTeX{} classes/kernel, which can +possibly cause surprising clashes with other contributed +\LaTeX{} packages; + +\item provides preprint document formatting by default, and +optionally formats the document as per the final +style of models $1+$, $3+$ and $5+$ of Elsevier journals; + +\item some easier ways for formatting \verb+list+ and +\verb+theorem+ environments are provided while people can still +use \file{amsthm.sty} package; + +\item \file{natbib.sty} is the main citation processing package + which can comprehensively handle all kinds of citations and +works perfectly with \file{hyperref.sty} in combination with +\file{hypernat.sty}; + +\item long title pages are processed correctly in preprint and + final formats. + +\end{enumerate} + +\section{Installation} +%\hypertarget{installation}{} + +The package is available at author resources page at Elsevier +(\url{http://www.elsevier.com/locate/latex}). +It can also be found in any of the nodes of the Comprehensive +\TeX{} Archive Network (\textsc{ctan}), one of the primary nodes +being +\url{http://www.ctan.org/tex-archive/macros/latex/contrib/elsevier/}. +Please download the \file{elsarticle.dtx} which is a composite +class with documentation and \file{elsarticle.ins} which is the +\LaTeX{} installer file. When we compile the +\file{elsarticle.ins} with \LaTeX{} it provides the class file, +\file{elsarticle.cls} by +stripping off all the documentation from the \verb+*.dtx+ file. +The class may be moved or copied to a place, usually, +\verb+$TEXMF/tex/latex/elsevier/+, %$%%%%%%%%%%%%%%%%%%%%%%%%%%%% +or a folder which will be read +by \LaTeX{} during document compilation. The \TeX{} file +database needs updation after moving/copying class file. Usually, +we use commands like \verb+mktexlsr+ or \verb+texhash+ depending +upon the distribution and operating system. + + +\section{Usage}\label{sec:usage} +%\hypertarget{usage}{} +The class should be loaded with the command: + +\begin{vquote} + \documentclass[]{elsarticle} +\end{vquote} + +\noindent where the \verb+options+ can be the following: + +\begin{description} + +\item [{\tt\color{verbcolor} preprint}] default option which format the + document for submission to Elsevier journals. + +\item [{\tt\color{verbcolor} review}] similar to the \verb+preprint+ option, but + increases the baselineskip to facilitate easier review process. + +\item [{\tt\color{verbcolor} 1p}] formats the article to the look and feel of the final + format of model 1+ journals. This is always single column style. + +\item [{\tt\color{verbcolor} 3p}] formats the article to the look and feel of the final + format of model 3+ journals. If the journal is a two column +model, use \verb+twocolumn+ option in combination. + +\item [{\tt\color{verbcolor} 5p}] formats for model 5+ journals. This is always + of two column style. + +\item [{\tt\color{verbcolor} authoryear}] author-year citation style of + \file{natbib.sty}. If you want to add extra options of +\file{natbib.sty}, you may use the options as comma delimited +strings as arguments to \verb+\biboptions+ command. An example +would be: +\end{description} +\begin{vquote} + \biboptions{longnamesfirst,angle,semicolon} +\end{vquote} + +\begin{description} +\item [{\tt\color{verbcolor} number}] numbered citation style. Extra options + can be loaded with\linebreak \verb+\biboptions+ command. + +\item [{\tt\color{verbcolor} sort\&compress}] sorts and compresses the +numbered citations. For example, citation [1,2,3] will become [1--3]. + +\item [{\tt\color{verbcolor} longtitle}] if front matter is unusually long, use + this option to split the title page across pages with the correct +placement of title and author footnotes in the first page. + +\item [{\tt\color{verbcolor} times}] loads \file{txfonts.sty}, if available in + the system to use Times and compatible math fonts. + +\item[] All options of \file{article.cls} can be used with this + document class. + +\item[] The default options loaded are \verb+a4paper+, \verb+10pt+, + \verb+oneside+, \verb+onecolumn+ and \verb+preprint+. + +\end{description} + +\section{Frontmatter} +%\hypertarget{preamble}{} + +There are two types of frontmatter coding: +\begin{enumerate}[(1)] +\item each author is +connected to an affiliation with a footnote marker; hence all +authors are grouped together and affiliations follow; +\item authors of same affiliations are grouped together and the +relevant affiliation follows this group. An example coding of the first +type is provided below. +\end{enumerate} + +\begin{vquote} + \title{This is a specimen title\tnoteref{t1,t2}} + \tnotetext[t1]{This document is a collaborative effort.} + \tnotetext[t2]{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.} +\end{vquote} + +\begin{vquote} + \author[rvt]{C.V.~Radhakrishnan\corref{cor1}\fnref{fn1}} + \ead{cvr@river-valley.com} + + \author[rvt,focal]{K.~Bazargan\fnref{fn2}} + \ead{kaveh@river-valley.com} + + \author[els]{S.~Pepping\corref{cor2}\fnref{fn1,fn3}} + \ead[url]{http://www.elsevier.com} +\end{vquote} + +\begin{vquote} + \cortext[cor1]{Corresponding author} + \cortext[cor2]{Principal corresponding author} + \fntext[fn1]{This is the specimen author footnote.} + \fntext[fn2]{Another author footnote, but a little more + longer.} + \fntext[fn3]{Yet another author footnote. Indeed, you can have + any number of author footnotes.} + + \address[rvt]{River Valley Technologies, SJP Building, + Cotton Hills, Trivandrum, Kerala, India 695014} + \address[focal]{River Valley Technologies, 9, Browns Court, + Kennford, Exeter, United Kingdom} + \address[els]{Central Application Management, + Elsevier, Radarweg 29, 1043 NX\\ + Amsterdam, Netherlands} + +\end{vquote} + +The output of the above TeX source is given in Clips~\ref{clip1} and +\ref{clip2}. The header portion or title area is given in Clip~\ref{clip1} and +the footer area is given in Clip~\ref{clip2}. + +\vspace*{6pt} +\def\rulecolor{blue!70} +\src{Header of the title page.} +\includeclip{1}{132 571 481 690}{els1.pdf} +\def\rulecolor{orange} + +%\vspace*{6pt} +\def\rulecolor{blue!70} +\src{Footer of the title page.} +\includeclip{1}{122 129 481 237}{els1.pdf} +\def\rulecolor{orange} +\pagebreak + +Most of the commands such as \verb+\title+, \verb+\author+, +\verb+\address+ are self explanatory. Various components are +linked to each other by a label--reference mechanism; for +instance, title footnote is linked to the title with a footnote +mark generated by referring to the \verb+\label+ string of +the \verb=\tnotetext=. We have used similar commands +such as \verb=\tnoteref= (to link title note to title); +\verb=\corref= (to link corresponding author text to +corresponding author); \verb=\fnref= (to link footnote text to +the relevant author names). \TeX{} needs two compilations to +resolve the footnote marks in the preamble part. +Given below are the syntax of various note marks and note texts. + +\begin{vquote} + \tnoteref{} + \corref{} + \fnref{} + \tnotetext[