diff options
author | Karl Berry <karl@freefriends.org> | 2019-04-05 21:12:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-04-05 21:12:03 +0000 |
commit | 1380632dabfaef1d93e599a7066e094d9dff89a6 (patch) | |
tree | 4a831992e2b00d9d6ce1bbfd4e7b4ed5176072fc /Master/texmf-dist/tex/latex/elsarticle | |
parent | 64837c1745f816a584f5bc1841c74dccfbf99643 (diff) |
elsarticle (5apr19)
git-svn-id: svn://tug.org/texlive/trunk@50786 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/elsarticle')
-rw-r--r-- | Master/texmf-dist/tex/latex/elsarticle/elsarticle.cls | 72 |
1 files changed, 66 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/elsarticle/elsarticle.cls b/Master/texmf-dist/tex/latex/elsarticle/elsarticle.cls index d8ee17a5bd4..53a1072651a 100644 --- a/Master/texmf-dist/tex/latex/elsarticle/elsarticle.cls +++ b/Master/texmf-dist/tex/latex/elsarticle/elsarticle.cls @@ -25,8 +25,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} @@ -75,7 +75,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 @@ -224,15 +224,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{% @@ -248,7 +254,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 @@ -324,6 +334,51 @@ \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 %*% \def\keywordtitle#1{\gdef\@elsarticlekwdtitle{#1}} %*% @@ -507,10 +562,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 @@ -533,6 +589,7 @@ \else \ifnum\jtype=5 \def\maketitle{% + \elsarticleprelims% \iflongmktitle\getSpaceLeft \ifdim\noteheight>0pt% \advance\@tempdima-1.35\baselineskip @@ -555,6 +612,7 @@ \else \if@twocolumn \def\maketitle{% + \elsarticleprelims% \iflongmktitle\getSpaceLeft \ifdim\noteheight>0pt% \advance\@tempdima-1.35\baselineskip @@ -576,6 +634,7 @@ \gdef\thefootnote{\arabic{footnote}}}% \else \def\maketitle{% + \elsarticleprelims% \iflongmktitle\getSpaceLeft \ifdim\noteheight>0pt% \advance\@tempdima-1.35\baselineskip @@ -592,6 +651,7 @@ \fi% \box0% \else + \elsarticleprelims% \finalMaketitle\printFirstPageNotes \fi \gdef\thefootnote{\arabic{footnote}}}% |