| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2007-2026 by Elsevier Ltd |
| 4 |
% ----------------------------------------------- |
| 5 |
% |
| 6 |
% This file may be distributed and/or modified under the |
| 7 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 8 |
% of this license or (at your option) any later version. |
| 9 |
% The latest version of this license is in: |
| 10 |
% |
| 11 |
% http://www.latex-project.org/lppl.txt |
| 12 |
% |
| 13 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 14 |
% version 1999/12/01 or later. |
| 15 |
% |
| 16 |
% \fi |
| 17 |
% \CheckSum{3279} |
| 18 |
% |
| 19 |
% $Id: elsarticle.dtx 286 2026-01-09 05:51:42Z rishi $ |
| 20 |
% $URL: https://lenova.river-valley.com/svn/elsarticle/trunk/elsarticle.dtx $ |
| 21 |
% \iffalse |
| 22 |
%<*driver> |
| 23 |
\documentclass{ltxdoc} |
| 24 |
\EnableCrossrefs |
| 25 |
\CodelineIndex |
| 26 |
\RecordChanges |
| 27 |
\usepackage{comment} |
| 28 |
\begin{document} |
| 29 |
\DocInput{elsarticle.dtx} |
| 30 |
\PrintChanges |
| 31 |
\PrintIndex |
| 32 |
\end{document} |
| 33 |
%</driver> |
| 34 |
% \fi |
| 35 |
% |
| 36 |
% \CharacterTable |
| 37 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 38 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 39 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 40 |
% Exclamation \! Double quote \" Hash (number) \# |
| 41 |
% Dollar \$ Percent \% Ampersand \& |
| 42 |
% Acute accent \' Left paren \( Right paren \) |
| 43 |
% Asterisk \* Plus \+ Comma \, |
| 44 |
% Minus \- Point \. Solidus \/ |
| 45 |
% Colon \: Semicolon \; Less than \< |
| 46 |
% Equals \= Greater than \> Question mark \? |
| 47 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 48 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 49 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 50 |
% Right brace \} Tilde \~} |
| 51 |
% |
| 52 |
% |
| 53 |
% \changes{v1.1}{2008/09/25}{Initial version} |
| 54 |
% |
| 55 |
% |
| 56 |
% \changes{v1.2}{2009/09/17}{Documentation, templates, and *.bst |
| 57 |
% has been seperated from this .dtx. Incompatibility problems |
| 58 |
% with amsref.sty, fncylab.sty have been fixed. Some bugs related |
| 59 |
% to author/affiliation part have been fixed.} |
| 60 |
% |
| 61 |
% |
| 62 |
% \changes{v3.3}{2020/11/20}{Defined \string\affiliation command for structured |
| 63 |
% address tagging.} |
| 64 |
% |
| 65 |
% \changes{v3.4}{2022/11/26}{A bug fix. Accented characters produced errors. So loaded fontenc package.} |
| 66 |
|
| 67 |
% \changes{v3.4a}{2024/12/02}{Removed the preprint submitted line as per the |
| 68 |
% instruction received on 22 Oct 2024 from Arun Shanmugam (ELS) with the subject line, |
| 69 |
% FW: Preprint sentence in EM submissions} |
| 70 |
% |
| 71 |
% \changes{v3.4b}{2025/01/09}{\string\global\string\bibsep=0pt commented out for all |
| 72 |
% models since it produced error for all \string\jtype options.} |
| 73 |
% |
| 74 |
% \GetFileInfo{elsarticle.dtx} |
| 75 |
% |
| 76 |
% \DoNotIndex{\newcommand,\newenvironment} |
| 77 |
% |
| 78 |
% |
| 79 |
% \title{The \textsf{elsarticle.cls} -- Implimentation} |
| 80 |
% \author{Elsevier Ltd} |
| 81 |
% |
| 82 |
% \maketitle |
| 83 |
% |
| 84 |
% \StopEventually{} |
| 85 |
% |
| 86 |
% \section{Implementation} |
| 87 |
% |
| 88 |
% \begin{macrocode} |
| 89 |
%<*class> |
| 90 |
%% |
| 91 |
%% |
| 92 |
%% |
| 93 |
\def\RCSfile{elsarticle}% |
| 94 |
\def\RCSversion{3.5}% |
| 95 |
\def\RCSdate{2026/01/09}% |
| 96 |
\def\@shortjnl{\relax} |
| 97 |
\def\@journal{Elsevier Ltd} |
| 98 |
\def\@company{Elsevier Ltd} |
| 99 |
\def\@issn{000-0000} |
| 100 |
\def\@shortjid{elsarticle} |
| 101 |
\NeedsTeXFormat{LaTeX2e}[1995/12/01] |
| 102 |
\ProvidesClass{\@shortjid}[\RCSdate, \RCSversion: \@journal] |
| 103 |
\def\ABD{\AtBeginDocument} |
| 104 |
\newif\ifpreprint \preprintfalse |
| 105 |
\newif\ifnonatbib \nonatbibfalse |
| 106 |
\newif\iflongmktitle \longmktitlefalse |
| 107 |
\newif\ifnopreprintline \nopreprintlinefalse |
| 108 |
\newif\ifdoubleblind \doubleblindfalse |
| 109 |
|
| 110 |
\newif\ifuseexplthreefunctions \useexplthreefunctionsfalse |
| 111 |
|
| 112 |
\RequirePackage[T1]{fontenc} |
| 113 |
|
| 114 |
\IfFileExists{expl3.sty}{% |
| 115 |
\global\useexplthreefunctionstrue% |
| 116 |
\RequirePackage{expl3}}{} |
| 117 |
\ifuseexplthreefunctions\relax% |
| 118 |
\IfFileExists{xparse.sty}{\RequirePackage{xparse}}{} |
| 119 |
\IfFileExists{etoolbox.sty}{\RequirePackage{etoolbox}}{} |
| 120 |
\fi |
| 121 |
|
| 122 |
\def\@blstr{1} |
| 123 |
\newdimen\@bls |
| 124 |
\@bls=\baselineskip |
| 125 |
|
| 126 |
\def\@finalWarning{% |
| 127 |
*****************************************************\MessageBreak |
| 128 |
This document is typeset in the CRC style which\MessageBreak |
| 129 |
is not suitable for submission.\MessageBreak |
| 130 |
\MessageBreak |
| 131 |
Please typeset again using 'preprint' option\MessageBreak |
| 132 |
for creating PDF suitable for submission.\MessageBreak |
| 133 |
******************************************************\MessageBreak |
| 134 |
} |
| 135 |
|
| 136 |
\DeclareOption{preprint}{\global\preprinttrue |
| 137 |
\gdef\@blstr{1}\xdef\jtype{0}% |
| 138 |
\AtBeginDocument{\@twosidefalse\@mparswitchfalse}} |
| 139 |
\DeclareOption{nopreprintline}{\global\nopreprintlinetrue} |
| 140 |
\DeclareOption{final}{\gdef\@blstr{1}\global\preprintfalse} |
| 141 |
\DeclareOption{review}{\global\preprinttrue\gdef\@blstr{1.5}} |
| 142 |
\DeclareOption{authoryear}{\xdef\@biboptions{round,authoryear}} |
| 143 |
\DeclareOption{number}{\xdef\@biboptions{numbers}} |
| 144 |
\DeclareOption{numbers}{\xdef\@biboptions{numbers}} |
| 145 |
\DeclareOption{nonatbib}{\global\nonatbibtrue} |
| 146 |
\DeclareOption{longtitle}{\global\longmktitletrue} |
| 147 |
\DeclareOption{5p}{\xdef\jtype{5}\global\preprintfalse |
| 148 |
\ExecuteOptions{twocolumn}} |
| 149 |
\def\jtype{0} |
| 150 |
\DeclareOption{3p}{\xdef\jtype{3}\global\preprintfalse} |
| 151 |
\DeclareOption{1p}{\xdef\jtype{1}\global\preprintfalse |
| 152 |
\AtBeginDocument{\@twocolumnfalse}} |
| 153 |
\DeclareOption{times}{\IfFileExists{txfonts.sty}% |
| 154 |
{\AtEndOfClass{\RequirePackage{txfonts}% |
| 155 |
\gdef\ttdefault{cmtt}% |
| 156 |
\let\iint\relax |
| 157 |
\let\iiint\relax |
| 158 |
\let\iiiint\relax |
| 159 |
\let\idotsint\relax |
| 160 |
\let\openbox\relax}}{\AtEndOfClass{\RequirePackage{times}}}} |
| 161 |
|
| 162 |
\DeclareOption{endfloat}{\IfFileExists{endfloat.sty} |
| 163 |
{\AtEndOfClass{\RequirePackage[markers]{endfloat}}}{}} |
| 164 |
\DeclareOption{endfloats}{\IfFileExists{endfloat.sty} |
| 165 |
{\AtEndOfClass{\RequirePackage[markers]{endfloat}}}{}} |
| 166 |
\DeclareOption{numafflabel} |
| 167 |
{\AtBeginDocument{\def\theaffn{\arabic{affn}}}} %*% |
| 168 |
\DeclareOption{lefttitle} |
| 169 |
{\AtBeginDocument{\def\elsarticletitlealign{flushleft}}} %*% |
| 170 |
\DeclareOption{centertitle} |
| 171 |
{\AtBeginDocument{\def\elsarticletitlealign{center}}} %*% |
| 172 |
\DeclareOption{reversenotenum} |
| 173 |
{\AtBeginDocument{\def\theaffn{\arabic{affn}} |
| 174 |
\def\thefnote{\alph{fnote}}}} |
| 175 |
\DeclareOption{doubleblind}{\doubleblindtrue} |
| 176 |
|
| 177 |
\ExecuteOptions{a4paper,10pt,oneside,onecolumn,number,preprint,centertitle} |
| 178 |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} |
| 179 |
\ProcessOptions |
| 180 |
\LoadClass{article} |
| 181 |
\RequirePackage{graphicx} |
| 182 |
% \end{macrocode} |
| 183 |
% |
| 184 |
% \section{Preamble} |
| 185 |
% |
| 186 |
% \begin{macrocode} |
| 187 |
\let\comma\@empty |
| 188 |
\let\tnotesep\@empty |
| 189 |
\let\@title\@empty |
| 190 |
|
| 191 |
\def\useelstitle{} |
| 192 |
|
| 193 |
\def\title#1{\g@addto@macro\@title{#1% |
| 194 |
\global\let\tnoteref\@gobble}% |
| 195 |
\g@addto@macro\useelstitle{#1}} |
| 196 |
|
| 197 |
\def\elsLabel#1{\@bsphack\protected@write\@auxout{}% |
| 198 |
{\string\Newlabel{#1}{\@currentlabel}}\@esphack} |
| 199 |
\def\Newlabel#1#2{\expandafter\xdef\csname X@#1\endcsname{#2}} |
| 200 |
|
| 201 |
\def\elsRef#1{\@ifundefined{X@#1}{0}{\csname X@#1\endcsname}} |
| 202 |
|
| 203 |
\let\@tnotemark\@empty |
| 204 |
|
| 205 |
\ifdoubleblind |
| 206 |
\def\tnotemark[#1]{} |
| 207 |
\else |
| 208 |
\def\tnotemark[#1]{\@for\mytmark:=#1\do{% |
| 209 |
% \expandafter\ifcase\csname X@\mytmark\endcsname\or$^{\star}$\or |
| 210 |
\expandafter\ifcase\elsRef{\mytmark}\or$^{\star}$\or |
| 211 |
$^{,\star\star}$\fi |
| 212 |
}% |
| 213 |
} |
| 214 |
\fi |
| 215 |
|
| 216 |
\def\tnoteref#1{\tnotemark[{#1}]} |
| 217 |
\let\@tnotes\@empty |
| 218 |
\newcounter{tnote} |
| 219 |
\def\tnotetext[#1]#2{\g@addto@macro\@tnotes{% |
| 220 |
\stepcounter{tnote}\elsLabel{#1}% |
| 221 |
\def\thefootnote{\ifcase\c@tnote\or$\star$\or$\star\star$\fi}% |
| 222 |
\footnotetext{#2}}} |
| 223 |
|
| 224 |
\let\@nonumnotes\@empty |
| 225 |
\def\nonumnote#1{\g@addto@macro\@nonumnotes{% |
| 226 |
\let\thefootnote\relax\footnotetext{#1}}} |
| 227 |
|
| 228 |
\newcounter{fnote} |
| 229 |
\def\thefnote{\arabic{fnote}} |
| 230 |
\def\fnmark[#1]{\let\comma\@empty |
| 231 |
\def\@fnmark{\@for\@@fnmark:=#1\do{% |
| 232 |
\edef\fnotenum{\@ifundefined{X@\@@fnmark}{1}{\elsRef{\@@fnmark}}}% |
| 233 |
\unskip\comma\fnotenum\let\comma,}}% |
| 234 |
} |
| 235 |
|
| 236 |
\def\fnref#1{\fnmark[#1]} |
| 237 |
|
| 238 |
\let\@fnotes\@empty\let\@fnmark\@empty |
| 239 |
\def\fntext[#1]#2{\g@addto@macro\@fnotes{% |
| 240 |
\refstepcounter{fnote}\elsLabel{#1}% |
| 241 |
\def\thefootnote{\thefnote}% |
| 242 |
\global\setcounter{footnote}{\c@fnote}% |
| 243 |
\footnotetext{#2}}} |
| 244 |
|
| 245 |
\def\cormark[#1]{\edef\cnotenum{\elsRef{#1}}% |
| 246 |
\unskip\textsuperscript{\sep\ifcase\cnotenum\or |
| 247 |
$\ast$\or$\ast\ast$\fi\hspace{-1pt}}\let\sep=,} |
| 248 |
|
| 249 |
\let\@cormark\@empty |
| 250 |
\let\@cornotes\@empty |
| 251 |
\newcounter{cnote} |
| 252 |
\def\cortext[#1]#2{\g@addto@macro\@cornotes{% |
| 253 |
\refstepcounter{cnote}\elsLabel{#1}% |
| 254 |
\def\thefootnote{\ifcase\thecnote\or$\ast$\or |
| 255 |
$\ast\ast$\fi}% |
| 256 |
\footnotetext{#2}}} |
| 257 |
|
| 258 |
\let\@corref\@empty |
| 259 |
\def\corref#1{\edef\cnotenum{\elsRef{#1}}% |
| 260 |
\edef\@corref{\ifcase\cnotenum\or |
| 261 |
$\ast$\or$\ast\ast$\fi\hskip-1pt}} |
| 262 |
|
| 263 |
\def\resetTitleCounters{\c@cnote=0 |
| 264 |
\c@fnote=0 \c@tnote=0 \c@footnote=0} |
| 265 |
|
| 266 |
\let\eadsep\@empty |
| 267 |
\def\@elseads{} |
| 268 |
\let\@elsuads\@empty |
| 269 |
\let\@cormark\@empty |
| 270 |
\def\hashchar{\expandafter\@gobble\string\~} |
| 271 |
\def\underscorechar{\expandafter\@gobble\string\_} |
| 272 |
\def\lbracechar{\expandafter\@gobble\string\{} |
| 273 |
\def\rbracechar{\expandafter\@gobble\string\}} |
| 274 |
|
| 275 |
\gdef\ead{\@ifnextchar[{\@uad}{\@ead}} |
| 276 |
\gdef\@ead#1{\bgroup |
| 277 |
\def\_{\underscorechar}% |
| 278 |
\def\{{\lbracechar}% |
| 279 |
\def~{\hashchar}% |
| 280 |
\def\}{\rbracechar}% |
| 281 |
\edef\tmp{\the\@eadauthor}% |
| 282 |
\immediate\write\@auxout{\string\emailauthor |
| 283 |
{#1}{\expandafter\strip@prefix\meaning\tmp}}% |
| 284 |
\egroup |
| 285 |
} |
| 286 |
\newcounter{ead} |
| 287 |
\gdef\emailauthor#1#2{\stepcounter{ead}% |
| 288 |
\g@addto@macro\@elseads{\raggedright% |
| 289 |
\let\corref\@gobble\def\@@tmp{#1}% |
| 290 |
\eadsep{\ttfamily\expandafter\strip@prefix\meaning\@@tmp} |
| 291 |
(#2)\def\eadsep{\unskip,\space}}% |
| 292 |
} |
| 293 |
\gdef\@uad[#1]#2{\bgroup |
| 294 |
\def~{\hashchar}% |
| 295 |
\def\_{\underscorechar}% |
| 296 |
\def~{\hashchar}% |
| 297 |
\def\}{\rbracechar}% |
| 298 |
\edef\tmp{\the\@eadauthor} |
| 299 |
\immediate\write\@auxout{\string\urlauthor |
| 300 |
{#2}{\expandafter\strip@prefix\meaning\tmp}}% |
| 301 |
\egroup |
| 302 |
} |
| 303 |
\gdef\urlauthor#1#2{\g@addto@macro\@elsuads{\let\corref\@gobble% |
| 304 |
\def\@@tmp{#1}\raggedright\eadsep |
| 305 |
{\ttfamily\expandafter\strip@prefix\meaning\@@tmp}\space(#2)% |
| 306 |
\def\eadsep{\unskip,\space}}% |
| 307 |
} |
| 308 |
|
| 309 |
\def\elsauthors{} |
| 310 |
\def\useauthors{} |
| 311 |
\def\elsprelimauthors{} |
| 312 |
|
| 313 |
\def\pprinttitle{} |
| 314 |
\let\authorsep\@empty |
| 315 |
\let\prelimauthorsep\@empty |
| 316 |
\let\sep\@empty |
| 317 |
\newcounter{elsarticle@author} |
| 318 |
\def\author{\@ifnextchar[{\@@author}{\@author}} |
| 319 |
|
| 320 |
\newtoks\@eadauthor |
| 321 |
\def\@@author[#1]#2{% |
| 322 |
\g@addto@macro\elsprelimauthors{% |
| 323 |
\prelimauthorsep#2% |
| 324 |
\def\prelimauthorsep{\unskip,\space}}% |
| 325 |
\g@addto@macro\elsauthors{% |
| 326 |
\def\baselinestretch{1}% |
| 327 |
\authorsep#2\unskip\textsuperscript{%#1% |
| 328 |
\@for\@@affmark:=#1\do{% |
| 329 |
\edef\affnum{\@ifundefined{X@\@@affmark}{1}{\elsRef{\@@affmark}}}% |
| 330 |
\unskip\sep\affnum\let\sep=,}% |
| 331 |
\ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi |
| 332 |
\ifx\@corref\@empty\else\unskip\sep\@corref\let\sep=,\fi |
| 333 |
}% |
| 334 |
\def\authorsep{\unskip,\space}% |
| 335 |
\global\let\sep\@empty\global\let\@corref\@empty |
| 336 |
\global\let\@fnmark\@empty}% |
| 337 |
\@eadauthor={#2}% |
| 338 |
\g@addto@macro\useauthors{#2; }% |
| 339 |
} |
| 340 |
|
| 341 |
\def\@author#1{% |
| 342 |
\g@addto@macro\elsprelimauthors{% |
| 343 |
\prelimauthorsep#1% |
| 344 |
\def\prelimauthorsep{\unskip,\space}}% |
| 345 |
\g@addto@macro\elsauthors{\normalsize% |
| 346 |
\def\baselinestretch{1}% |
| 347 |
\upshape\authorsep#1\unskip\textsuperscript{% |
| 348 |
\ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi |
| 349 |
\ifx\@corref\@empty\else\unskip\sep\@corref\let\sep=,\fi |
| 350 |
}% |
| 351 |
\def\authorsep{\unskip,\space}% |
| 352 |
\global\let\@fnmark\@empty |
| 353 |
\global\let\@corref\@empty \global\let\sep\@empty}% |
| 354 |
\@eadauthor={#1}% |
| 355 |
\g@addto@macro\useauthors{#1; }% |
| 356 |
} |
| 357 |
|
| 358 |
\AtBeginDocument{% |
| 359 |
\@ifpackageloaded{hyperref}{% |
| 360 |
\expandafter\gdef\csname Hy@title\endcsname{\useelstitle}% |
| 361 |
\expandafter\gdef\csname Hy@author\endcsname{\useauthors}% |
| 362 |
}{} |
| 363 |
} |
| 364 |
|
| 365 |
\def\elsaddress{} |
| 366 |
\def\addsep{\par\vskip6pt} |
| 367 |
|
| 368 |
\def\@alph#1{% |
| 369 |
\ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or k\or |
| 370 |
l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or |
| 371 |
y\or z% |
| 372 |
\or aa\or ab\or ac\or ad\or ae\or af\or ag\or ah\or ai\or aj\or |
| 373 |
ak\or al\or am\or an\or ao\or ap\or aq\or ar\or as\or at\or au\or |
| 374 |
av\or aw\or ax\or ay\or az% |
| 375 |
\or ba\or bb\or bc\or bd\or be\or bf\or bg\or bh\or bi\or bj\or |
| 376 |
bk\or bl\or bm\or bn\or bo\or bp\or bq\or br\or bs\or bt\or bu\or |
| 377 |
bv\or bw\or bx\or by\or bz% |
| 378 |
\or ca\or cb\or cc\or cd\or ce\or cf\or cg\or ch\or ci\or cj\or |
| 379 |
ck\or cl\or cm\or cn\or co\or cp\or cq\or cr\or cs\or ct\or cu\or |
| 380 |
cv\or cw\or cx\or cy\or cz% |
| 381 |
\or da\or db\or dc\or dd\or de\or df\or dg\or dh\or di\or dj\or |
| 382 |
dk\or dl\or dm\or dn\or do\or dp\or dq\or dr\or ds\or dt\or du\or |
| 383 |
dv\or dw\or dx\or dy\or dz% |
| 384 |
\or ea\or eb\or ec\or ed\or ee\or ef\or eg\or eh\or ei\or ej\or |
| 385 |
ek\or el\or em\or en\or eo\or ep\or eq\or er\or es\or et\or eu\or |
| 386 |
ev\or ew\or ex\or ey\or ez% |
| 387 |
\or fa\or fb\or fc\or fd\or fe\or ff\or fg\or fh\or fi\or fj\or |
| 388 |
fk\or fl\or fm\or fn\or fo\or fp\or fq\or fr\or fs\or ft\or fu\or |
| 389 |
fv\or fw\or fx\or fy\or fz% |
| 390 |
\or ga\or gb\or gc\or gd\or ge\or gf\or gg\or gh\or gi\or gj\or |
| 391 |
gk\or gl\or gm\or gn\or go\or gp\or gq\or gr\or gs\or gt\or gu\or |
| 392 |
gv\or gw\or gx\or gy\or gz% |
| 393 |
\else\@ctrerr\fi} |
| 394 |
|
| 395 |
\newcounter{affn} |
| 396 |
\renewcommand\theaffn{\alph{affn}} |
| 397 |
|
| 398 |
\ifuseexplthreefunctions\relax% |
| 399 |
\ExplSyntaxOn |
| 400 |
\def\ca_affitem_postskip{\mbox{~}\unskip\ignorespaces} |
| 401 |
%%Author Address |
| 402 |
\DeclareDocumentCommand \ca_organization { O{,} m } |
| 403 |
{ |
| 404 |
% #2 #1\mbox{~}\unskip\ignorespaces |
| 405 |
\csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } |
| 406 |
} |
| 407 |
\DeclareDocumentCommand \ca_postal_code { O{,} m } |
| 408 |
{ |
| 409 |
% #2 #1\mbox{~}\unskip\ignorespaces |
| 410 |
\csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } |
| 411 |
} |
| 412 |
\DeclareDocumentCommand \ca_aff_city { O{,} m } |
| 413 |
{ |
| 414 |
% #2 #1\mbox{~}\unskip\ignorespaces |
| 415 |
\csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } |
| 416 |
} |
| 417 |
\DeclareDocumentCommand \ca_address_line { O{,}m } |
| 418 |
{ |
| 419 |
% #2 #1\mbox{~}\unskip\ignorespaces |
| 420 |
\csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } |
| 421 |
} |
| 422 |
\DeclareDocumentCommand \ca_state { O{,} m } |
| 423 |
{ |
| 424 |
% #2 #1\mbox{~}\unskip\ignorespaces |
| 425 |
\csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } |
| 426 |
} |
| 427 |
\DeclareDocumentCommand \ca_country { O{ } m } |
| 428 |
{ |
| 429 |
% #2 #1 |
| 430 |
\csgappto { ca_affiliation_values } { #2 #1 } |
| 431 |
} |
| 432 |
|
| 433 |
\DeclareDocumentCommand \ca_stm_organization { O{,} m } |
| 434 |
{ |
| 435 |
#2 #1\ca_affitem_postskip |
| 436 |
} |
| 437 |
\DeclareDocumentCommand \ca_stm_postal_code { O{,} m } |
| 438 |
{ |
| 439 |
#2 #1\ca_affitem_postskip |
| 440 |
} |
| 441 |
\DeclareDocumentCommand \ca_stm_aff_city { O{,} m } |
| 442 |
{ |
| 443 |
#2 #1\ca_affitem_postskip |
| 444 |
} |
| 445 |
\DeclareDocumentCommand \ca_stm_aff_address_line { O{,}m } |
| 446 |
{ |
| 447 |
#2 #1\ca_affitem_postskip |
| 448 |
} |
| 449 |
\DeclareDocumentCommand \ca_stm_state { O{,} m } |
| 450 |
{ |
| 451 |
#2 #1\ca_affitem_postskip |
| 452 |
} |
| 453 |
\DeclareDocumentCommand \ca_stm_country { O{ } m } |
| 454 |
{ |
| 455 |
#2 #1 |
| 456 |
} |
| 457 |
|
| 458 |
\keys_define:nn { stm / affiliation } |
| 459 |
{ |
| 460 |
op .tl_set_x:N = \l_organization_punc_tl, |
| 461 |
oraganizationsep .tl_set_x:N = \l_organization_punc_tl, |
| 462 |
oraganisationsep .tl_set_x:N = \l_organization_punc_tl, |
| 463 |
ap .tl_set_x:N = \l_address_line_punc_tl, |
| 464 |
addresslinesep .tl_set_x:N = \l_address_line_punc_tl, |
| 465 |
cp .tl_set_x:N = \l_city_punc_tl, |
| 466 |
citysep .tl_set_x:N = \l_city_punc_tl, |
| 467 |
pp .tl_set_x:N = \l_postal_code_punc_tl, |
| 468 |
postcodesep .tl_set_x:N = \l_postal_code_punc_tl, |
| 469 |
sp .tl_set_x:N = \l_state_punc_tl, |
| 470 |
statesep .tl_set_x:N = \l_state_punc_tl, |
| 471 |
o .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, |
| 472 |
organization .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, |
| 473 |
organisation .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, |
| 474 |
a .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, |
| 475 |
addressline .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, |
| 476 |
c .code:n = { \ca_aff_city[\l_city_punc_tl]{#1} }, |
| 477 |
city .code:n = { \ca_aff_city[\l_city_punc_tl]{#1} }, |
| 478 |
p .code:n = { \ca_postal_code[\l_postal_code_punc_tl]{#1} }, |
| 479 |
postcode .code:n = { \ca_postal_code[\l_postal_code_punc_tl]{#1} }, |
| 480 |
s .code:n = { \ca_state[\l_state_punc_tl]{#1} }, |
| 481 |
state .code:n = { \ca_state[\l_state_punc_tl]{#1} }, |
| 482 |
orp .tl_set_x:N = \l_organization_punc_tl, |
| 483 |
adp .tl_set_x:N = \l_address_line_punc_tl, |
| 484 |
cip .tl_set_x:N = \l_city_punc_tl, |
| 485 |
pcp .tl_set_x:N = \l_postal_code_punc_tl, |
| 486 |
stp .tl_set_x:N = \l_state_punc_tl, |
| 487 |
cyp .tl_set_x:N = \l_country_punc_tl, |
| 488 |
or .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, |
| 489 |
ad .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, |
| 490 |
ci .code:n = { \ca_aff_city[\l_city_punc_tl]{#1} }, |
| 491 |
pc .code:n = { \ca_postal_code[\l_postal_code_punc_tl]{#1} }, |
| 492 |
st .code:n = { \ca_state[\l_state_punc_tl]{#1} }, |
| 493 |
cy .code:n = { \ca_country[\l_country_punc_tl]{#1} }, |
| 494 |
country .code:n = { \ca_country[\l_country_punc_tl]{#1} }, |
| 495 |
unknown .code:n = { |
| 496 |
\ifstrempty { #1 } { |
| 497 |
\csxappto { ca_affiliation_values } |
| 498 |
{ {\l_keys_key_tl}~ } |
| 499 |
} { |
| 500 |
\csxappto { ca_affiliation_values } |
| 501 |
{ {#1}~ } |
| 502 |
} |
| 503 |
} |
| 504 |
} |
| 505 |
|
| 506 |
\cs_set:Npn \__reset_affiliation: |
| 507 |
{ |
| 508 |
\tl_gset:Nn \l_organization_punc_tl { , } |
| 509 |
\tl_gset:Nn \l_address_line_punc_tl { , } |
| 510 |
\tl_gset:Nn \l_city_punc_tl { , } |
| 511 |
\tl_gset:Nn \l_postal_code_punc_tl { , } |
| 512 |
\tl_gset:Nn \l_state_punc_tl { , } |
| 513 |
\tl_gset:Nn \l_country_punc_tl { } |
| 514 |
} |
| 515 |
|
| 516 |
\DeclareDocumentCommand\affiliation{ o m }{ |
| 517 |
\__reset_affiliation: |
| 518 |
\csgdef { ca_affiliation_values } { } |
| 519 |
\IfNoValueTF { #2 } |
| 520 |
{ } |
| 521 |
{ |
| 522 |
\keys_set:nn { stm / affiliation } { #2 } |
| 523 |
} |
| 524 |
\IfNoValueTF { #1 } |
| 525 |
{ |
| 526 |
\csgappto{elsauthors}{% |
| 527 |
\par\vspace*{6pt}\noindent |
| 528 |
\bgroup\def\baselinestretch{1}% |
| 529 |
\footnotesize\itshape% |
| 530 |
\unskip\ignorespaces} |
| 531 |
\csxappto{elsauthors}{\csuse { ca_affiliation_values }} |
| 532 |
\csgappto{elsauthors}{\par\vspace*{6pt} |
| 533 |
\noindent\unskip\ignorespaces |
| 534 |
\gdef\authorsep{} |
| 535 |
\egroup} |
| 536 |
} |
| 537 |
{ |
| 538 |
\csgappto{elsaddress}{ |
| 539 |
\def\baselinestretch{1}% |
| 540 |
\refstepcounter{affn} |
| 541 |
\xdef\@currentlabel{\theaffn} |
| 542 |
\IfNoValueTF { #1 } |
| 543 |
{ } |
| 544 |
{ \elsLabel{#1} } |
| 545 |
\textsuperscript{\theaffn}} |
| 546 |
\csxappto{elsaddress}{ |
| 547 |
\csuse { ca_affiliation_values } |
| 548 |
\par |
| 549 |
} |
| 550 |
} |
| 551 |
} |
| 552 |
\ExplSyntaxOff |
| 553 |
\else% |
| 554 |
\def\caaffitempostskip{\space} |
| 555 |
|
| 556 |
\DeclareRobustCommand\caorganization[2][,]{% |
| 557 |
\g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% |
| 558 |
} |
| 559 |
\DeclareRobustCommand\capostalcode[2][,]{% |
| 560 |
\g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% |
| 561 |
} |
| 562 |
\DeclareRobustCommand\caaffcity[2][,]{% |
| 563 |
\g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% |
| 564 |
} |
| 565 |
\DeclareRobustCommand\caaddressline[2][,]{% |
| 566 |
\g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% |
| 567 |
} |
| 568 |
\DeclareRobustCommand\castate[2][,]{% |
| 569 |
\g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% |
| 570 |
} |
| 571 |
\DeclareRobustCommand\cacountry[2][,]{% |
| 572 |
\g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% |
| 573 |
} |
| 574 |
\DeclareRobustCommand\castmorganization[2][,]{% |
| 575 |
#2#1\caaffitempostskip% |
| 576 |
} |
| 577 |
\DeclareRobustCommand\castmpostalcode[2][,]{% |
| 578 |
#2#1\caaffitempostskip% |
| 579 |
} |
| 580 |
\DeclareRobustCommand\castmaffcity[2][,]{% |
| 581 |
#2#1\caaffitempostskip% |
| 582 |
} |
| 583 |
\DeclareRobustCommand\castmaddressline[2][,]{% |
| 584 |
#2#1\caaffitempostskip% |
| 585 |
} |
| 586 |
\DeclareRobustCommand\castmstate[2][,]{% |
| 587 |
#2#1\caaffitempostskip% |
| 588 |
} |
| 589 |
\DeclareRobustCommand\castmcountry[2][,]{% |
| 590 |
#2#1\caaffitempostskip% |
| 591 |
} |
| 592 |
|
| 593 |
\define@key{affiliation}{op}{\xdef\@organizationpunc{#1}} |
| 594 |
\define@key{affiliation}{orp}{\xdef\@organizationpunc{#1}} |
| 595 |
\define@key{affiliation}{organizationsep}{\xdef\@organizationpunc{#1}} |
| 596 |
\define@key{affiliation}{ap}{\xdef\@addresslinepunc{#1}} |
| 597 |
\define@key{affiliation}{adp}{\xdef\@addresslinepunc{#1}} |
| 598 |
\define@key{affiliation}{addresslinesep}{\xdef\@addresslinepunc{#1}} |
| 599 |
\define@key{affiliation}{cp}{\xdef\@citypunc{#1}} |
| 600 |
\define@key{affiliation}{cip}{\xdef\@citypunc{#1}} |
| 601 |
\define@key{affiliation}{cyp}{\xdef\@countrypunc{#1}} |
| 602 |
\define@key{affiliation}{citysep}{\xdef\@citypunc{#1}} |
| 603 |
\define@key{affiliation}{pp}{\xdef\@postcodepunc{#1}} |
| 604 |
\define@key{affiliation}{pop}{\xdef\@postcodepunc{#1}} |
| 605 |
\define@key{affiliation}{postcodesep}{\xdef\@postcodepunc{#1}} |
| 606 |
\define@key{affiliation}{sp}{\xdef\@statepunc{#1}} |
| 607 |
\define@key{affiliation}{stp}{\xdef\@statepunc{#1}} |
| 608 |
\define@key{affiliation}{statesep}{\xdef\@statepunc{#1}} |
| 609 |
\define@key{affiliation}{countrysep}{\xdef\@countrypunc{#1}} |
| 610 |
|
| 611 |
\define@key{affiliation}{organization}{% |
| 612 |
\caorganization[\@organizationpunc]{#1}} |
| 613 |
\define@key{affiliation}{addressline}{% |
| 614 |
\caaddressline[\@addresslinepunc]{#1}} |
| 615 |
\define@key{affiliation}{city}{% |
| 616 |
\caaffcity[\@citypunc]{#1}} |
| 617 |
\define@key{affiliation}{postcode}{% |
| 618 |
\capostalcode[\@postcodepunc]{#1}} |
| 619 |
\define@key{affiliation}{state}{% |
| 620 |
\castate[\@statepunc]{#1}} |
| 621 |
\define@key{affiliation}{or}{% |
| 622 |
\caorganization[\@organizationpunc]{#1}} |
| 623 |
\define@key{affiliation}{ad}{% |
| 624 |
\caaddressline[\@addresslinepunc]{#1}} |
| 625 |
\define@key{affiliation}{ci}{% |
| 626 |
\caaffcity[\@citypunc]{#1}} |
| 627 |
\define@key{affiliation}{po}{% |
| 628 |
\capostalcode[\@postcodepunc]{#1}} |
| 629 |
\define@key{affiliation}{st}{% |
| 630 |
\castate[\@statepunc]{#1}} |
| 631 |
\define@key{affiliation}{o}{% |
| 632 |
\caorganization[\@organizationpunc]{#1}} |
| 633 |
\define@key{affiliation}{a}{% |
| 634 |
\caaddressline[\@addresslinepunc]{#1}} |
| 635 |
\define@key{affiliation}{c}{% |
| 636 |
\cacity[\@citypunc]{#1}} |
| 637 |
\define@key{affiliation}{p}{% |
| 638 |
\capostcode[\@postcodepunc]{#1}} |
| 639 |
\define@key{affiliation}{s}{% |
| 640 |
\castate[\@statepunc]{#1}} |
| 641 |
\define@key{affiliation}{cy}{% |
| 642 |
\cacountry[\@countrypunc]{#1}} |
| 643 |
\define@key{affiliation}{country}{% |
| 644 |
\cacountry[\@countrypunc]{#1}} |
| 645 |
|
| 646 |
|
| 647 |
\gdef\@resetaffiliation{% |
| 648 |
\gdef\@organizationpunc{,}% |
| 649 |
\gdef\@addresslinepunc{,}% |
| 650 |
\gdef\@citypunc{,}% |
| 651 |
\gdef\@statepunc{,}% |
| 652 |
\gdef\@postcodepunc{,}% |
| 653 |
\gdef\@countrypunc{}% |
| 654 |
} |
| 655 |
|
| 656 |
\def\affiliation{\@ifnextchar[{\@@affiliation}{\@affiliation}} |
| 657 |
|
| 658 |
\newcommand*{\newstmrobustcmd}{} |
| 659 |
\protected\def\newstmrobustcmd{\@star@or@long\stmetb@new@command} |
| 660 |
|
| 661 |
\def\stmetb@new@command#1{\@testopt{\stmetb@newcommand#1}0} |
| 662 |
|
| 663 |
\def\stmetb@newcommand#1[#2]{% |
| 664 |
\@ifnextchar[%] |
| 665 |
{\stmetb@xargdef#1[#2]} |
| 666 |
{\ifx\l@ngrel@x\relax |
| 667 |
\let\l@ngrel@x\protected |
| 668 |
\else |
| 669 |
\protected\def\l@ngrel@x{\protected\long}% |
| 670 |
\fi |
| 671 |
\@argdef#1[#2]}} |
| 672 |
|
| 673 |
\long\def\stmetb@xargdef#1[#2][#3]#4{% |
| 674 |
\@ifdefinable#1{% |
| 675 |
\expandafter\protected |
| 676 |
\expandafter\def |
| 677 |
\expandafter#1% |
| 678 |
\expandafter{% |
| 679 |
\expandafter\@testopt |
| 680 |
\csname\string#1\endcsname{#3}}% |
| 681 |
\expandafter\@yargdef\csname\string#1\endcsname\tw@{#2}{#4}}} |
| 682 |
% |
| 683 |
\newcommand{\ifstmundef}[1]{% |
| 684 |
\ifdefined#1% |
| 685 |
\ifx#1\relax |
| 686 |
\expandafter\expandafter |
| 687 |
\expandafter\@firstoftwo |
| 688 |
\else |
| 689 |
\expandafter\expandafter |
| 690 |
\expandafter\@secondoftwo |
| 691 |
\fi |
| 692 |
\else |
| 693 |
\expandafter\@firstoftwo |
| 694 |
\fi} |
| 695 |
\newcommand{\stmexpandonce}[1]{% |
| 696 |
\unexpanded\expandafter{#1}} |
| 697 |
\newstmrobustcmd{\gstmappto}[2]{% |
| 698 |
\ifundef{#1} |
| 699 |
{\xdef#1{\unexpanded{#2}}} |
| 700 |
{\xdef#1{\stmexpandonce#1\unexpanded{#2}}}} |
| 701 |
\newstmrobustcmd{\xstmappto}[2]{% |
| 702 |
\ifstmundef{#1} |
| 703 |
{\xdef#1{#2}} |
| 704 |
{\xdef#1{\stmexpandonce#1#2}}} |
| 705 |
|
| 706 |
|
| 707 |
\long\def\@@affiliation[#1]#2{% |
| 708 |
\@resetaffiliation% |
| 709 |
\gdef\caaffiliationvalues{}% |
| 710 |
\elsLabel{#1}% |
| 711 |
\setkeys{affiliation}{#2}% |
| 712 |
\g@addto@macro\elsaddress{% |
| 713 |
\def\baselinestretch{1}% |
| 714 |
\refstepcounter{affn}% |
| 715 |
\xdef\@currentlabel{\theaffn}% |
| 716 |
\elsLabel{#1}% |
| 717 |
\textsuperscript{\theaffn}} |
| 718 |
\xstmappto\elsaddress{\caaffiliationvalues\par}} |
| 719 |
|
| 720 |
\long\def\@affiliation#1{% |
| 721 |
\@resetaffiliation% |
| 722 |
\gdef\caaffiliationvalues{}% |
| 723 |
\setkeys{affiliation}{#1}% |
| 724 |
\g@addto@macro\elsauthors{% |
| 725 |
\def\baselinestretch{1}}% |
| 726 |
\xstmappto\elsaddress{\caaffiliationvalues\par}} |
| 727 |
\fi |
| 728 |
|
| 729 |
\def\address{\@ifnextchar[{\@@address}{\@address}} |
| 730 |
|
| 731 |
\long\def\@@address[#1]#2{\g@addto@macro\elsaddress{% |
| 732 |
\def\baselinestretch{1}% |
| 733 |
\refstepcounter{affn} |
| 734 |
\xdef\@currentlabel{\theaffn} |
| 735 |
\elsLabel{#1}% |
| 736 |
\textsuperscript{\theaffn}#2\par}} |
| 737 |
|
| 738 |
\long\def\@address#1{\g@addto@macro\elsauthors{% |
| 739 |
\def\baselinestretch{1}% |
| 740 |
\addsep\footnotesize\itshape#1\def\addsep{\par\vskip6pt}% |
| 741 |
\def\authorsep{\par\vskip8pt}}} |
| 742 |
|
| 743 |
\newbox\absbox |
| 744 |
\let\@elsarticleabstitle\@empty %*% |
| 745 |
\def\abstracttitle#1{\gdef\@elsarticleabstitle{#1}} %*% |
| 746 |
\abstracttitle{Abstract} %*% |
| 747 |
\renewenvironment{abstract}{\global\setbox\absbox=\vbox\bgroup |
| 748 |
\hsize=\textwidth\def\baselinestretch{1}% |
| 749 |
\noindent\unskip\textbf{\@elsarticleabstitle} %*% |
| 750 |
\par\medskip\noindent\unskip\ignorespaces} |
| 751 |
{\egroup} |
| 752 |
|
| 753 |
\newbox\elsarticlehighlightsbox |
| 754 |
\newbox\elsarticlegrabsbox |
| 755 |
\def\@elsarticlehighlightstitle{Highlights} |
| 756 |
\def\@elsarticlegrabstitle{Graphical Abstract} |
| 757 |
\newif\ifelsprelimpagegrabs\global\elsprelimpagegrabsfalse |
| 758 |
\newif\ifelsprelimpagehl\global\elsprelimpagehlfalse |
| 759 |
\def\elsarticleprelims{% |
| 760 |
\ifelsprelimpagegrabs\relax% |
| 761 |
\thispagestyle{empty}% |
| 762 |
\unvbox\elsarticlegrabsbox% |
| 763 |
\pagebreak\clearpage% |
| 764 |
\fi% |
| 765 |
\ifelsprelimpagehl\relax% |
| 766 |
\thispagestyle{empty} |
| 767 |
\unvbox\elsarticlehighlightsbox% |
| 768 |
\pagebreak\clearpage% |
| 769 |
\setcounter{page}{1}% |
| 770 |
\fi% |
| 771 |
} |
| 772 |
\newenvironment{highlights}{% |
| 773 |
\global\elsprelimpagehltrue% |
| 774 |
\global\setbox\elsarticlehighlightsbox=\vbox\bgroup |
| 775 |
\hsize=\textwidth\def\baselinestretch{1}% |
| 776 |
\noindent\unskip{\Large\@elsarticlehighlightstitle}%*% |
| 777 |
\par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% |
| 778 |
\ifx\elsprelimauthors\@empty\relax\else% |
| 779 |
\par\vskip6pt\noindent\unskip\ignorespaces% |
| 780 |
\ifdoubleblind% |
| 781 |
\vspace*{2pc} |
| 782 |
\else% |
| 783 |
\elsprelimauthors% |
| 784 |
\fi% |
| 785 |
\fi% |
| 786 |
\par\medskip\noindent\unskip\ignorespaces |
| 787 |
\begin{itemize} |
| 788 |
} |
| 789 |
{\end{itemize} |
| 790 |
\egroup} |
| 791 |
\newenvironment{graphicalabstract}{% |
| 792 |
\global\elsprelimpagegrabstrue% |
| 793 |
\global\setbox\elsarticlegrabsbox=\vbox\bgroup |
| 794 |
\hsize=\textwidth\def\baselinestretch{1}% |
| 795 |
\noindent\unskip{\Large\@elsarticlegrabstitle}%*% |
| 796 |
\par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% |
| 797 |
\ifx\elsprelimauthors\@empty\relax\else% |
| 798 |
\par\vskip6pt\noindent\unskip\ignorespaces% |
| 799 |
\ifdoubleblind% |
| 800 |
\vspace*{2pc} |
| 801 |
\else% |
| 802 |
\elsprelimauthors% |
| 803 |
\fi% |
| 804 |
\fi% |
| 805 |
\par\medskip\noindent\unskip\ignorespaces} |
| 806 |
{\egroup} |
| 807 |
|
| 808 |
\newbox\keybox |
| 809 |
\let\@elsarticlekwdtitle\@empty %*% |
| 810 |
\def\keywordtitle#1{\gdef\@elsarticlekwdtitle{#1}} %*% |
| 811 |
\def\keywordtitlesep#1{\gdef\@elsarticlekeywordtitlesep{#1}} %*% |
| 812 |
\keywordtitle{Keywords} %*% |
| 813 |
\keywordtitlesep{:\ } |
| 814 |
\def\keyword{% |
| 815 |
\def\sep{\unskip, }% |
| 816 |
\def\MSC{\@ifnextchar[{\@MSC}{\@MSC[2000]}} |
| 817 |
\def\@MSC[##1]{\par\leavevmode\hbox {\it ##1~MSC:\space}}% |
| 818 |
\def\PACS{\par\leavevmode\hbox {\it PACS:\space}}% |
| 819 |
\def\JEL{\par\leavevmode\hbox {\it JEL:\space}}% |
| 820 |
\global\setbox\keybox=\vbox\bgroup\hsize=\textwidth |
| 821 |
\normalsize\normalfont\def\baselinestretch{1} |
| 822 |
\parskip\z@ |
| 823 |
\noindent\textit{\@elsarticlekwdtitle\@elsarticlekeywordtitlesep} |
| 824 |
\raggedright % Keywords are not justified. |
| 825 |
\ignorespaces} |
| 826 |
\def\endkeyword{\par \egroup} |
| 827 |
|
| 828 |
\newdimen\Columnwidth |
| 829 |
\Columnwidth=\columnwidth |
| 830 |
|
| 831 |
\def\printFirstPageNotes{% |
| 832 |
\iflongmktitle |
| 833 |
\let\columnwidth=\textwidth |
| 834 |
\fi |
| 835 |
\ifdoubleblind |
| 836 |
\else |
| 837 |
\ifx\@tnotes\@empty\else\@tnotes\fi |
| 838 |
\ifx\@nonumnotes\@empty\else\@nonumnotes\fi |
| 839 |
\ifx\@cornotes\@empty\else\@cornotes\fi |
| 840 |
\ifx\@elseads\@empty\relax\else |
| 841 |
\let\thefootnote\relax |
| 842 |
\footnotetext{\ifnum\theead=1\relax |
| 843 |
\textit{Email address:\space}\else |
| 844 |
\textit{Email addresses:\space}\fi |
| 845 |
\@elseads}\fi |
| 846 |
\ifx\@elsuads\@empty\relax\else |
| 847 |
\let\thefootnote\relax |
| 848 |
\footnotetext{\textit{URL:\space}% |
| 849 |
\@elsuads}\fi |
| 850 |
\fi |
| 851 |
\ifx\@fnotes\@empty\else\@fnotes\fi |
| 852 |
\iflongmktitle\if@twocolumn |
| 853 |
\let\columnwidth=\Columnwidth\fi\fi |
| 854 |
} |
| 855 |
|
| 856 |
%% Pushing text to begin on newpage %*% |
| 857 |
\def\newpage@after@title{title} |
| 858 |
\def\newpage@after@author{author} |
| 859 |
\def\newpage@after@abstract{abstract} |
| 860 |
\def\newpageafter#1% |
| 861 |
{\gdef\@elsarticlenewpageafter{#1}} |
| 862 |
|
| 863 |
\long\def\pprintMaketitle{\clearpage |
| 864 |
\iflongmktitle\if@twocolumn\let\columnwidth=\textwidth\fi\fi |
| 865 |
\resetTitleCounters |
| 866 |
\def\baselinestretch{1}% |
| 867 |
\printFirstPageNotes |
| 868 |
\begin{\elsarticletitlealign}% |
| 869 |
\thispagestyle{pprintTitle}% |
| 870 |
\def\baselinestretch{1}% |
| 871 |
\Large\@title\par\vskip18pt% |
| 872 |
\ifx\@elsarticlenewpageafter\newpage@after@title% %*% |
| 873 |
\newpage |
| 874 |
\fi% |
| 875 |
\ifdoubleblind |
| 876 |
\vspace*{2pc} |
| 877 |
\else |
| 878 |
\normalsize\elsauthors\par\vskip10pt |
| 879 |
\footnotesize\itshape\elsaddress\par\vskip36pt |
| 880 |
\fi |
| 881 |
\ifx\@elsarticlenewpageafter\newpage@after@author% %*% |
| 882 |
\newpage |
| 883 |
\fi% |
| 884 |
\hrule\vskip12pt |
| 885 |
\ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi |
| 886 |
\ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi |
| 887 |
\hrule\vskip12pt |
| 888 |
\ifx\@elsarticlenewpageafter\newpage@after@abstract% %*% |
| 889 |
\newpage |
| 890 |
\fi% |
| 891 |
\end{\elsarticletitlealign}% |
| 892 |
\gdef\thefootnote{\arabic{footnote}}% |
| 893 |
} |
| 894 |
|
| 895 |
\def\printWarning{% |
| 896 |
\mbox{}\par\vfill\par\bgroup |
| 897 |
\fboxsep12pt\fboxrule1pt |
| 898 |
\hspace*{.18\textwidth} |
| 899 |
\fcolorbox{gray50}{gray10}{\box\warnbox} |
| 900 |
\egroup\par\vfill\thispagestyle{empty} |
| 901 |
\setcounter{page}{0} |
| 902 |
\clearpage} |
| 903 |
|
| 904 |
\long\def\finalMaketitle{% |
| 905 |
\resetTitleCounters |
| 906 |
\def\baselinestretch{1}% |
| 907 |
\MaketitleBox |
| 908 |
\thispagestyle{pprintTitle}% |
| 909 |
\gdef\thefootnote{\arabic{footnote}}% |
| 910 |
} |
| 911 |
|
| 912 |
\long\def\MaketitleBox{% |
| 913 |
\resetTitleCounters |
| 914 |
\def\baselinestretch{1}% |
| 915 |
\begin{\elsarticletitlealign}% |
| 916 |
\def\baselinestretch{1}% |
| 917 |
\Large\@title\par\vskip18pt |
| 918 |
\ifdoubleblind |
| 919 |
\vspace*{2pc} |
| 920 |
\else |
| 921 |
\normalsize\elsauthors\par\vskip10pt |
| 922 |
\footnotesize\itshape\elsaddress\par\vskip36pt |
| 923 |
\fi |
| 924 |
\hrule\vskip12pt |
| 925 |
\ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi |
| 926 |
\ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi |
| 927 |
\hrule\vskip12pt |
| 928 |
\end{\elsarticletitlealign}% |
| 929 |
} |
| 930 |
|
| 931 |
\def\FNtext#1{\par\bgroup\footnotesize#1\egroup} |
| 932 |
\newdimen\space@left |
| 933 |
\def\alarm#1{\typeout{******************************}% |
| 934 |
\typeout{#1}% |
| 935 |
\typeout{******************************}% |
| 936 |
} |
| 937 |
|
| 938 |
\def\titlespancalculator#1#2#3#4{% |
| 939 |
% break count |
| 940 |
\@tempcnta=#4\relax% |
| 941 |
% pagebreakcount increment |
| 942 |
\advance\@tempcnta by 1\relax% |
| 943 |
% title page height |
| 944 |
\@tempdima=#1\relax% |
| 945 |
% Page height - title page notes height (only for first break) |
| 946 |
% Page height - textheight (for remaining breaks) |
| 947 |
% Page height - title page notes height |
| 948 |
\@tempdimb=#2\relax% |
| 949 |
% Remaining title page height |
| 950 |
\advance\@tempdima -\the\@tempdimb% |
| 951 |
% Checks if remaining title page |
| 952 |
% height less than textheight |
| 953 |
\ifdim\the\@tempdima>#3\relax% |
| 954 |
\titlespancalculator% |
| 955 |
{\the\@tempdima}{#3}{#3}{\the\@tempcnta}%Break again |
| 956 |
\else% |
| 957 |
% Save break count and exit. |
| 958 |
\xdef\savetitlepagespan{\the\@tempcnta}% |
| 959 |
\fi% |
| 960 |
}% |
| 961 |
|
| 962 |
\long\def\myfor#1#2#3{% |
| 963 |
\@tempcnta=#1\relax% |
| 964 |
\ifnum#1<#2\relax% |
| 965 |
\advance\@tempcnta by 1\relax% |
| 966 |
#3% |
| 967 |
\myfor{\the\@tempcnta}{#2}{#3}% |
| 968 |
\fi} |
| 969 |
|
| 970 |
\long\def\getSpaceLeft{%\global\@twocolumnfalse% |
| 971 |
\global\setbox0=\vbox{\hsize=\textwidth\MaketitleBox}% |
| 972 |
\global\setbox1=\vbox{\hsize=\textwidth |
| 973 |
\let\footnotetext\FNtext |
| 974 |
\printFirstPageNotes}% |
| 975 |
\xdef\noteheight{\the\ht1}% |
| 976 |
\xdef\titleheight{\the\ht0}% |
| 977 |
\@tempdima=\vsize |
| 978 |
\advance\@tempdima-\noteheight |
| 979 |
\advance\@tempdima-1\baselineskip |
| 980 |
\xdef\savefpageheight{\the\@tempdima}% |
| 981 |
\setbox2=\vbox{\titlespancalculator{\titleheight}% |
| 982 |
{\savefpageheight}{\textheight}{0}}% |
| 983 |
} |
| 984 |
|
| 985 |
\skip\footins=24pt |
| 986 |
|
| 987 |
\newbox\els@boxa |
| 988 |
\newbox\els@boxb |
| 989 |
|
| 990 |
\ifpreprint |
| 991 |
\def\maketitle{\elsarticleprelims\pprintMaketitle} |
| 992 |
\else |
| 993 |
\ifnum\jtype=1 |
| 994 |
\def\maketitle{% |
| 995 |
\elsarticleprelims% |
| 996 |
\iflongmktitle\getSpaceLeft |
| 997 |
\ifdim\noteheight>0pt% |
| 998 |
\advance\@tempdima-1.35\baselineskip |
| 999 |
\fi% |
| 1000 |
\global\setbox\els@boxa=\vsplit0 to \@tempdima |
| 1001 |
\box\els@boxa\par\resetTitleCounters |
| 1002 |
\thispagestyle{pprintTitle}% |
| 1003 |
\printFirstPageNotes |
| 1004 |
\ifnum\savetitlepagespan>1\relax% |
| 1005 |
\myfor{2}{\savetitlepagespan}{% |
| 1006 |
\global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima |
| 1007 |
\box\els@boxb} |
| 1008 |
\else% |
| 1009 |
\fi% |
| 1010 |
\box0% |
| 1011 |
\else |
| 1012 |
\finalMaketitle\printFirstPageNotes |
| 1013 |
\fi |
| 1014 |
\gdef\thefootnote{\arabic{footnote}}}% |
| 1015 |
\else |
| 1016 |
\ifnum\jtype=5 |
| 1017 |
\def\maketitle{% |
| 1018 |
\elsarticleprelims% |
| 1019 |
\iflongmktitle\getSpaceLeft |
| 1020 |
\ifdim\noteheight>0pt% |
| 1021 |
\advance\@tempdima-1.35\baselineskip |
| 1022 |
\fi% |
| 1023 |
\global\setbox\els@boxa=\vsplit0 to \@tempdima |
| 1024 |
\box\els@boxa\par\resetTitleCounters |
| 1025 |
\thispagestyle{pprintTitle}% |
| 1026 |
\printFirstPageNotes |
| 1027 |
\ifnum\savetitlepagespan>1\relax% |
| 1028 |
\myfor{2}{\savetitlepagespan}{% |
| 1029 |
\global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima |
| 1030 |
\twocolumn[\box\els@boxb]} |
| 1031 |
\else% |
| 1032 |
\fi% |
| 1033 |
\twocolumn[\box0]%\printFirstPageNotes |
| 1034 |
\else |
| 1035 |
\twocolumn[\finalMaketitle]\printFirstPageNotes |
| 1036 |
\fi |
| 1037 |
\gdef\thefootnote{\arabic{footnote}}} |
| 1038 |
\else |
| 1039 |
\if@twocolumn |
| 1040 |
\def\maketitle{% |
| 1041 |
\elsarticleprelims% |
| 1042 |
\iflongmktitle\getSpaceLeft |
| 1043 |
\ifdim\noteheight>0pt% |
| 1044 |
\advance\@tempdima-1.35\baselineskip |
| 1045 |
\fi% |
| 1046 |
\global\setbox\els@boxa=\vsplit0 to \@tempdima |
| 1047 |
\box\els@boxa\par\resetTitleCounters |
| 1048 |
\thispagestyle{pprintTitle}% |
| 1049 |
\printFirstPageNotes |
| 1050 |
\ifnum\savetitlepagespan>1\relax% |
| 1051 |
\myfor{2}{\savetitlepagespan}{% |
| 1052 |
\global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima |
| 1053 |
\twocolumn[\box\els@boxb]} |
| 1054 |
\else% |
| 1055 |
\fi% |
| 1056 |
\twocolumn[\box0]% |
| 1057 |
\else |
| 1058 |
\twocolumn[\finalMaketitle]\printFirstPageNotes |
| 1059 |
\fi |
| 1060 |
\gdef\thefootnote{\arabic{footnote}}}% |
| 1061 |
\else |
| 1062 |
\def\maketitle{% |
| 1063 |
\elsarticleprelims% |
| 1064 |
\iflongmktitle\getSpaceLeft |
| 1065 |
\ifdim\noteheight>0pt% |
| 1066 |
\advance\@tempdima-1.35\baselineskip |
| 1067 |
\fi% |
| 1068 |
\global\setbox\els@boxa=\vsplit0 to \@tempdima |
| 1069 |
\box\els@boxa\par\resetTitleCounters |
| 1070 |
\thispagestyle{pprintTitle}% |
| 1071 |
\printFirstPageNotes |
| 1072 |
\ifnum\savetitlepagespan>1\relax% |
| 1073 |
\myfor{2}{\savetitlepagespan}{% |
| 1074 |
\global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima |
| 1075 |
\box\els@boxb} |
| 1076 |
\else% |
| 1077 |
\fi% |
| 1078 |
\box0% |
| 1079 |
\else |
| 1080 |
\elsarticleprelims% |
| 1081 |
\finalMaketitle\printFirstPageNotes |
| 1082 |
\fi |
| 1083 |
\gdef\thefootnote{\arabic{footnote}}}% |
| 1084 |
\fi |
| 1085 |
\fi |
| 1086 |
\fi |
| 1087 |
\fi |
| 1088 |
|
| 1089 |
\let\@elsarticlemyfooter\@empty |
| 1090 |
\let\@elsarticlemyfooteralign\@empty |
| 1091 |
\def\@elsarticlemyfooteralignleft{L} |
| 1092 |
\def\@elsarticlemyfooteralignright{R} |
| 1093 |
\def\@elsarticlemyfooteraligncenter{C} |
| 1094 |
|
| 1095 |
\def\myfooter[#1]#2 %*% |
| 1096 |
{\gdef\@elsarticlemyfooteralign{#1} |
| 1097 |
\gdef\@elsarticlemyfooter{#2}} |
| 1098 |
|
| 1099 |
|
| 1100 |
\def\myfooterfont#1{\gdef\@myfooterfont{#1}} |
| 1101 |
\myfooterfont{\footnotesize\itshape} |
| 1102 |
% \end{macrocode} |
| 1103 |
% |
| 1104 |
%\section{Headers/footers} |
| 1105 |
% |
| 1106 |
% \begin{macrocode} |
| 1107 |
\def\ps@pprintTitle{% |
| 1108 |
\let\@oddhead\@empty |
| 1109 |
\let\@evenhead\@empty |
| 1110 |
\def\@oddfoot |
| 1111 |
{\hbox to \textwidth% |
| 1112 |
{\ifnopreprintline\relax\else |
| 1113 |
\@myfooterfont% |
| 1114 |
\ifx\@elsarticlemyfooteralign\@elsarticlemyfooteraligncenter% |
| 1115 |
\hfil\@elsarticlemyfooter\hfil% |
| 1116 |
\else% |
| 1117 |
\ifx\@elsarticlemyfooteralign\@elsarticlemyfooteralignleft% |
| 1118 |
\@elsarticlemyfooter\hfill{}% |
| 1119 |
\else% |
| 1120 |
\ifx\@elsarticlemyfooteralign\@elsarticlemyfooteralignright% |
| 1121 |
{}\hfill\@elsarticlemyfooter% |
| 1122 |
%% Removed the preprint submitted line as per the instruction |
| 1123 |
%% received on 22 Oct 2024 from Arun Shanmugam (ELS) with the |
| 1124 |
%% subject line "FW: Preprint sentence in EM submissions" |
| 1125 |
% \else% |
| 1126 |
% Preprint submitted to \ifx\@journal\@empty% |
| 1127 |
% Elsevier% |
| 1128 |
% \else\@journal\fi\hfill\@date |
| 1129 |
\fi% |
| 1130 |
\fi% |
| 1131 |
\fi% |
| 1132 |
\fi% |
| 1133 |
}% |
| 1134 |
}% |
| 1135 |
\let\@evenfoot\@oddfoot} |
| 1136 |
% \end{macrocode} |
| 1137 |
% |
| 1138 |
% \section{Section headings} |
| 1139 |
% |
| 1140 |
% \begin{macrocode} |
| 1141 |
\def\@seccntDot{.} |
| 1142 |
\def\@seccntformat#1{\csname the#1\endcsname\@seccntDot\hskip 0.5em} |
| 1143 |
|
| 1144 |
\renewcommand\section{\@startsection {section}{1}{\z@}% |
| 1145 |
{18\p@ \@plus 6\p@ \@minus 3\p@}% |
| 1146 |
{9\p@ \@plus 6\p@ \@minus 3\p@}% |
| 1147 |
{\normalsize\bfseries\boldmath}} |
| 1148 |
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% |
| 1149 |
{12\p@ \@plus 6\p@ \@minus 3\p@}% |
| 1150 |
{3\p@ \@plus 6\p@ \@minus 3\p@}% |
| 1151 |
{\normalfont\normalsize\itshape}} |
| 1152 |
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% |
| 1153 |
{12\p@ \@plus 6\p@ \@minus 3\p@}% |
| 1154 |
{\p@}% |
| 1155 |
{\normalfont\normalsize\itshape}} |
| 1156 |
|
| 1157 |
\def\paragraph{\secdef{\els@aparagraph}{\els@bparagraph}} |
| 1158 |
\def\els@aparagraph[#1]#2{\elsparagraph[#1]{#2.}} |
| 1159 |
\def\els@bparagraph#1{\elsparagraph*{#1.}} |
| 1160 |
|
| 1161 |
\newcommand\elsparagraph{\@startsection{paragraph}{4}{0\z@}% |
| 1162 |
{10\p@ \@plus 6\p@ \@minus 3\p@}% |
| 1163 |
{-6\p@}% |
| 1164 |
{\normalfont\itshape}} |
| 1165 |
% \end{macrocode} |
| 1166 |
% |
| 1167 |
%\section{List environment} |
| 1168 |
% |
| 1169 |
% \begin{macrocode} |
| 1170 |
\newdimen\leftMargin |
| 1171 |
\leftMargin=2em |
| 1172 |
\newtoks\@enLab %\newtoks\@enfont |
| 1173 |
\def\@enQmark{?} |
| 1174 |
\def\@enLabel#1#2{% |
| 1175 |
\edef\@enThe{\noexpand#1{\@enumctr}}% |
| 1176 |
\@enLab\expandafter{\the\@enLab\csname the\@enumctr\endcsname}% |
| 1177 |
\@enloop} |
| 1178 |
\def\@enSpace{\afterassignment\@enSp@ce\let\@tempa= } |
| 1179 |
\def\@enSp@ce{\@enLab\expandafter{\the\@enLab\space}\@enloop} |
| 1180 |
\def\@enGroup#1{\@enLab\expandafter{\the\@enLab{#1}}\@enloop} |
| 1181 |
\def\@enOther#1{\@enLab\expandafter{\the\@enLab#1}\@enloop} |
| 1182 |
\def\@enloop{\futurelet\@entemp\@enloop@} |
| 1183 |
\def\@enloop@{% |
| 1184 |
\ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else |
| 1185 |
\ifx a\@entemp \def\@tempa{\@enLabel\alph }\else |
| 1186 |
\ifx i\@entemp \def\@tempa{\@enLabel\roman }\else |
| 1187 |
\ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else |
| 1188 |
\ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else |
| 1189 |
\ifx \@sptoken\@entemp \let\@tempa\@enSpace \else |
| 1190 |
\ifx \bgroup\@entemp \let\@tempa\@enGroup \else |
| 1191 |
\ifx \@enum@\@entemp \let\@tempa\@gobble \else |
| 1192 |
\let\@tempa\@enOther |
| 1193 |
\fi\fi\fi\fi\fi\fi\fi\fi |
| 1194 |
\@tempa} |
| 1195 |
\newlength{\@sep} \newlength{\@@sep} |
| 1196 |
\setlength{\@sep}{.5\baselineskip plus.2\baselineskip |
| 1197 |
minus.2\baselineskip} |
| 1198 |
\setlength{\@@sep}{.1\baselineskip plus.01\baselineskip |
| 1199 |
minus.05\baselineskip} |
| 1200 |
\providecommand{\sfbc}{\rmfamily\upshape} |
| 1201 |
\providecommand{\sfn}{\rmfamily\upshape} |
| 1202 |
\def\@enfont{\ifnum \@enumdepth >1\let\@nxt\sfn \else\let\@nxt\sfbc \fi\@nxt} |
| 1203 |
\def\enumerate{% |
| 1204 |
\ifnum \@enumdepth >3 \@toodeep\else |
| 1205 |
\advance\@enumdepth \@ne |
| 1206 |
\edef\@enumctr{enum\romannumeral\the\@enumdepth}\fi |
| 1207 |
\@ifnextchar[{\@@enum@}{\@enum@}} |
| 1208 |
\def\@@enum@[#1]{% |
| 1209 |
\@enLab{}\let\@enThe\@enQmark |
| 1210 |
\@enloop#1\@enum@ |
| 1211 |
\ifx\@enThe\@enQmark\@warning{The counter will not be printed.% |
| 1212 |
^^J\space\@spaces\@spaces\@spaces The label is: \the\@enLab}\fi |
| 1213 |
\expandafter\edef\csname label\@enumctr\endcsname{\the\@enLab}% |
| 1214 |
\expandafter\let\csname the\@enumctr\endcsname\@enThe |
| 1215 |
\csname c@\@enumctr\endcsname7 |
| 1216 |
\expandafter\settowidth |
| 1217 |
\csname leftmargin\romannumeral\@enumdepth\endcsname |
| 1218 |
{\the\@enLab\hskip\labelsep}% |
| 1219 |
\@enum@} |
| 1220 |
\def\@enum@{\list{{\@enfont\csname label\@enumctr\endcsname}}% |
| 1221 |
{\usecounter{\@enumctr}\def\makelabel##1{\hss\llap{##1}}% |
| 1222 |
\ifnum \@enumdepth>1\setlength{\topsep}{\@@sep}\else |
| 1223 |
\setlength{\topsep}{\@sep}\fi |
| 1224 |
\ifnum \@enumdepth>1\setlength{\itemsep}{0pt plus1pt minus1pt}% |
| 1225 |
\else \setlength{\itemsep}{\@@sep}\fi |
| 1226 |
%\setlength\leftmargin{\leftMargin}%%%{1.8em} |
| 1227 |
\setlength{\parsep}{0pt plus1pt minus1pt}% |
| 1228 |
\setlength{\parskip}{0pt plus1pt minus1pt} |
| 1229 |
}} |
| 1230 |
|
| 1231 |
\def\endenumerate{\par\ifnum \@enumdepth >1\addvspace{\@@sep}\else |
| 1232 |
\addvspace{\@sep}\fi \endlist} |
| 1233 |
|
| 1234 |
\def\sitem{\@noitemargtrue\@item[\@itemlabel *]} |
| 1235 |
|
| 1236 |
\def\itemize{\@ifnextchar[{\@Itemize}{\@Itemize[]}} |
| 1237 |
|
| 1238 |
\def\@Itemize[#1]{\def\next{#1}% |
| 1239 |
\ifnum \@itemdepth >\thr@@\@toodeep\else |
| 1240 |
\advance\@itemdepth\@ne |
| 1241 |
\ifx\next\@empty\else\expandafter\def\csname |
| 1242 |
labelitem\romannumeral\the\@itemdepth\endcsname{#1}\fi% |
| 1243 |
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% |
| 1244 |
\expandafter\list\csname\@itemitem\endcsname |
| 1245 |
{\def\makelabel##1{\hss\llap{##1}}}% |
| 1246 |
\fi} |
| 1247 |
% \end{macrocode} |
| 1248 |
% |
| 1249 |
%\section{Theorem environment} |
| 1250 |
% |
| 1251 |
% \begin{macrocode} |
| 1252 |
\def\newdefinition#1{% |
| 1253 |
\@ifnextchar[{\@odfn{#1}}{\@ndfn{#1}}}%] |
| 1254 |
\def\@ndfn#1#2{% |
| 1255 |
\@ifnextchar[{\@xndfn{#1}{#2}}{\@yndfn{#1}{#2}}} |
| 1256 |
\def\@xndfn#1#2[#3]{% |
| 1257 |
\expandafter\@ifdefinable\csname #1\endcsname |
| 1258 |
{\@definecounter{#1}\@newctr{#1}[#3]% |
| 1259 |
\expandafter\xdef\csname the#1\endcsname{% |
| 1260 |
\expandafter\noexpand\csname the#3\endcsname \@dfncountersep |
| 1261 |
\@dfncounter{#1}}% |
| 1262 |
\global\@namedef{#1}{\@dfn{#1}{#2}}% |
| 1263 |
\global\@namedef{end#1}{\@enddefinition}}} |
| 1264 |
\def\@yndfn#1#2{% |
| 1265 |
\expandafter\@ifdefinable\csname #1\endcsname |
| 1266 |
{\@definecounter{#1}% |
| 1267 |
\expandafter\xdef\csname the#1\endcsname{\@dfncounter{#1}}% |
| 1268 |
\global\@namedef{#1}{\@dfn{#1}{#2}}% |
| 1269 |
\global\@namedef{end#1}{\@enddefinition}}} |
| 1270 |
\def\@odfn#1[#2]#3{% |
| 1271 |
\@ifundefined{c@#2}{\@nocounterr{#2}}% |
| 1272 |
{\expandafter\@ifdefinable\csname #1\endcsname |
| 1273 |
{\global\@namedef{the#1}{\@nameuse{the#2}} |
| 1274 |
\global\@namedef{#1}{\@dfn{#2}{#3}}% |
| 1275 |
\global\@namedef{end#1}{\@enddefinition}}}} |
| 1276 |
\def\@dfn#1#2{% |
| 1277 |
\refstepcounter{#1}% |
| 1278 |
\@ifnextchar[{\@ydfn{#1}{#2}}{\@xdfn{#1}{#2}}} |
| 1279 |
\def\@xdfn#1#2{% |
| 1280 |
\@begindefinition{#2}{\csname the#1\endcsname}\ignorespaces} |
| 1281 |
\def\@ydfn#1#2[#3]{% |
| 1282 |
\@opargbegindefinition{#2}{\csname the#1\endcsname}{#3}\ignorespaces} |
| 1283 |
\def\@dfncounter#1{\noexpand\arabic{#1}} |
| 1284 |
\def\@dfncountersep{.} |
| 1285 |
\def\@begindefinition#1#2{\trivlist |
| 1286 |
\item[\hskip\labelsep{\bfseries #1\ #2.}]\upshape} |
| 1287 |
\def\@opargbegindefinition#1#2#3{\trivlist |
| 1288 |
\item[\hskip\labelsep{\bfseries #1\ #2\ (#3).}]\upshape} |
| 1289 |
\def\@enddefinition{\endtrivlist} |
| 1290 |
|
| 1291 |
\def\@begintheorem#1#2{\trivlist |
| 1292 |
\let\baselinestretch\@blstr |
| 1293 |
\item[\hskip \labelsep{\bfseries #1\ #2.}]\itshape} |
| 1294 |
\def\@opargbegintheorem#1#2#3{\trivlist |
| 1295 |
\let\baselinestretch\@blstr |
| 1296 |
\item[\hskip \labelsep{\bfseries #1\ #2\ (#3).}]\itshape} |
| 1297 |
|
| 1298 |
\def\newproof#1{% |
| 1299 |
\@ifnextchar[{\@oprf{#1}}{\@nprf{#1}}} |
| 1300 |
\def\@nprf#1#2{% |
| 1301 |
\@ifnextchar[{\@xnprf{#1}{#2}}{\@ynprf{#1}{#2}}} |
| 1302 |
\def\@xnprf#1#2[#3]{% |
| 1303 |
\expandafter\@ifdefinable\csname #1\endcsname |
| 1304 |
{\@definecounter{#1}\@newctr{#1}[#3]% |
| 1305 |
\expandafter\xdef\csname the#1\endcsname{% |
| 1306 |
\expandafter\noexpand\csname the#3\endcsname \@prfcountersep |
| 1307 |
\@prfcounter{#1}}% |
| 1308 |
\global\@namedef{#1}{\@prf{#1}{#2}}% |
| 1309 |
\global\@namedef{end#1}{\@endproof}}} |
| 1310 |
\def\@ynprf#1#2{% |
| 1311 |
\expandafter\@ifdefinable\csname #1\endcsname |
| 1312 |
{\@definecounter{#1}% |
| 1313 |
\expandafter\xdef\csname the#1\endcsname{\@prfcounter{#1}}% |
| 1314 |
\global\@namedef{#1}{\@prf{#1}{#2}}% |
| 1315 |
\global\@namedef{end#1}{\@endproof}}} |
| 1316 |
\def\@oprf#1[#2]#3{% |
| 1317 |
\@ifundefined{c@#2}{\@nocounterr{#2}}% |
| 1318 |
{\expandafter\@ifdefinable\csname #1\endcsname |
| 1319 |
{\global\@namedef{the#1}{\@nameuse{the#2}}% |
| 1320 |
\global\@namedef{#1}{\@prf{#2}{#3}}% |
| 1321 |
\global\@namedef{end#1}{\@endproof}}}} |
| 1322 |
\def\@prf#1#2{% |
| 1323 |
\refstepcounter{#1}% |
| 1324 |
\@ifnextchar[{\@yprf{#1}{#2}}{\@xprf{#1}{#2}}} |
| 1325 |
\def\@xprf#1#2{% |
| 1326 |
\@beginproof{#2}{\csname the#1\endcsname}\ignorespaces} |
| 1327 |
\def\@yprf#1#2[#3]{% |
| 1328 |
\@opargbeginproof{#2}{\csname the#1\endcsname}{#3}\ignorespaces} |
| 1329 |
\def\@prfcounter#1{\noexpand\arabic{#1}} |
| 1330 |
\def\@prfcountersep{.} |
| 1331 |
\def\@beginproof#1#2{\trivlist\let\baselinestretch\@blstr |
| 1332 |
\item[\hskip \labelsep{\scshape #1.}]\rmfamily} |
| 1333 |
\def\@opargbeginproof#1#2#3{\trivlist\let\baselinestretch\@blstr |
| 1334 |
\item[\hskip \labelsep{\scshape #1\ (#3).}]\rmfamily} |
| 1335 |
\def\@endproof{\endtrivlist} |
| 1336 |
\newcommand*{\qed}{\hbox{}\hfill$\Box$} |
| 1337 |
|
| 1338 |
\@ifundefined{@biboptions}{\xdef\@biboptions{numbers}}{} |
| 1339 |
\InputIfFileExists{\jobname.spl}{}{} |
| 1340 |
\ifnonatbib\relax\else |
| 1341 |
\RequirePackage[\@biboptions]{natbib} |
| 1342 |
\fi |
| 1343 |
\newwrite\splwrite |
| 1344 |
\immediate\openout\splwrite=\jobname.spl |
| 1345 |
\def\biboptions#1{\def\next{#1}\immediate\write\splwrite{% |
| 1346 |
\string\g@addto@macro\string\@biboptions{% |
| 1347 |
,\expandafter\strip@prefix\meaning\next}}} |
| 1348 |
|
| 1349 |
\let\baselinestretch=\@blstr |
| 1350 |
% \end{macrocode} |
| 1351 |
% |
| 1352 |
%\section{Page dimensions and margins for final form} |
| 1353 |
% |
| 1354 |
%\subsection{Option 1p} |
| 1355 |
% |
| 1356 |
% \begin{macrocode} |
| 1357 |
\ifnum\jtype=1 |
| 1358 |
\RequirePackage{geometry} |
| 1359 |
\geometry{twoside, |
| 1360 |
paperwidth=210mm, |
| 1361 |
paperheight=297mm, |
| 1362 |
textheight=562pt, |
| 1363 |
textwidth=384pt, |
| 1364 |
centering, |
| 1365 |
headheight=50pt, |
| 1366 |
headsep=12pt, |
| 1367 |
footskip=12pt, |
| 1368 |
footnotesep=24pt plus 2pt minus 12pt, |
| 1369 |
} |
| 1370 |
% \global\let\bibfont=\footnotesize |
| 1371 |
% \global\bibsep=0pt |
| 1372 |
\if@twocolumn\global\@twocolumnfalse\fi |
| 1373 |
% |
| 1374 |
% \end{macrocode} |
| 1375 |
% |
| 1376 |
%\subsection{Option '3p'} |
| 1377 |
% |
| 1378 |
% \begin{macrocode} |
| 1379 |
\else\ifnum\jtype=3 |
| 1380 |
\RequirePackage{geometry} |
| 1381 |
\geometry{twoside, |
| 1382 |
paperwidth=210mm, |
| 1383 |
paperheight=297mm, |
| 1384 |
textheight=622pt, |
| 1385 |
textwidth=468pt, |
| 1386 |
centering, |
| 1387 |
headheight=50pt, |
| 1388 |
headsep=12pt, |
| 1389 |
footskip=18pt, |
| 1390 |
footnotesep=24pt plus 2pt minus 12pt, |
| 1391 |
columnsep=2pc |
| 1392 |
} |
| 1393 |
% \global\let\bibfont=\footnotesize |
| 1394 |
% \global\bibsep=0pt |
| 1395 |
\if@twocolumn\input{fleqn.clo}\fi |
| 1396 |
% \end{macrocode} |
| 1397 |
% |
| 1398 |
%\subsection{Option '5p'} |
| 1399 |
% |
| 1400 |
% \begin{macrocode} |
| 1401 |
\else\ifnum\jtype=5 |
| 1402 |
\RequirePackage{geometry} |
| 1403 |
\geometry{twoside, |
| 1404 |
paperwidth=210mm, |
| 1405 |
paperheight=297mm, |
| 1406 |
textheight=682pt, |
| 1407 |
textwidth=522pt, |
| 1408 |
centering, |
| 1409 |
headheight=50pt, |
| 1410 |
headsep=12pt, |
| 1411 |
footskip=18pt, |
| 1412 |
footnotesep=24pt plus 2pt minus 12pt, |
| 1413 |
columnsep=18pt |
| 1414 |
}% |
| 1415 |
% \global\let\bibfont=\footnotesize |
| 1416 |
% \global\bibsep=0pt |
| 1417 |
\input{fleqn.clo} |
| 1418 |
\global\@twocolumntrue |
| 1419 |
%% |
| 1420 |
%% End of option '5p' |
| 1421 |
%% |
| 1422 |
\fi\fi\fi |
| 1423 |
% \end{macrocode} |
| 1424 |
% |
| 1425 |
%\section{Other items} |
| 1426 |
% |
| 1427 |
% \begin{macrocode} |
| 1428 |
\def\journal#1{\gdef\@journal{#1}} |
| 1429 |
\let\@journal\@empty |
| 1430 |
\newenvironment{frontmatter}{}{\maketitle} |
| 1431 |
|
| 1432 |
\long\def\@makecaption#1#2{% |
| 1433 |
\vskip\abovecaptionskip\footnotesize |
| 1434 |
\sbox\@tempboxa{#1: #2}% |
| 1435 |
\ifdim \wd\@tempboxa >\hsize |
| 1436 |
#1: #2\par |
| 1437 |
\else |
| 1438 |
\global \@minipagefalse |
| 1439 |
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% |
| 1440 |
\fi |
| 1441 |
\vskip\belowcaptionskip} |
| 1442 |
|
| 1443 |
\AtBeginDocument{\@ifpackageloaded{hyperref} |
| 1444 |
{\def\@linkcolor{blue} |
| 1445 |
\def\@anchorcolor{blue} |
| 1446 |
\def\@citecolor{blue} |
| 1447 |
\def\@filecolor{blue} |
| 1448 |
\def\@urlcolor{blue} |
| 1449 |
\def\@menucolor{blue} |
| 1450 |
\def\@pagecolor{blue} |
| 1451 |
\begingroup |
| 1452 |
\@makeother\`% |
| 1453 |
\@makeother\=% |
| 1454 |
\edef\x{% |
| 1455 |
\edef\noexpand\x{% |
| 1456 |
\endgroup |
| 1457 |
\noexpand\toks@{% |
| 1458 |
\catcode 96=\noexpand\the\catcode`\noexpand\`\relax |
| 1459 |
\catcode 61=\noexpand\the\catcode`\noexpand\=\relax |
| 1460 |
}% |
| 1461 |
}% |
| 1462 |
\noexpand\x |
| 1463 |
}% |
| 1464 |
\x |
| 1465 |
\@makeother\` |
| 1466 |
\@makeother\= |
| 1467 |
}{}} |
| 1468 |
%% |
| 1469 |
\def\appendixname{Appendix} |
| 1470 |
\renewcommand\appendix{\par |
| 1471 |
\setcounter{section}{0}% |
| 1472 |
\setcounter{subsection}{0}% |
| 1473 |
\setcounter{equation}{0} |
| 1474 |
\gdef\thefigure{\@Alph\c@section.\arabic{figure}}% |
| 1475 |
\gdef\thetable{\@Alph\c@section.\arabic{table}}% |
| 1476 |
\gdef\thesection{\appendixname~\@Alph\c@section}% |
| 1477 |
\@addtoreset{equation}{section}% |
| 1478 |
\gdef\theequation{\@Alph\c@section.\arabic{equation}}% |
| 1479 |
\addtocontents{toc}{\string\let\string\numberline\string\tmptocnumberline}{}{} |
| 1480 |
} |
| 1481 |
|
| 1482 |
%%%% \numberline width calculation for appendix. |
| 1483 |
\newdimen\appnamewidth |
| 1484 |
\def\tmptocnumberline#1{% |
| 1485 |
\setbox0=\hbox{\appendixname} |
| 1486 |
\appnamewidth=\wd0 |
| 1487 |
\addtolength\appnamewidth{2.5pc} |
| 1488 |
\hb@xt@\appnamewidth{#1\hfill} |
| 1489 |
} |
| 1490 |
|
| 1491 |
%% Added for work with amsrefs.sty |
| 1492 |
|
| 1493 |
\@ifpackageloaded{amsrefs}% |
| 1494 |
{} |
| 1495 |
{%\let\bibsection\relax% |
| 1496 |
\AtBeginDocument{\def\cites@b#1#2,#3{% |
| 1497 |
\begingroup[% |
| 1498 |
\toks@{\InnerCite{#2}#1}% |
| 1499 |
\ifx\@empty#3\@xp\@gobble\fi |
| 1500 |
\cites@c#3% |
| 1501 |
}}} |
| 1502 |
%% |
| 1503 |
%% Added for avoiding clash with cleveref.sty |
| 1504 |
\@ifpackageloaded{cleveref}% |
| 1505 |
{} |
| 1506 |
{\def\tnotetext[#1]#2{\g@addto@macro\@tnotes{% |
| 1507 |
\refstepcounter{tnote}% |
| 1508 |
\immediate\write\@auxout{\string\Newlabel{#1}{\thetnote}} |
| 1509 |
\def\thefootnote{\ifcase\c@tnote\or$\star$\or$\star\star$\fi}% |
| 1510 |
\footnotetext{#2}}} |
| 1511 |
%%% |
| 1512 |
\def\fntext[#1]#2{\g@addto@macro\@fnotes{% |
| 1513 |
\refstepcounter{fnote}% |
| 1514 |
\immediate\write\@auxout{\string\Newlabel{#1}{\thefnote}} |
| 1515 |
\def\thefootnote{\thefnote}% |
| 1516 |
\global\setcounter{footnote}{\c@fnote}% |
| 1517 |
\footnotetext{#2}}} |
| 1518 |
%%% |
| 1519 |
\def\cortext[#1]#2{\g@addto@macro\@cornotes{% |
| 1520 |
\refstepcounter{cnote}% |
| 1521 |
\immediate\write\@auxout{\string\Newlabel{#1}{\thecnote}} |
| 1522 |
\def\thefootnote{\ifcase\c@cnote\or$\ast$\or |
| 1523 |
$\ast\ast$\fi}% |
| 1524 |
\footnotetext{#2}}} |
| 1525 |
} |
| 1526 |
|
| 1527 |
\def\textmarker#1#2{\textcolor{#1}{#2}}%*% |
| 1528 |
%</class> |
| 1529 |
% |
| 1530 |
% \end{macrocode} |
| 1531 |
% \Finale |
| 1532 |
\endinput |
| 1533 |
|
| 1534 |
%% |
| 1535 |
%% End of file 'elsarticle.dtx' |
| 1536 |
%% |
| 1537 |
|