summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/README.md11
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdfbin180735 -> 183645 bytes
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/sample.pdfbin155933 -> 155435 bytes
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/sample.tex10
-rw-r--r--Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx130
-rw-r--r--Master/texmf-dist/source/latex/ejpecp/ejpecp.ins4
-rw-r--r--Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls121
7 files changed, 198 insertions, 78 deletions
diff --git a/Master/texmf-dist/doc/latex/ejpecp/README.md b/Master/texmf-dist/doc/latex/ejpecp/README.md
index d30626bca4f..f893ab593cd 100644
--- a/Master/texmf-dist/doc/latex/ejpecp/README.md
+++ b/Master/texmf-dist/doc/latex/ejpecp/README.md
@@ -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 @@ and https://www.imstat.org/journals-and-publications/electronic-communications-i
`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 @@ https://github.com/vtex-soft/texsupport.ims-ejpecp
## 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
diff --git a/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf b/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf
index 290f565d110..f55a7f9df9c 100644
--- a/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf
+++ b/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/ejpecp/sample.pdf b/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
index aa471752787..f6e975a52f1 100644
--- a/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
+++ b/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/ejpecp/sample.tex b/Master/texmf-dist/doc/latex/ejpecp/sample.tex
index fed48e097e2..8061c4f8fed 100644
--- a/Master/texmf-dist/doc/latex/ejpecp/sample.tex
+++ b/Master/texmf-dist/doc/latex/ejpecp/sample.tex
@@ -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 @@ The \emph{ejpecp} document class loads automatically the following packages:
\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,8 +519,9 @@ identifier. It is acceptable to leave arXiv links in the bibliography
%% You may add acknowledgments (optional). %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\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.}
+\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
index 8e9d67c4e17..663786f537e 100644
--- a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
+++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
@@ -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@ejpecp@preprint \@ejpecp@preprintfalse
+\DeclareOption{preprint}{\@ejpecp@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@lastpage}{\@PAGESTART}{\ejpecp@lastpage}}
\newcommand{\@SUBMITTED}{FIXME!}
\newcommand{\@ACCEPTED}{FIXME!}
\newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}}
@@ -228,13 +232,18 @@
\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@ejpecp@lastpage\relax
+ \renewcommand{\@PAGEEND}{#1}%
+ }
\newcommand{\SUBMITTED}[1]{\renewcommand{\@SUBMITTED}{#1}}
\newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}}
\newcommand{\DOI}[1]{\gdef\@DOI{#1}}
\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@url{https://ams.org/mathscinet/msc/msc2020.html}
+%% for multiple thanks/support in title
+\def\title@makefnmark{%
+ \setbox\@tempboxa\hbox{\@textsuperscript{\normalfont\@thefnmark}}%
+ \@ifundefined{prev@makefnmark@wd}%
+ {\edef\prev@makefnmark@wd{0pt}}%
+ {\edef\prev@makefnmark@wd{\the\dimexpr\prev@makefnmark@wd+\wd\@tempboxa\relax}}%
+ \rlap{\hskip\prev@makefnmark@wd\unhbox\@tempboxa}%
+ }
+\def\title@thanks#1{\unskip\unkern\orig@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@thanks\thanks
\ifx\@EJP\undefined\else
- \@EJPLOGO
+ \if@ejpecp@preprint
+ \phantom{\@EJPLOGO}\par
+ \else
+ \@EJPLOGO
+ \fi
\bigskip
- \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\
- \papernum@name\ \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}%
- \centerline{ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}} %
- \ifx\@DOI\undefined\else
- \ \printdoi
- \fi}%
+ \if@ejpecp@preprint
+ \null\null
+ \else
+ \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\
+ \papernum@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@title@thanks@support}{%
+ \let\thanks\title@thanks
+ \let\@makefnmark\title@makefnmark
+ \let\support\thanks
+ }{}%
+ \Large\bfseries\@TITLE\par
+ \egroup
\fi
\ifx\@ECP\undefined
\else
\parbox[t]{9cm}{%
- \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
- \papernum@name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
- \ifx\@DOI\undefined
- \else
- \ \printdoi
- \fi \\
- ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+ \if@ejpecp@preprint
+ \else
+ \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
+ \papernum@name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
+ \ifx\@DOI\undefined
+ \else
+ \ \printdoi
+ \fi \\
+ ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+ \fi
}%
\hfill
- \@ECPLOGO\\
+ \if@ejpecp@preprint
+ \phantom{\@ECPLOGO}%
+ \else
+ \@ECPLOGO
+ \fi\\
\bigskip
\bigskip
- {\Large\@TITLE\par}%
+ \bgroup
+ \@ifundefined{no@title@thanks@support}{%
+ \let\thanks\title@thanks
+ \let\@makefnmark\title@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@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@name\ \@PAPERNUM, \@doiprefix\@DOI}}%
+ \if@ejpecp@preprint
+ \else
+ \hypersetup{%
+ pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), \papernum@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@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@ejpecp@lastpage{\immediate\write\@auxout{\string\xdef\string\ejpecp@lastpage{\the\c@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@ejpecp@preprint\mbox{}\else\@HBLOB\fi\hfil
+ \small
+ \write@ejpecp@lastpage
+ \raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil
+ \footnotesize\if@ejpecp@preprint\mbox{}\else\href{\@FULLURL}{https://\@URL}\fi}
\renewcommand{\@oddfoot}{\@evenfoot}
\renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
\renewcommand{\@oddhead}{\@evenhead}
diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins b/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
index 43a1cf1c3b3..9ceb3073435 100644
--- a/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
+++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
@@ -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
diff --git a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
index ecc7370682f..13a4846c5b4 100644
--- a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
+++ b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
@@ -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@ejpecp@preprint \@ejpecp@preprintfalse
+\DeclareOption{preprint}{\@ejpecp@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@lastpage}{\@PAGESTART}{\ejpecp@lastpage}}
\newcommand{\@SUBMITTED}{FIXME!}
\newcommand{\@ACCEPTED}{FIXME!}
\newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}}
@@ -129,13 +130,18 @@
\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@ejpecp@lastpage\relax
+ \renewcommand{\@PAGEEND}{#1}%
+ }
\newcommand{\SUBMITTED}[1]{\renewcommand{\@SUBMITTED}{#1}}
\newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}}
\newcommand{\DOI}[1]{\gdef\@DOI{#1}}
\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@url{https://ams.org/mathscinet/msc/msc2020.html}
+%% for multiple thanks/support in title
+\def\title@makefnmark{%
+ \setbox\@tempboxa\hbox{\@textsuperscript{\normalfont\@thefnmark}}%
+ \@ifundefined{prev@makefnmark@wd}%
+ {\edef\prev@makefnmark@wd{0pt}}%
+ {\edef\prev@makefnmark@wd{\the\dimexpr\prev@makefnmark@wd+\wd\@tempboxa\relax}}%
+ \rlap{\hskip\prev@makefnmark@wd\unhbox\@tempboxa}%
+ }
+\def\title@thanks#1{\unskip\unkern\orig@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@thanks\thanks
\ifx\@EJP\undefined\else
- \@EJPLOGO
+ \if@ejpecp@preprint
+ \phantom{\@EJPLOGO}\par
+ \else
+ \@EJPLOGO
+ \fi
\bigskip
- \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\
- \papernum@name\ \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}%
- \centerline{ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}} %
- \ifx\@DOI\undefined\else
- \ \printdoi
- \fi}%
+ \if@ejpecp@preprint
+ \null\null
+ \else
+ \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\
+ \papernum@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@title@thanks@support}{%
+ \let\thanks\title@thanks
+ \let\@makefnmark\title@makefnmark
+ \let\support\thanks
+ }{}%
+ \Large\bfseries\@TITLE\par
+ \egroup
\fi
\ifx\@ECP\undefined
\else
\parbox[t]{9cm}{%
- \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
- \papernum@name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
- \ifx\@DOI\undefined
+ \if@ejpecp@preprint
\else
- \ \printdoi
- \fi \\
- ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+ \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
+ \papernum@name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
+ \ifx\@DOI\undefined
+ \else
+ \ \printdoi
+ \fi \\
+ ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}%
+ \fi
}%
\hfill
- \@ECPLOGO\\
+ \if@ejpecp@preprint
+ \phantom{\@ECPLOGO}%
+ \else
+ \@ECPLOGO
+ \fi\\
\bigskip
\bigskip
- {\Large\@TITLE\par}%
+ \bgroup
+ \@ifundefined{no@title@thanks@support}{%
+ \let\thanks\title@thanks
+ \let\@makefnmark\title@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@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@name\ \@PAPERNUM, \@doiprefix\@DOI}}%
+ \if@ejpecp@preprint
+ \else
+ \hypersetup{%
+ pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), \papernum@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@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@ejpecp@lastpage{\immediate\write\@auxout{\string\xdef\string\ejpecp@lastpage{\the\c@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@ejpecp@preprint\mbox{}\else\@HBLOB\fi\hfil
+ \small
+ \write@ejpecp@lastpage
+ \raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil
+ \footnotesize\if@ejpecp@preprint\mbox{}\else\href{\@FULLURL}{https://\@URL}\fi}
\renewcommand{\@oddfoot}{\@evenfoot}
\renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
\renewcommand{\@oddhead}{\@evenhead}