diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/elsarticle/elsarticle.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/elsarticle/elsarticle.dtx | 75 |
1 files changed, 68 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/elsarticle/elsarticle.dtx b/Master/texmf-dist/source/latex/elsarticle/elsarticle.dtx index 3f4c5ce2f02..187b6d5b0c6 100644 --- a/Master/texmf-dist/source/latex/elsarticle/elsarticle.dtx +++ b/Master/texmf-dist/source/latex/elsarticle/elsarticle.dtx @@ -16,7 +16,8 @@ % \fi % \CheckSum{2634} % -% $Id: elsarticle.dtx 159 2019-01-14 09:10:30Z rishi $ +% $Id: elsarticle.dtx 167 2019-02-25 07:12:21Z apu.v $ +% $URL: http://lenova.river-valley.com/svn/elsarticle/trunk/elsarticle.dtx $ % \iffalse %<*driver> \documentclass{ltxdoc} @@ -77,8 +78,8 @@ %% %% \def\RCSfile{elsarticle}% - \def\RCSversion{3.1}% - \def\RCSdate{2019/01/14}% + \def\RCSversion{3.2}% + \def\RCSdate{2019/02/25}% \def\@shortjnl{\relax} \def\@journal{Elsevier Ltd} \def\@company{Elsevier Ltd} @@ -127,7 +128,7 @@ \DeclareOption{times}{\IfFileExists{txfonts.sty}% {\AtEndOfClass{\RequirePackage{txfonts}% \gdef\ttdefault{cmtt}% - \let\iint\relax + \let\iint\relax \let\iiint\relax \let\iiiint\relax \let\idotsint\relax @@ -282,15 +283,21 @@ \def\elsauthors{} \def\useauthors{} +\def\elsprelimauthors{} \def\pprinttitle{} \let\authorsep\@empty +\let\prelimauthorsep\@empty \let\sep\@empty \newcounter{author} \def\author{\@ifnextchar[{\@@author}{\@author}} \newtoks\@eadauthor -\def\@@author[#1]#2{\g@addto@macro\elsauthors{% +\def\@@author[#1]#2{% + \g@addto@macro\elsprelimauthors{% + \prelimauthorsep#2% + \def\prelimauthorsep{\unskip,\space}}% + \g@addto@macro\elsauthors{% \def\baselinestretch{1}% \authorsep#2\unskip\textsuperscript{%#1% \@for\@@affmark:=#1\do{% @@ -306,7 +313,11 @@ \g@addto@macro\useauthors{#2; }% } -\def\@author#1{\g@addto@macro\elsauthors{\normalsize% +\def\@author#1{% + \g@addto@macro\elsprelimauthors{% + \prelimauthorsep#1% + \def\prelimauthorsep{\unskip,\space}}% + \g@addto@macro\elsauthors{\normalsize% \def\baselinestretch{1}% \upshape\authorsep#1\unskip\textsuperscript{% \ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi @@ -381,6 +392,51 @@ \noindent\unskip\textbf{\@elsarticleabstitle} %*% \par\medskip\noindent\unskip\ignorespaces} {\egroup} + +\newbox\elsarticlehighlightsbox +\newbox\elsarticlegrabsbox +\def\@elsarticlehighlightstitle{Highlights} +\def\@elsarticlegrabstitle{Graphical Abstract} +\newif\ifelsprelimpagegrabs\global\elsprelimpagegrabsfalse +\newif\ifelsprelimpagehl\global\elsprelimpagehlfalse +\def\elsarticleprelims{% + \ifelsprelimpagegrabs\relax% + \thispagestyle{empty}% + \unvbox\elsarticlegrabsbox% + \pagebreak\clearpage% + \fi% + \ifelsprelimpagehl\relax% + \thispagestyle{empty} + \unvbox\elsarticlehighlightsbox% + \pagebreak\clearpage% + \setcounter{page}{1}% + \fi% +} +\newenvironment{highlights}{% + \global\elsprelimpagehltrue% + \global\setbox\elsarticlehighlightsbox=\vbox\bgroup + \hsize=\textwidth\def\baselinestretch{1}% + \noindent\unskip{\Large\@elsarticlehighlightstitle}%*% + \par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% + \ifx\elsprelimauthors\@empty\relax\else% + \par\vskip6pt\noindent\unskip\ignorespaces\elsprelimauthors% + \fi% + \par\medskip\noindent\unskip\ignorespaces + \begin{itemize} + } + {\end{itemize} + \egroup} +\newenvironment{graphicalabstract}{% + \global\elsprelimpagegrabstrue% + \global\setbox\elsarticlegrabsbox=\vbox\bgroup + \hsize=\textwidth\def\baselinestretch{1}% + \noindent\unskip{\Large\@elsarticlegrabstitle}%*% + \par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% + \ifx\elsprelimauthors\@empty\relax\else% + \par\vskip6pt\noindent\unskip\ignorespaces\elsprelimauthors% + \fi% + \par\medskip\noindent\unskip\ignorespaces} + {\egroup} \newbox\keybox \let\@elsarticlekwdtitle\@empty %*% @@ -565,10 +621,11 @@ \newbox\els@boxb \ifpreprint - \def\maketitle{\pprintMaketitle} + \def\maketitle{\elsarticleprelims\pprintMaketitle} \else \ifnum\jtype=1 \def\maketitle{% + \elsarticleprelims% \iflongmktitle\getSpaceLeft \ifdim\noteheight>0pt% \advance\@tempdima-1.35\baselineskip @@ -591,6 +648,7 @@ \else \ifnum\jtype=5 \def\maketitle{% + \elsarticleprelims% \iflongmktitle\getSpaceLeft \ifdim\noteheight>0pt% \advance\@tempdima-1.35\baselineskip @@ -613,6 +671,7 @@ \else \if@twocolumn \def\maketitle{% + \elsarticleprelims% \iflongmktitle\getSpaceLeft \ifdim\noteheight>0pt% \advance\@tempdima-1.35\baselineskip @@ -634,6 +693,7 @@ \gdef\thefootnote{\arabic{footnote}}}% \else \def\maketitle{% + \elsarticleprelims% \iflongmktitle\getSpaceLeft \ifdim\noteheight>0pt% \advance\@tempdima-1.35\baselineskip @@ -650,6 +710,7 @@ \fi% \box0% \else + \elsarticleprelims% \finalMaketitle\printFirstPageNotes \fi \gdef\thefootnote{\arabic{footnote}}}% |