2 %% This is file `ecrc.sty',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% elsarticle.dtx (with options: `class')
9 %% Copyright 2009, 2010, 2011 Elsevier Ltd
11 %% This file is part of the 'Elsarticle Bundle'.
12 %% -------------------------------------------
14 %% It may be distributed under the conditions of the LaTeX Project Public
15 %% License, either version 1.2 of this license or (at your option) any
16 %% later version. The latest version of this license is in
17 %% http://www.latex-project.org/lppl.txt
18 %% and version 1.2 or later is part of all distributions of LaTeX
19 %% version 1999/12/01 or later.
22 \NeedsTeXFormat{LaTeX2e}%
24 \ProvidesPackage{ecrc}[2011/05/07 v1.2a ecrc]
26 \DeclareOption{procedia}{\global\elsarticle@nsmodeltrue}
27 \newif\ifelsarticle@nsmodel\elsarticle@nsmodelfalse
31 \RequirePackage{geometry}
42 footnotesep=24pt plus 2pt minus 12pt,
44 \global\let\bibfont=\footnotesize
46 \if@twocolumn\global\@twocolumnfalse\fi
50 \AtBeginDocument{\@twosidetrue\@mparswitchfalse}
62 footnotesep=24pt plus 2pt minus 12pt,
75 footnotesep=24pt plus 2pt minus 12pt,
79 \global\let\bibfont=\footnotesize
81 \if@twocolumn\input{fleqn.clo}\fi
83 \RequirePackage{geometry}
93 footnotesep=24pt plus 2pt minus 12pt,
96 \global\let\bibfont=\footnotesize
99 \global\@twocolumntrue
101 %% End of option '5p'
105 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
107 \AtEndDocument{\label{lastpage}}
109 \let\@journalname\@empty
110 \def\journalname#1{\gdef\@journalname{#1}}
113 \def\jid#1{\gdef\@jid{#1}}
116 \parbox[t]{\@tempdima}{\centering%
117 \raisebox{20pt}{\includegraphics{SDlogo-\jtype p}}\\[-12pt]
118 \mbox{\footnotesize\@journalname~xx~(xxxx)~xxx-xxx}%
121 \def\volume#1{\gdef\@vol{#1}}
122 \def\firstpage#1{\gdef\@firstpage{#1}%
123 \setcounter{page}{#1}}
125 \def\lastpage{\pageref{lastpage}}
127 \def\jnltitlelogo#1{\gdef\@jnltitlelogo{#1}}
129 \newdimen\dummylogowidth
132 \jnltitlelogo{Journal Logo}
134 \def\TopRule{\rule{\dummylogowidth}{1.85pt}\\[-9.6pt]
135 \rule{\dummylogowidth}{1pt}}
137 \def\BottomRule{\rule{\dummylogowidth}{1pt}\\[-9pt]
138 \rule{\dummylogowidth}{1.85pt}}
141 \def\jnltitlebox{\parbox[c][42pt]{84.37pt}%%
142 {\fontsize{18pt}{20pt}\sffamily\selectfont
143 \centering\@jnltitlelogo}}
146 \parbox[c][61pt][c]{\dummylogowidth}%
154 \def\elslogo{\includegraphics{elsevier-logo-\jtype p}}
155 \def\sdlogo{\includegraphics{SDlogo-\jtype p}}
156 \def\jnllogo{\IfFileExists{\@jid logo}%
157 {\includegraphics{\@jid logo}}%
161 \def\elsarticle@titlefont{\fontsize{17pt}{20.4}\selectfont}
162 \def\elsarticle@authorfont{\fontsize{13pt}{15.6}\selectfont}
163 \def\elsarticle@absfont{\fontsize{9pt}{10.8}\selectfont}
165 \def\runauth#1{\gdef\@runauth{#1}}
168 \let\@dochead\@gobble
169 \def\dochead#1{\gdef\@dochead{\centering{\large#1}}}
171 \def\ps@pprintTitle{%
172 \def\@evenhead{%% Even head
173 \setbox1=\hbox{\elslogo}%
174 \setbox2=\hbox{\sdlogo}%
175 \setbox3=\hbox{\jnllogo}%
176 % \@tempdima=\textwidth\relax%
177 % \advance \@tempdima - \wd1%
178 % \advance \@tempdima - \wd3%
179 % \advance \@tempdima - 72pt%
183 \parbox[t]{\wd1}{\elslogo}
184 \hfil\parbox[t]{19pc}{\centering%
185 \raisebox{23pt}{\sdlogo}\\[-12pt]
186 \mbox{\footnotesize\@journalname~\@vol~(\the\year)%
187 ~\@firstpage--\lastpage}}\hfil%
188 \raisebox{23pt}{\parbox[c]{\wd3}{\jnllogo\\[6pt]
189 \ifelsarticle@nsmodel%
190 \hspace*{-1.8pc}{\footnotesize www.elsevier.com/locate/procedia}%
192 \let\@oddhead\@evenhead%
194 \let\@oddfoot\@evenfoot
197 \long\def\MaketitleBox{%
199 \def\baselinestretch{1}%
201 \ifx\@dochead\@empty\relax%
209 \def\baselinestretch{1}%
210 {\strut\elsarticle@titlefont\@title\strut}\par\vskip18pt
211 % \normalsize\elsauthors\par\vskip10pt
212 {\elsarticle@authorfont\elsauthors}\par\vskip10pt
213 \footnotesize\itshape\elsaddress\par\vskip36pt
215 \ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi
216 \ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi
228 \def\@oddhead{\parbox{\textwidth}{\itshape\footnotesize%
229 \hfill\@runauth~/~\@journalname~\@vol~(\the\year)~%
230 \@firstpage--\lastpage%
231 \hfill{\rm \thepage}}}%
232 \def\@evenhead{\parbox{\textwidth}{\itshape\footnotesize%
233 {\rm \thepage}\hfil\@runauth~/~\@journalname~\@vol~(\the\year)~%
234 \@firstpage--\lastpage\hfil}}%
235 \let\@evenfoot\@empty%
236 \let\@evenfoot\@oddfoot}
241 \def\footnoterule{\kern-3\p@%
242 \hrule width 3pc height .25pt
245 \newif\if@copyrightline\@copyrightlinefalse
246 \let\@copyrightyear\@empty
247 \def\copyrightyear#1{\gdef\@copyrightyear{#1}}
248 \let\@copyrightowner\@empty
249 \def\copyrightowner#1{\gdef\@copyrightowner{#1}}
251 \def\CopyrightLine{\@ifnextchar[{\@CopyrightLine}{\@CopyrightLine[]}}
252 \def\@CopyrightLine[#1]#2#3{\@copyrightlinetrue%
253 \gdef\@copyrightprefix{#1}%
254 \gdef\@copyrightyear{#2}%
255 \gdef\@copyrighttext{#3}%
256 \gdef\@CopyrightLine{\par\vskip1pc%
257 \noindent\ifx\@copyrightprefix\@empty\relax%
258 \else\@copyrightprefix~\fi%
259 \textcopyright~\@copyrightyear~%
262 \renewenvironment{abstract}{\global\setbox\absbox=\vbox\bgroup
263 \hsize=\textwidth\def\baselinestretch{1}%
264 \noindent\unskip\textbf{Abstract}%
265 \elsarticle@absfont\par\medskip\unskip\noindent\ignorespaces}
266 {\if@copyrightline\@CopyrightLine\fi\egroup}
270 \def\MSC{\@ifnextchar[{\@MSC}{\@MSC[2000]}}
271 \def\@MSC[##1]{\par\leavevmode\hbox {\it ##1~MSC:\space}}%
272 \def\PACS{\par\leavevmode\hbox {\it PACS:\space}}%
273 \def\JEL{\par\leavevmode\hbox {\it JEL:\space}}%
274 \global\setbox\keybox=\vbox\bgroup\hsize=\textwidth
275 \normalsize\normalfont\def\baselinestretch{1}
277 \elsarticle@absfont\noindent\textit{Keywords: }
278 \raggedright % Keywords are not justified.
280 \def\endkeyword{\par \egroup}
282 \ifelsarticle@nsmodel
283 \def\figurename{Fig.}
284 \long\def\@makecaption#1#2{%
285 \vskip\abovecaptionskip\footnotesize
286 \sbox\@tempboxa{#1. #2}%
287 \ifdim \wd\@tempboxa >\hsize
290 \global \@minipagefalse
291 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
293 \vskip\belowcaptionskip}
295 \long\def\@makecaption#1#2{%
296 \vskip\abovecaptionskip\footnotesize
297 \sbox\@tempboxa{#1. #2}%
298 \ifdim \wd\@tempboxa >\hsize
301 \global \@minipagefalse
302 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
304 \vskip\belowcaptionskip}
311 %% 27 Feb 2010: Fontsize of dochead changed to \large from \Large
312 %% as per Martin Ruck's mail on 26 Feb 2010.
316 %% 7 May 2011: As pe Martin Ruck's request on May 5, to make the
317 %% output same as that of Word template, following changes
320 %% 1. New option `procedia' defined. If this option is
321 %% used along with the 3p option, the output will be
322 %% same as that of the Word template.
324 %% 2. \CopyrightLine[<text-before-year>]{<year>}{<restt-of-the-copyright-text>}
326 %% eg: \CopyrightLine[Crown copyright]{2011}{Published by Elsevier Ltd.}
327 %% \CopyrightLine{2011}{Elsevier Ltd. All rights reserved}
329 %% 3. Fontsize of the following parts updated:
330 %% Title, Author, Abstract, Keywords
332 %% 4. Header and footer corrected. Earlier for both the
333 %% odd and even pages, the header was same. But now
336 %% 5. `Figure' changed to `Fig.' in caption.
338 %% 6. Textwidth changed to 428.pt for the option `nsmodel'.
340 %% 7. EPS version of logos created so that authors can
341 %% can use latex too in addition to pdflatex.
343 %% 2 June 2011: 1. A small typo corrected. (Proceedia changed to
346 %% 2. The journal url will appear only if the option
347 %% `procedia' is given.