texlive[60267] Master/texmf-dist: ejpecp (18aug21)

commits+karl at tug.org commits+karl at tug.org
Wed Aug 18 22:45:52 CEST 2021


Revision: 60267
          http://tug.org/svn/texlive?view=revision&revision=60267
Author:   karl
Date:     2021-08-18 22:45:52 +0200 (Wed, 18 Aug 2021)
Log Message:
-----------
ejpecp (18aug21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ejpecp/README.md
    trunk/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf
    trunk/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
    trunk/Master/texmf-dist/doc/latex/ejpecp/sample.tex
    trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
    trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
    trunk/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls

Modified: trunk/Master/texmf-dist/doc/latex/ejpecp/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ejpecp/README.md	2021-08-18 20:45:39 UTC (rev 60266)
+++ trunk/Master/texmf-dist/doc/latex/ejpecp/README.md	2021-08-18 20:45:52 UTC (rev 60267)
@@ -6,11 +6,10 @@
 mathematical research periodicals "Electronic Journal of Probability" (EJP) 
 and "Electronic Communications in Probability" (ECP). The websites of these
 electronic journals are https://imstat.org/journals-and-publications/electronic-journal-of-probability/
-and https://www.imstat.org/journals-and-publications/electronic-communications-in-probability/
 
 ## COPYRIGHT
 
--   Copyright (c) 2019-2020 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
+-   Copyright (c) 2019-2021 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
 -   Copyright (c) 2018 by Deimantas GALCIUS, VTeX, Lithuania for EJP-ECP
 -   Copyright (c) 2016-2017 by Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP
 -   Copyright (c) 2011-2015 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
@@ -54,7 +53,7 @@
 
 `ejpecp` is a LaTeX2e document class designed to be used with a `pdflatex` engine.
 `ejpecp` relies on the following packages: `amsmath`, `amsfonts`, `amssymb`, `amsthm`,
-`bera`, `dsfont`, `hyperref`, `geometry`, `graphicx`, `lastpage`, `latexsym`, `mathtools`, 
+`bera`, `dsfont`, `hyperref`, `geometry`, `graphicx`, `latexsym`, `mathtools`, 
 `microtype`, `afterpackage`. It was also successfully tested with the next 
 generation engine `lualatex`.
 
@@ -68,6 +67,12 @@
 
 ## CHANGELOG
 
+-   2021/08/17 v1.11.1
+    -   Removed dependency on `lastpage` package
+-   2021/04/20 v1.11.0
+    -   preprint option added
+-   2021/02/11 v1.10.0
+    -   acks environment added and support macro
 -   2020/10/21 v1.9.0
     -   Supplement environment added
 -   2020/08/26 v1.8.3

Modified: trunk/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/ejpecp/sample.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ejpecp/sample.tex	2021-08-18 20:45:39 UTC (rev 60266)
+++ trunk/Master/texmf-dist/doc/latex/ejpecp/sample.tex	2021-08-18 20:45:52 UTC (rev 60267)
@@ -22,6 +22,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \documentclass[ECP]{ejpecp} % replace ECP by EJP if needed.
+% add preprint option to remove journal information and logos
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%                                                               %%
@@ -52,7 +53,7 @@
 
 \SHORTTITLE{Introduction to the \emph{ejpecp} Class}
 
-\TITLE{Introduction to the \emph{ejpecp} Class Version 1.7\thanks{Supported
+\TITLE{Introduction to the \emph{ejpecp} Class Version 1.11.1\support{Supported
     by the Institute of Mathematical Statistics (IMS) and the Bernoulli
     Society.}\
     \thanks{Current maintainer of class file is
@@ -198,7 +199,7 @@
 \begin{center}
   \ttfamily
   amsmath, amsthm, amsfonts, amssymb, bera, dsfont, \\
-  hyperref, geometry, graphicx, lastpage, latexsym, \\
+  hyperref, geometry, graphicx, latexsym, \\
   mathtools, microtype, afterpackage.
 \end{center}
 It is thus not necessary to add \verb+\usepackage+ load commands for
@@ -518,10 +519,11 @@
 %% You may add acknowledgments (optional).                       %%
 %%                                                               %%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{acks}
+We are grateful to Martin Hairer who provided a nice \texttt{MR} macro and to S\'ebastien Gou\"ezel for his useful comments on the internals of the class file.
+\end{acks}
 
-\ACKNO{We are grateful to Martin Hairer who provided a nice \texttt{MR} macro and to S\'ebastien Gou\"ezel for his useful comments on the internals of the class file.}
 
-
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%                                                               %%
 %% You have reached the end of your document.                    %%

Modified: trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx	2021-08-18 20:45:39 UTC (rev 60266)
+++ trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx	2021-08-18 20:45:52 UTC (rev 60267)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (c) 2019-2020 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
+% Copyright (c) 2019-2021 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
 % Copyright (c) 2018 by Deimantas GALCIUS, VTeX, Lithuania
 % Copyright (c) 2016-2017 by Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP
 % Copyright (c), 2011-2015 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
@@ -26,9 +26,9 @@
 %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<class>\ProvidesClass{ejpecp}
 %<*class>   
-    [2020/10/21 v1.9.0 class for EJP and ECP journals]
+    [2021/08/17 v1.11.1 class for EJP and ECP journals]
 %</class>
-%<class>\ClassInfo{ejpecp}{Copyright (c) 2019-2020 Edgaras SAKURAS, VTeX, Lithuania.}
+%<class>\ClassInfo{ejpecp}{Copyright (c) 2019-2021 Edgaras SAKURAS, VTeX, Lithuania.}
 %<class>\ClassInfo{ejpecp}{Copyright (c) 2018 Deimantas GALCIUS, VTeX, Lithuania.}
 %<class>\ClassInfo{ejpecp}{Copyright (c) 2016-2017 Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP.}
 %<class>\ClassInfo{ejpecp}{Copyright (c), 2011-2015 BURDZY and CHAFAI for EJP-ECP.}
@@ -47,7 +47,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{845}
+% \CheckSum{968}
 %
 % \CharacterTable
 %  {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
@@ -81,7 +81,10 @@
 % \changes{v1.7}{2019/04/04}{merged with production version: fixltx2e removed, natbib setup with afterpackage, etc}
 % \changes{v1.8.2}{2020/07/30}{no. prefix updated and msc2020}
 % \changes{v1.8.3}{2020/08/26}{Update URLs}
-% \changes{v1.9.0}{2020/10/21}{Supplement envirnment}
+% \changes{v1.9.0}{2020/10/21}{Supplement environment}
+% \changes{v1.10.0}{2021/02/11}{acks and support}
+% \changes{v1.11.0}{2021/04/20}{preprint option}
+% \changes{v1.11.1}{2021/08/17}{removed dependency on lastpage package}
 % \GetFileInfo{ejpecp.dtx}
 %
 % \DoNotIndex{\newcommand,\newenvironment}
@@ -162,6 +165,8 @@
 \DeclareOption{final}{%
   \PassOptionsToClass{final}{article}
   }
+\newif\if at ejpecp@preprint \@ejpecp at preprintfalse
+\DeclareOption{preprint}{\@ejpecp at preprinttrue}
 \DeclareOption*{%
   \PackageWarning{ejpecp}{Unknown option ‘\CurrentOption’}%
   }
@@ -179,7 +184,6 @@
 \fi
 \RequirePackage{mathtools}
 \RequirePackage{microtype}
-\RequirePackage{lastpage}
 \RequirePackage{latexsym}
 \ifx\@NODS\undefined
   \RequirePackage{dsfont}
@@ -211,7 +215,7 @@
 \newcommand{\@PAPERNUM}{0}
 \newcommand{\@YEAR}{2012}
 \newcommand{\@PAGESTART}{1}
-\newcommand{\@PAGEEND}{\pageref{LastPage}}  % using lastpage package
+\newcommand{\@PAGEEND}{\@ifundefined{ejpecp at lastpage}{\@PAGESTART}{\ejpecp at lastpage}}
 \newcommand{\@SUBMITTED}{FIXME!}
 \newcommand{\@ACCEPTED}{FIXME!}
 \newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}}
@@ -228,7 +232,10 @@
 \newcommand{\PAPERNUM}[1]{\renewcommand{\@PAPERNUM}{#1}}
 \newcommand{\YEAR}[1]{\renewcommand{\@YEAR}{#1}}
 \newcommand{\PAGESTART}[1]{\renewcommand{\@PAGESTART}{#1}}
-\newcommand{\PAGEEND}[1]{\renewcommand{\@PAGEEND}{#1}}
+\newcommand{\PAGEEND}[1]{%
+    \let\write at ejpecp@lastpage\relax
+    \renewcommand{\@PAGEEND}{#1}%
+    }
 \newcommand{\SUBMITTED}[1]{\renewcommand{\@SUBMITTED}{#1}}
 \newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}}
 \newcommand{\DOI}[1]{\gdef\@DOI{#1}}
@@ -235,6 +242,8 @@
 \newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}}
 \newcommand{\HALID}[1]{\gdef\@HALID{#1}}
 \newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1}
+\def\acknowledgementsname{Acknowledgments}
+\newenvironment{acks}[1][\acknowledgementsname]{\noindent\textbf{#1.}\space\ignorespaces}{\par}
 \def\EMAIL#1{E-mail:~\texttt{\href{mailto:#1}{\nolinkurl{#1}}}}
 \newcommand{\BEMAIL}[1]{\newline\hspace*{1.8em}\EMAIL{#1}} % useful in ftnotes
 %% Logos
@@ -293,6 +302,15 @@
 \def\@doiprefix{https://doi.org/}
 \def\printdoi{\texttt{\href{\@doiprefix\@DOI}{\@doiprefix\@DOI}}}
 \def\msc at url{https://ams.org/mathscinet/msc/msc2020.html}
+%% for multiple thanks/support in title
+\def\title at makefnmark{%
+    \setbox\@tempboxa\hbox{\@textsuperscript{\normalfont\@thefnmark}}%
+    \@ifundefined{prev at makefnmark@wd}%
+        {\edef\prev at makefnmark@wd{0pt}}%
+        {\edef\prev at makefnmark@wd{\the\dimexpr\prev at makefnmark@wd+\wd\@tempboxa\relax}}%
+    \rlap{\hskip\prev at makefnmark@wd\unhbox\@tempboxa}%
+    }
+\def\title at thanks#1{\unskip\unkern\orig at thanks{#1}\ignorespaces}%
 %% make title long
 \renewcommand\title[1]{\gdef\@title{#1}}
 %% Macro handling the first page
@@ -300,35 +318,65 @@
 \newcommand{\FIRSTPAGE}{%
   \setcounter{page}{\@PAGESTART}%
   \title{\small 
+    \let\orig at thanks\thanks
     \ifx\@EJP\undefined\else
-      \@EJPLOGO
+      \if at ejpecp@preprint
+        \phantom{\@EJPLOGO}\par
+      \else
+        \@EJPLOGO
+      \fi
       \bigskip
-      \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\ 
-        \papernum at name\ \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}%
-      \centerline{ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}} %
-        \ifx\@DOI\undefined\else 
-          \ \printdoi
-        \fi}%
+      \if at ejpecp@preprint
+        \null\null
+      \else
+        \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\ 
+          \papernum at name\ \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}%
+        \centerline{ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}} %
+          \ifx\@DOI\undefined\else 
+            \ \printdoi
+          \fi}%
+      \fi
       \bigskip
       \bigskip
-      {\Large\bfseries\@TITLE\par}%
+      \bgroup
+        \@ifundefined{no at title@thanks at support}{%
+            \let\thanks\title at thanks
+            \let\@makefnmark\title at makefnmark
+            \let\support\thanks
+          }{}%
+        \Large\bfseries\@TITLE\par
+      \egroup
     \fi
     \ifx\@ECP\undefined
     \else
       \parbox[t]{9cm}{%
-        \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
-        \papernum at name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
-        \ifx\@DOI\undefined
-        \else 
-          \ \printdoi
-        \fi \\
-        ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+        \if at ejpecp@preprint
+        \else
+          \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
+          \papernum at name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
+          \ifx\@DOI\undefined
+          \else 
+            \ \printdoi
+          \fi \\
+          ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+        \fi
         }%
       \hfill
-      \@ECPLOGO\\
+      \if at ejpecp@preprint
+        \phantom{\@ECPLOGO}%
+      \else
+        \@ECPLOGO
+      \fi\\
       \bigskip
       \bigskip
-      {\Large\@TITLE\par}%
+      \bgroup
+        \@ifundefined{no at title@thanks at support}{%
+            \let\thanks\title at thanks
+            \let\@makefnmark\title at makefnmark
+            \let\support\thanks
+          }{}%
+        \Large\@TITLE\par
+      \egroup
     \fi
     }% end title
   \date{%
@@ -351,9 +399,13 @@
         \noindent
         Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.\par
       \fi
-      \noindent
-      Submitted to \@JOURNAL\ on \@SUBMITTED,
-      final version accepted on \@ACCEPTED.\par
+      \if at ejpecp@preprint
+        \mbox{}\par
+      \else
+        \noindent
+        Submitted to \@JOURNAL\ on \@SUBMITTED,
+        final version accepted on \@ACCEPTED.\par
+      \fi
       \ifx\@ARXIVID\undefined
       \else
         \noindent
@@ -374,13 +426,16 @@
   }%END-FIRSTPAGE
 %% Macro setting the PDF title
 \newcommand{\PDFFIELDS}{% 
-  \hypersetup{%
-    pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), \papernum at name\ \@PAPERNUM, \@doiprefix\@DOI}}%
+  \if at ejpecp@preprint
+  \else
+    \hypersetup{%
+      pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), \papernum at name\ \@PAPERNUM, \@doiprefix\@DOI}}%
+    \hypersetup{pdfproducer={\@JOURNAL\ Managing Editor https://\@URL}}%
+    \hypersetup{pdfauthor={Please see \@doiprefix\@DOI}}%
+  \fi
   \hypersetup{pdfkeywords={\@KEYWORDS}}%
-  \hypersetup{pdfproducer={\@JOURNAL\ Managing Editor https://\@URL}}%
-  \hypersetup{pdfcreator={LaTeX with ejpecp.cls v1.8.2}}%
+  \hypersetup{pdfcreator={LaTeX with ejpecp.cls \@nameuse{ver at ejpecp.cls}}}%
   \hypersetup{pdfsubject={Probability Theory}}%
-  \hypersetup{pdfauthor={Please see \@doiprefix\@DOI}}%
   }%END-PDFFIELDS
 
 %% Supplement
@@ -505,13 +560,16 @@
   \let\mathbb=\mathds
 \fi
 %% Headings
+\def\write at ejpecp@lastpage{\immediate\write\@auxout{\string\xdef\string\ejpecp at lastpage{\the\c at page}}}
 \newcommand{\@HBLOB}{%
   \href{\@doiprefix\@DOI}%
     {\@JOURNAL\ \textbf{\@VOLUME}\, (\@YEAR),\ paper \@PAPERNUM.}}
 \renewcommand{\@evenfoot}{%
-  \normalfont\footnotesize\@HBLOB\hfil
-  \small\raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil
-  \footnotesize\href{\@FULLURL}{https://\@URL}}
+  \normalfont\footnotesize\if at ejpecp@preprint\mbox{}\else\@HBLOB\fi\hfil
+  \small
+  \write at ejpecp@lastpage
+  \raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil
+  \footnotesize\if at ejpecp@preprint\mbox{}\else\href{\@FULLURL}{https://\@URL}\fi}
 \renewcommand{\@oddfoot}{\@evenfoot}
 \renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
 \renewcommand{\@oddhead}{\@evenhead}

Modified: trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins	2021-08-18 20:45:39 UTC (rev 60266)
+++ trunk/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins	2021-08-18 20:45:52 UTC (rev 60267)
@@ -1,5 +1,5 @@
 %%
-%% Copyright (c) 2019-2020 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
+%% Copyright (c) 2019-2021 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
 %% Copyright (c) 2018 by Deimantas GALCIUS, VTeX, Lithuania for EJP-ECP
 %% Copyright (c) 2016-2017 by Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP
 %% Copyright (c), 2011-2015 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
@@ -24,7 +24,7 @@
 
 This is a generated file.
 
-Copyright (c) 2019-2020 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
+Copyright (c) 2019-2021 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
 Copyright (c) 2018 by Deimantas GALCIUS, VTeX, Lithuania for EJP-ECP
 Copyright (c) 2016-2017 by Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP
 Copyright (c), 2011-2015 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP

Modified: trunk/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls	2021-08-18 20:45:39 UTC (rev 60266)
+++ trunk/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls	2021-08-18 20:45:52 UTC (rev 60267)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2019-2020 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
+%% Copyright (c) 2019-2021 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP
 %% Copyright (c) 2018 by Deimantas GALCIUS, VTeX, Lithuania for EJP-ECP
 %% Copyright (c) 2016-2017 by Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP
 %% Copyright (c), 2011-2015 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
@@ -25,8 +25,8 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesClass{ejpecp}
-    [2020/10/21 v1.9.0 class for EJP and ECP journals]
-\ClassInfo{ejpecp}{Copyright (c) 2019-2020 Edgaras SAKURAS, VTeX, Lithuania.}
+    [2021/08/17 v1.11.1 class for EJP and ECP journals]
+\ClassInfo{ejpecp}{Copyright (c) 2019-2021 Edgaras SAKURAS, VTeX, Lithuania.}
 \ClassInfo{ejpecp}{Copyright (c) 2018 Deimantas GALCIUS, VTeX, Lithuania.}
 \ClassInfo{ejpecp}{Copyright (c) 2016-2017 Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP.}
 \ClassInfo{ejpecp}{Copyright (c), 2011-2015 BURDZY and CHAFAI for EJP-ECP.}
@@ -65,6 +65,8 @@
 \DeclareOption{final}{%
   \PassOptionsToClass{final}{article}
   }
+\newif\if at ejpecp@preprint \@ejpecp at preprintfalse
+\DeclareOption{preprint}{\@ejpecp at preprinttrue}
 \DeclareOption*{%
   \PackageWarning{ejpecp}{Unknown option ‘\CurrentOption’}%
   }
@@ -81,7 +83,6 @@
 \fi
 \RequirePackage{mathtools}
 \RequirePackage{microtype}
-\RequirePackage{lastpage}
 \RequirePackage{latexsym}
 \ifx\@NODS\undefined
   \RequirePackage{dsfont}
@@ -112,7 +113,7 @@
 \newcommand{\@PAPERNUM}{0}
 \newcommand{\@YEAR}{2012}
 \newcommand{\@PAGESTART}{1}
-\newcommand{\@PAGEEND}{\pageref{LastPage}}  % using lastpage package
+\newcommand{\@PAGEEND}{\@ifundefined{ejpecp at lastpage}{\@PAGESTART}{\ejpecp at lastpage}}
 \newcommand{\@SUBMITTED}{FIXME!}
 \newcommand{\@ACCEPTED}{FIXME!}
 \newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}}
@@ -129,7 +130,10 @@
 \newcommand{\PAPERNUM}[1]{\renewcommand{\@PAPERNUM}{#1}}
 \newcommand{\YEAR}[1]{\renewcommand{\@YEAR}{#1}}
 \newcommand{\PAGESTART}[1]{\renewcommand{\@PAGESTART}{#1}}
-\newcommand{\PAGEEND}[1]{\renewcommand{\@PAGEEND}{#1}}
+\newcommand{\PAGEEND}[1]{%
+    \let\write at ejpecp@lastpage\relax
+    \renewcommand{\@PAGEEND}{#1}%
+    }
 \newcommand{\SUBMITTED}[1]{\renewcommand{\@SUBMITTED}{#1}}
 \newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}}
 \newcommand{\DOI}[1]{\gdef\@DOI{#1}}
@@ -136,6 +140,8 @@
 \newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}}
 \newcommand{\HALID}[1]{\gdef\@HALID{#1}}
 \newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1}
+\def\acknowledgementsname{Acknowledgments}
+\newenvironment{acks}[1][\acknowledgementsname]{\noindent\textbf{#1.}\space\ignorespaces}{\par}
 \def\EMAIL#1{E-mail:~\texttt{\href{mailto:#1}{\nolinkurl{#1}}}}
 \newcommand{\BEMAIL}[1]{\newline\hspace*{1.8em}\EMAIL{#1}} % useful in ftnotes
 %% Logos
@@ -194,6 +200,15 @@
 \def\@doiprefix{https://doi.org/}
 \def\printdoi{\texttt{\href{\@doiprefix\@DOI}{\@doiprefix\@DOI}}}
 \def\msc at url{https://ams.org/mathscinet/msc/msc2020.html}
+%% for multiple thanks/support in title
+\def\title at makefnmark{%
+    \setbox\@tempboxa\hbox{\@textsuperscript{\normalfont\@thefnmark}}%
+    \@ifundefined{prev at makefnmark@wd}%
+        {\edef\prev at makefnmark@wd{0pt}}%
+        {\edef\prev at makefnmark@wd{\the\dimexpr\prev at makefnmark@wd+\wd\@tempboxa\relax}}%
+    \rlap{\hskip\prev at makefnmark@wd\unhbox\@tempboxa}%
+    }
+\def\title at thanks#1{\unskip\unkern\orig at thanks{#1}\ignorespaces}%
 %% make title long
 \renewcommand\title[1]{\gdef\@title{#1}}
 %% Macro handling the first page
@@ -201,35 +216,65 @@
 \newcommand{\FIRSTPAGE}{%
   \setcounter{page}{\@PAGESTART}%
   \title{\small
+    \let\orig at thanks\thanks
     \ifx\@EJP\undefined\else
-      \@EJPLOGO
+      \if at ejpecp@preprint
+        \phantom{\@EJPLOGO}\par
+      \else
+        \@EJPLOGO
+      \fi
       \bigskip
-      \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\
-        \papernum at name\ \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}%
-      \centerline{ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}} %
-        \ifx\@DOI\undefined\else
-          \ \printdoi
-        \fi}%
+      \if at ejpecp@preprint
+        \null\null
+      \else
+        \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\
+          \papernum at name\ \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}%
+        \centerline{ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}} %
+          \ifx\@DOI\undefined\else
+            \ \printdoi
+          \fi}%
+      \fi
       \bigskip
       \bigskip
-      {\Large\bfseries\@TITLE\par}%
+      \bgroup
+        \@ifundefined{no at title@thanks at support}{%
+            \let\thanks\title at thanks
+            \let\@makefnmark\title at makefnmark
+            \let\support\thanks
+          }{}%
+        \Large\bfseries\@TITLE\par
+      \egroup
     \fi
     \ifx\@ECP\undefined
     \else
       \parbox[t]{9cm}{%
-        \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
-        \papernum at name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
-        \ifx\@DOI\undefined
+        \if at ejpecp@preprint
         \else
-          \ \printdoi
-        \fi \\
-        ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+          \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
+          \papernum at name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
+          \ifx\@DOI\undefined
+          \else
+            \ \printdoi
+          \fi \\
+          ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+        \fi
         }%
       \hfill
-      \@ECPLOGO\\
+      \if at ejpecp@preprint
+        \phantom{\@ECPLOGO}%
+      \else
+        \@ECPLOGO
+      \fi\\
       \bigskip
       \bigskip
-      {\Large\@TITLE\par}%
+      \bgroup
+        \@ifundefined{no at title@thanks at support}{%
+            \let\thanks\title at thanks
+            \let\@makefnmark\title at makefnmark
+            \let\support\thanks
+          }{}%
+        \Large\@TITLE\par
+      \egroup
     \fi
     }% end title
   \date{%
@@ -252,9 +297,13 @@
         \noindent
         Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.\par
       \fi
-      \noindent
-      Submitted to \@JOURNAL\ on \@SUBMITTED,
-      final version accepted on \@ACCEPTED.\par
+      \if at ejpecp@preprint
+        \mbox{}\par
+      \else
+        \noindent
+        Submitted to \@JOURNAL\ on \@SUBMITTED,
+        final version accepted on \@ACCEPTED.\par
+      \fi
       \ifx\@ARXIVID\undefined
       \else
         \noindent
@@ -275,13 +324,16 @@
   }%END-FIRSTPAGE
 %% Macro setting the PDF title
 \newcommand{\PDFFIELDS}{%
-  \hypersetup{%
-    pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), \papernum at name\ \@PAPERNUM, \@doiprefix\@DOI}}%
+  \if at ejpecp@preprint
+  \else
+    \hypersetup{%
+      pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), \papernum at name\ \@PAPERNUM, \@doiprefix\@DOI}}%
+    \hypersetup{pdfproducer={\@JOURNAL\ Managing Editor https://\@URL}}%
+    \hypersetup{pdfauthor={Please see \@doiprefix\@DOI}}%
+  \fi
   \hypersetup{pdfkeywords={\@KEYWORDS}}%
-  \hypersetup{pdfproducer={\@JOURNAL\ Managing Editor https://\@URL}}%
-  \hypersetup{pdfcreator={LaTeX with ejpecp.cls v1.8.2}}%
+  \hypersetup{pdfcreator={LaTeX with ejpecp.cls \@nameuse{ver at ejpecp.cls}}}%
   \hypersetup{pdfsubject={Probability Theory}}%
-  \hypersetup{pdfauthor={Please see \@doiprefix\@DOI}}%
   }%END-PDFFIELDS
 
 %% Supplement
@@ -406,13 +458,16 @@
   \let\mathbb=\mathds
 \fi
 %% Headings
+\def\write at ejpecp@lastpage{\immediate\write\@auxout{\string\xdef\string\ejpecp at lastpage{\the\c at page}}}
 \newcommand{\@HBLOB}{%
   \href{\@doiprefix\@DOI}%
     {\@JOURNAL\ \textbf{\@VOLUME}\, (\@YEAR),\ paper \@PAPERNUM.}}
 \renewcommand{\@evenfoot}{%
-  \normalfont\footnotesize\@HBLOB\hfil
-  \small\raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil
-  \footnotesize\href{\@FULLURL}{https://\@URL}}
+  \normalfont\footnotesize\if at ejpecp@preprint\mbox{}\else\@HBLOB\fi\hfil
+  \small
+  \write at ejpecp@lastpage
+  \raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil
+  \footnotesize\if at ejpecp@preprint\mbox{}\else\href{\@FULLURL}{https://\@URL}\fi}
 \renewcommand{\@oddfoot}{\@evenfoot}
 \renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
 \renewcommand{\@oddhead}{\@evenhead}



More information about the tex-live-commits mailing list.