summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-04-05 21:12:03 +0000
committerKarl Berry <karl@freefriends.org>2019-04-05 21:12:03 +0000
commit1380632dabfaef1d93e599a7066e094d9dff89a6 (patch)
tree4a831992e2b00d9d6ce1bbfd4e7b4ed5176072fc /Master/texmf-dist/source
parent64837c1745f816a584f5bc1841c74dccfbf99643 (diff)
elsarticle (5apr19)
git-svn-id: svn://tug.org/texlive/trunk@50786 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/elsarticle/elsarticle.dtx75
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}}}%