diff options
Diffstat (limited to 'macros/latex/contrib/elsarticle/elsarticle.dtx')
-rw-r--r-- | macros/latex/contrib/elsarticle/elsarticle.dtx | 76 |
1 files changed, 53 insertions, 23 deletions
diff --git a/macros/latex/contrib/elsarticle/elsarticle.dtx b/macros/latex/contrib/elsarticle/elsarticle.dtx index a5a0a0b3b5..a0c2b2e60f 100644 --- a/macros/latex/contrib/elsarticle/elsarticle.dtx +++ b/macros/latex/contrib/elsarticle/elsarticle.dtx @@ -1,22 +1,22 @@ % \iffalse meta-comment % -% Copyright (C) 2007-2020 by Elsevier Ltd +% Copyright (C) 2007-2024 by Elsevier Ltd % ----------------------------------------------- % % This file may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.2 +% conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in: % % http://www.latex-project.org/lppl.txt % -% and version 1.2 or later is part of all distributions of LaTeX +% and version 1.3 or later is part of all distributions of LaTeX % version 1999/12/01 or later. % % \fi -% \CheckSum{3243} +% \CheckSum{3279} % -% $Id: elsarticle.dtx 190 2020-11-23 11:12:32Z rishi $ +% $Id: elsarticle.dtx 259 2024-04-06 12:00:41Z rishi $ % $URL: https://lenova.river-valley.com/svn/elsarticle/trunk/elsarticle.dtx $ % \iffalse %<*driver> @@ -62,6 +62,7 @@ % \changes{v3.3}{2020/11/20}{Defined \string\affiliation command for structured % address tagging.} % +% \changes{v3.4}{2022/11/26}{A bug fix. Accented characters produced errors. So loaded fontenc package.} % % \GetFileInfo{elsarticle.dtx} % @@ -83,8 +84,8 @@ %% %% \def\RCSfile{elsarticle}% - \def\RCSversion{3.3}% - \def\RCSdate{2020/11/20}% + \def\RCSversion{3.4}% + \def\RCSdate{2024/04/04}% \def\@shortjnl{\relax} \def\@journal{Elsevier Ltd} \def\@company{Elsevier Ltd} @@ -101,6 +102,8 @@ \newif\ifuseexplthreefunctions \useexplthreefunctionsfalse +\RequirePackage[T1]{fontenc} + \IfFileExists{expl3.sty}{% \global\useexplthreefunctionstrue% \RequirePackage{expl3}}{} @@ -228,7 +231,7 @@ \let\@fnotes\@empty\let\@fnmark\@empty \def\fntext[#1]#2{\g@addto@macro\@fnotes{% \refstepcounter{fnote}\elsLabel{#1}% - \def\thefootnote{\c@fnote}% + \def\thefootnote{\thefnote}% \global\setcounter{footnote}{\c@fnote}% \footnotetext{#2}}} @@ -449,6 +452,7 @@ { op .tl_set_x:N = \l_organization_punc_tl, oraganizationsep .tl_set_x:N = \l_organization_punc_tl, + oraganisationsep .tl_set_x:N = \l_organization_punc_tl, ap .tl_set_x:N = \l_address_line_punc_tl, addresslinesep .tl_set_x:N = \l_address_line_punc_tl, cp .tl_set_x:N = \l_city_punc_tl, @@ -459,6 +463,7 @@ statesep .tl_set_x:N = \l_state_punc_tl, o .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, organization .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, + organisation .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, a .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, addressline .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, c .code:n = { \ca_aff_city[\l_city_punc_tl]{#1} }, @@ -509,17 +514,32 @@ { \keys_set:nn { stm / affiliation } { #2 } } - \csgappto{elsaddress}{ - \def\baselinestretch{1}% - \refstepcounter{affn} - \xdef\@currentlabel{\theaffn} - \IfNoValueTF { #1 } - { } - { \elsLabel{#1} } - \textsuperscript{\theaffn}} - \csxappto{elsaddress}{ - \csuse { ca_affiliation_values } - \par + \IfNoValueTF { #1 } + { + \csgappto{elsauthors}{% + \par\vspace*{6pt}\noindent + \bgroup\def\baselinestretch{1}% + \footnotesize\itshape% + \unskip\ignorespaces} + \csxappto{elsauthors}{\csuse { ca_affiliation_values }} + \csgappto{elsauthors}{\par\vspace*{6pt} + \noindent\unskip\ignorespaces + \gdef\authorsep{} + \egroup} + } + { + \csgappto{elsaddress}{ + \def\baselinestretch{1}% + \refstepcounter{affn} + \xdef\@currentlabel{\theaffn} + \IfNoValueTF { #1 } + { } + { \elsLabel{#1} } + \textsuperscript{\theaffn}} + \csxappto{elsaddress}{ + \csuse { ca_affiliation_values } + \par + } } } \ExplSyntaxOff @@ -749,7 +769,12 @@ \noindent\unskip{\Large\@elsarticlehighlightstitle}%*% \par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% \ifx\elsprelimauthors\@empty\relax\else% - \par\vskip6pt\noindent\unskip\ignorespaces\elsprelimauthors% + \par\vskip6pt\noindent\unskip\ignorespaces% + \ifdoubleblind% + \vspace*{2pc} + \else% + \elsprelimauthors% + \fi% \fi% \par\medskip\noindent\unskip\ignorespaces \begin{itemize} @@ -763,7 +788,12 @@ \noindent\unskip{\Large\@elsarticlegrabstitle}%*% \par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% \ifx\elsprelimauthors\@empty\relax\else% - \par\vskip6pt\noindent\unskip\ignorespaces\elsprelimauthors% + \par\vskip6pt\noindent\unskip\ignorespaces% + \ifdoubleblind% + \vspace*{2pc} + \else% + \elsprelimauthors% + \fi% \fi% \par\medskip\noindent\unskip\ignorespaces} {\egroup} @@ -1089,7 +1119,7 @@ \fi% \fi% \fi% - } + }% }% \let\@evenfoot\@oddfoot} % \end{macrocode} @@ -1425,7 +1455,7 @@ \@makeother\= }{}} %% -\def\appendixname{Appendix } +\def\appendixname{Appendix} \renewcommand\appendix{\par \setcounter{section}{0}% \setcounter{subsection}{0}% |