| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (c) 2019-2021 by Edgaras SAKURAS, VTeX, Lithuania for EJP-ECP |
| 4 |
% Copyright (c) 2018 by Deimantas GALCIUS, VTeX, Lithuania |
| 5 |
% Copyright (c) 2016-2017 by Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP |
| 6 |
% Copyright (c), 2011-2015 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP |
| 7 |
% --------------------------------------------------------------------------- |
| 8 |
% |
| 9 |
% This file may be distributed and/or modified under the |
| 10 |
% conditions of the LaTeX Project Public License, either version 1.2 |
| 11 |
% of this license or (at your option) any later version. |
| 12 |
% The latest version of this license is in: |
| 13 |
% |
| 14 |
% https://www.latex-project.org/lppl.txt |
| 15 |
% |
| 16 |
% and version 1.2 or later is part of all distributions of LaTeX |
| 17 |
% version 1999/12/01 or later. |
| 18 |
% |
| 19 |
% \fi |
| 20 |
% |
| 21 |
% \iffalse |
| 22 |
%<*driver> |
| 23 |
\ProvidesFile{ejpecp.dtx} |
| 24 |
%</driver> |
| 25 |
% |
| 26 |
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
| 27 |
%<class>\ProvidesClass{ejpecp} |
| 28 |
%<*class> |
| 29 |
[2021/11/04 v1.11.3 class for EJP and ECP journals] |
| 30 |
%</class> |
| 31 |
%<class>\ClassInfo{ejpecp}{Copyright (c) 2019-2021 Edgaras SAKURAS, VTeX, Lithuania.} |
| 32 |
%<class>\ClassInfo{ejpecp}{Copyright (c) 2018 Deimantas GALCIUS, VTeX, Lithuania.} |
| 33 |
%<class>\ClassInfo{ejpecp}{Copyright (c) 2016-2017 Eimantas GUMBAKIS, VTeX, Lithuania for EJP-ECP.} |
| 34 |
%<class>\ClassInfo{ejpecp}{Copyright (c), 2011-2015 BURDZY and CHAFAI for EJP-ECP.} |
| 35 |
% |
| 36 |
%<*driver> |
| 37 |
\documentclass[10pt]{ltxdoc} |
| 38 |
\usepackage[pdftex]{hyperref} |
| 39 |
\hypersetup{pdfborder=0 0 0} |
| 40 |
\usepackage[a4paper,margin=2.5cm]{geometry} |
| 41 |
\EnableCrossrefs |
| 42 |
\CodelineIndex |
| 43 |
\RecordChanges |
| 44 |
\begin{document} |
| 45 |
\DocInput{ejpecp.dtx} |
| 46 |
\end{document} |
| 47 |
%</driver> |
| 48 |
% \fi |
| 49 |
% |
| 50 |
% \CheckSum{983} |
| 51 |
% |
| 52 |
% \CharacterTable |
| 53 |
% {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 |
| 54 |
% Lower-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 |
| 55 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 56 |
% Exclamation \! Double quote \" Hash (number) \# |
| 57 |
% Dollar \$ Percent \% Ampersand \& |
| 58 |
% Acute accent \' Left paren \( Right paren \) |
| 59 |
% Asterisk \* Plus \+ Comma \, |
| 60 |
% Minus \- Point \. Solidus \/ |
| 61 |
% Colon \: Semicolon \; Less than \< |
| 62 |
% Equals \= Greater than \> Question mark \? |
| 63 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 64 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 65 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 66 |
% Right brace \} Tilde \~} |
| 67 |
% |
| 68 |
% \changes{v0.5}{2011/11/26}{Initial version.} |
| 69 |
% \changes{v0.57}{2011/12/01}{Improvements, see the README file.} |
| 70 |
% \changes{v0.577}{2011/12/12}{Improvements, see the README file.} |
| 71 |
% \changes{v0.5772}{2011/12/24}{Improvements, see the README file.} |
| 72 |
% \changes{v0.57721}{2012/01/09}{Improvements, see the README file.} |
| 73 |
% \changes{v0.577215}{2012/01/09}{Improvements, see the README file.} |
| 74 |
% \changes{v1.0}{2012/12/12}{First stable version, see the README file.} |
| 75 |
% \changes{v1.1}{2014/12/13}{Corrected stable version, see the README file.} |
| 76 |
% \changes{v1.2}{2015/12/23}{Transition to EJMS/VTEX/ProjectEuclid.} |
| 77 |
% \changes{v1.3}{2016/02/23}{Updated journal URLs and DOI output format} |
| 78 |
% \changes{v1.4}{2016/04/06}{Abstract baselineskip correction} |
| 79 |
% \changes{v1.5}{2016/09/06}{hypertexnames=false configuration for hyperref package} |
| 80 |
% \changes{v1.6}{2019/03/28}{full url doi, package maintaining and shorttitle info} |
| 81 |
% \changes{v1.7}{2019/04/04}{merged with production version: fixltx2e removed, natbib setup with afterpackage, etc} |
| 82 |
% \changes{v1.8.2}{2020/07/30}{no. prefix updated and msc2020} |
| 83 |
% \changes{v1.8.3}{2020/08/26}{Update URLs} |
| 84 |
% \changes{v1.9.0}{2020/10/21}{Supplement environment} |
| 85 |
% \changes{v1.10.0}{2021/02/11}{acks and support} |
| 86 |
% \changes{v1.11.0}{2021/04/20}{preprint option} |
| 87 |
% \changes{v1.11.1}{2021/08/17}{removed dependency on lastpage package} |
| 88 |
% \changes{v1.11.2}{2021/09/07}{nobera and nofontexpansion options added} |
| 89 |
% \changes{v1.11.3}{2021/11/04}{removed dash in MR} |
| 90 |
% \GetFileInfo{ejpecp.dtx} |
| 91 |
% |
| 92 |
% \DoNotIndex{\newcommand,\newenvironment} |
| 93 |
% |
| 94 |
% \title{The ejpecp class\thanks{\fileinfo\ \fileversion\ dated \filedate.}% |
| 95 |
% \thanks{Current maintainer of class file is |
| 96 |
% \href{https://vtex.lt}{VTeX, Lithuania}. Please send all queries to |
| 97 |
% \href{mailto:[email protected]}{\texttt{[email protected]}}.}} |
| 98 |
% |
| 99 |
% \author{K. Burdzy\and \href{http://djalil.chafai.net/}{D. Chafa\"\i}} |
| 100 |
% |
| 101 |
% \maketitle |
| 102 |
% |
| 103 |
% \section{Introduction} |
| 104 |
% |
| 105 |
% The \emph{ejpecp} \LaTeXe\ class is designed for the typesetting of |
| 106 |
% articles for the mathematical research periodicals Electronic Journal or |
| 107 |
% Probability (EJP) and Electronic Communications in Probability (ECP). |
| 108 |
% |
| 109 |
% \section{Usage} |
| 110 |
% |
| 111 |
% This class works only with the pdflatex engine. See the sample file for its |
| 112 |
% usage. |
| 113 |
% |
| 114 |
% \iffalse |
| 115 |
% |
| 116 |
% \DescribeMacro{\amacro} % |
| 117 |
% This macro does nothing.\index{doing nothing|usage} It is merely an example. |
| 118 |
% If this were a real macro, you would put a paragraph here describing what |
| 119 |
% the macro is supposed to do, what its mandatory and optional arguments are, |
| 120 |
% and so forth. |
| 121 |
% |
| 122 |
% \DescribeEnv{anenv} % |
| 123 |
% This environment does nothing. It is merely an example. If this were a real |
| 124 |
% environment, you would put a paragraph here describing what the environment |
| 125 |
% is supposed to do, what its mandatory and optional arguments are, and so |
| 126 |
% forth. % |
| 127 |
% |
| 128 |
% \fi |
| 129 |
% |
| 130 |
% \StopEventually{\PrintChanges\PrintIndex} |
| 131 |
% |
| 132 |
% \section{Implementation} |
| 133 |
% |
| 134 |
% \begin{macrocode} |
| 135 |
%% We declare and handle our class options |
| 136 |
\DeclareOption{EJP}{% |
| 137 |
\newcommand{\@EJP}{} |
| 138 |
\newcommand{\@JOURNAL}{EJP} |
| 139 |
\newcommand{\@JOURNALA}{Electron. J. Probab.} |
| 140 |
\newcommand{\@JOURNALL}{Electronic Journal of Probability} |
| 141 |
\newcommand{\@ISSN}{1083-6489} |
| 142 |
\newcommand{\@URL}{www.imstat.org/ejp} |
| 143 |
\newcommand{\@FULLURL}{https://imstat.org/journals-and-publications/electronic-journal-of-probability/} |
| 144 |
} |
| 145 |
\DeclareOption{ECP}{% |
| 146 |
\newcommand{\@ECP}{} |
| 147 |
\newcommand{\@JOURNAL}{ECP} |
| 148 |
\newcommand{\@JOURNALA}{Electron. Commun. Probab.} |
| 149 |
\newcommand{\@JOURNALL}{Electronic Communications in Probability} |
| 150 |
\newcommand{\@ISSN}{1083-589X} |
| 151 |
\newcommand{\@URL}{www.imstat.org/ecp} |
| 152 |
\newcommand{\@FULLURL}{https://imstat.org/journals-and-publications/electronic-communications-in-probability/} |
| 153 |
} |
| 154 |
\DeclareOption{NOAMS}{% prevents the load of AMS packages |
| 155 |
\newcommand{\@NOAMS}{} |
| 156 |
} |
| 157 |
\DeclareOption{NODS}{% asks to avoid renaming \mathbb into \mathds |
| 158 |
\newcommand{\@NODS}{} |
| 159 |
} |
| 160 |
\DeclareOption{PSTRICKS}{% pstricks and pspicture. |
| 161 |
% File must be compiled with "latex --shell-escape", then use dvipdf |
| 162 |
\newcommand{\@PSTRICKS}{} |
| 163 |
} |
| 164 |
\DeclareOption{draft}{% |
| 165 |
\PassOptionsToClass{draft}{article} |
| 166 |
} |
| 167 |
\DeclareOption{final}{% |
| 168 |
\PassOptionsToClass{final}{article} |
| 169 |
} |
| 170 |
\newif\if@ejpecp@preprint \@ejpecp@preprintfalse |
| 171 |
\DeclareOption{preprint}{\@ejpecp@preprinttrue} |
| 172 |
\newif\if@ejpecp@nofontexpansion \@ejpecp@nofontexpansionfalse |
| 173 |
\DeclareOption{nofontexpansion}{\@ejpecp@nofontexpansiontrue} |
| 174 |
\newif\if@ejpecp@nobera \@ejpecp@noberafalse |
| 175 |
\DeclareOption{nobera}{\@ejpecp@noberatrue} |
| 176 |
\DeclareOption*{% |
| 177 |
\PackageWarning{ejpecp}{Unknown option ‘\CurrentOption’}% |
| 178 |
} |
| 179 |
%\ExecuteOptions{EJP} |
| 180 |
\ProcessOptions\relax |
| 181 |
%% We use the standard article class |
| 182 |
\LoadClass[a4paper,10pt,twoside]{article} |
| 183 |
%% Packages and their options |
| 184 |
\RequirePackage{graphicx} |
| 185 |
\ifx\@PSTRICKS\undefined |
| 186 |
\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG} |
| 187 |
\else |
| 188 |
\RequirePackage[pdf]{pstricks} |
| 189 |
\RequirePackage{auto-pst-pdf} |
| 190 |
\fi |
| 191 |
\RequirePackage{mathtools} |
| 192 |
\RequirePackage{microtype} |
| 193 |
\if@ejpecp@nofontexpansion |
| 194 |
\microtypesetup{expansion=false} |
| 195 |
\fi |
| 196 |
\RequirePackage{latexsym} |
| 197 |
\ifx\@NODS\undefined |
| 198 |
\RequirePackage{dsfont} |
| 199 |
\fi |
| 200 |
\ifx\@NOAMS\undefined |
| 201 |
\RequirePackage{amsmath,amsfonts,amssymb,amsthm} |
| 202 |
\fi |
| 203 |
\RequirePackage{geometry} |
| 204 |
\geometry{a4paper,portrait,left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm} |
| 205 |
\if@ejpecp@nobera |
| 206 |
\else |
| 207 |
\RequirePackage{bera} % beware that the logo is sensitive to default font change |
| 208 |
\fi |
| 209 |
\RequirePackage{hyperref} |
| 210 |
\hypersetup{ |
| 211 |
pagebackref=false, |
| 212 |
pdfborder={0 0 0}, |
| 213 |
pdfstartview={FitH}, |
| 214 |
hypertexnames=false, |
| 215 |
breaklinks, |
| 216 |
} |
| 217 |
\def\UrlFont{} |
| 218 |
%%%% Macros et Environments |
| 219 |
%% General macros |
| 220 |
\newcommand{\@TITLE}{FIXME!} |
| 221 |
\newcommand{\@SHORTTITLE}{FIXME!} |
| 222 |
\newcommand{\@KEYWORDS}{FIXME!} |
| 223 |
\newcommand{\@AMSSUBJ}{FIXME!} |
| 224 |
\newcommand{\@ABSTRACT}{FIXME!} |
| 225 |
\newcommand{\@VOLUME}{0} |
| 226 |
\newcommand{\@PAPERNUM}{0} |
| 227 |
\newcommand{\@YEAR}{2012} |
| 228 |
\newcommand{\@PAGESTART}{1} |
| 229 |
\newcommand{\@PAGEEND}{\@ifundefined{ejpecp@lastpage}{\@PAGESTART}{\ejpecp@lastpage}} |
| 230 |
\newcommand{\@SUBMITTED}{FIXME!} |
| 231 |
\newcommand{\@ACCEPTED}{FIXME!} |
| 232 |
\newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}} |
| 233 |
\newcommand{\SHORTTITLE}[1]{\renewcommand{\@SHORTTITLE}{#1}} |
| 234 |
\newcommand{\DEDICATORY}[1]{\gdef\@DEDICATORY{#1}} |
| 235 |
\newcommand{\AUTHORS}[1]{\author{#1}} |
| 236 |
\let\FIRSTNAMES\@firstofone |
| 237 |
\let\SURNAME\@firstofone |
| 238 |
\newcommand{\KEYWORDS}[1]{\renewcommand{\@KEYWORDS}{#1}} |
| 239 |
\newcommand{\AMSSUBJ}[1]{\renewcommand{\@AMSSUBJ}{#1}} |
| 240 |
\newcommand{\AMSSUBJSECONDARY}[1]{\gdef\@AMSSUBJSECONDARY{#1}} |
| 241 |
\newcommand{\ABSTRACT}[1]{\renewcommand{\@ABSTRACT}{#1}} |
| 242 |
\newcommand{\VOLUME}[1]{\renewcommand{\@VOLUME}{#1}} |
| 243 |
\newcommand{\PAPERNUM}[1]{\renewcommand{\@PAPERNUM}{#1}} |
| 244 |
\newcommand{\YEAR}[1]{\renewcommand{\@YEAR}{#1}} |
| 245 |
\newcommand{\PAGESTART}[1]{\renewcommand{\@PAGESTART}{#1}} |
| 246 |
\newcommand{\PAGEEND}[1]{% |
| 247 |
\let\write@ejpecp@lastpage\relax |
| 248 |
\renewcommand{\@PAGEEND}{#1}% |
| 249 |
} |
| 250 |
\newcommand{\SUBMITTED}[1]{\renewcommand{\@SUBMITTED}{#1}} |
| 251 |
\newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}} |
| 252 |
\newcommand{\DOI}[1]{\gdef\@DOI{#1}} |
| 253 |
\newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}} |
| 254 |
\newcommand{\HALID}[1]{\gdef\@HALID{#1}} |
| 255 |
\newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1} |
| 256 |
\def\acknowledgementsname{Acknowledgments} |
| 257 |
\newenvironment{acks}[1][\acknowledgementsname]{\noindent\textbf{#1.}\space\ignorespaces}{\par} |
| 258 |
\def\EMAIL#1{E-mail:~\texttt{\href{mailto:#1}{\nolinkurl{#1}}}} |
| 259 |
\newcommand{\BEMAIL}[1]{\newline\hspace*{1.8em}\EMAIL{#1}} % useful in ftnotes |
| 260 |
%% Logos |
| 261 |
\newcommand{\@EJPLOGO}{% designed by KB. |
| 262 |
% This version is for bera 10pt (depends on the font via "em" and "ex") |
| 263 |
\centerline{% |
| 264 |
\hbox{% |
| 265 |
\vrule height -0.4 pt depth 0.8 pt width 27.7 em\space |
| 266 |
\kern -27.8 em\space |
| 267 |
\raise 0.03ex \hbox {\bf E}\space |
| 268 |
\raise 0.06ex \hbox {l}\space |
| 269 |
\raise .13ex \hbox {e}\space |
| 270 |
\raise .24ex \hbox {c}\space |
| 271 |
\raise .45ex \hbox {t}\space |
| 272 |
\raise .78ex \hbox {r}\space |
| 273 |
\raise 1.31ex \hbox {o}\space |
| 274 |
\raise 2.08ex \hbox {n}\space |
| 275 |
\raise 3.14ex \hbox {i}\space |
| 276 |
\raise 4.53ex \hbox {c}\space |
| 277 |
\kern 1em\space |
| 278 |
\raise 8.15ex \hbox {\bf J}\space |
| 279 |
\raise 10.15ex \hbox {o}\space |
| 280 |
\raise 12.04ex \hbox {u}\space |
| 281 |
\raise 13.60ex \hbox {r}\space |
| 282 |
\raise 14.64ex \hbox {n}\space |
| 283 |
\kern .3 em\space |
| 284 |
\vrule depth 0.8pt height 14.5ex \space |
| 285 |
\kern -.3em\space |
| 286 |
\raise 15ex \hbox {a}\space |
| 287 |
\raise 14.64ex \hbox {l}\space |
| 288 |
\kern 1em\space |
| 289 |
\raise 12.04ex \hbox {o}\space |
| 290 |
\raise 10.15ex \hbox {f}\space |
| 291 |
\kern 1em\space |
| 292 |
\raise 6.23ex \hbox {\bf P}\space |
| 293 |
\raise 4.53ex \hbox {r}\space |
| 294 |
\raise 3.14ex \hbox {o}\space |
| 295 |
\raise 2.08ex \hbox {b}\space |
| 296 |
\raise 1.31ex \hbox {a}\space |
| 297 |
\raise .78ex \hbox {b}\space |
| 298 |
\raise .45ex \hbox {i}\space |
| 299 |
\raise .24ex \hbox {l}\space |
| 300 |
\raise .13ex \hbox {i}\space |
| 301 |
\raise .06ex \hbox {t}\space |
| 302 |
\raise .03ex \hbox {y}% |
| 303 |
}% |
| 304 |
}% |
| 305 |
}%EJPLOGO |
| 306 |
\newcommand{\@ECPLOGO}{% designed when Ren\'e Carmona was in charge of ECP |
| 307 |
\raisebox{0.3cm}{\parbox[t]{1.3in}{\noindent\rule{1.3in}{1.6pt}\\ |
| 308 |
\textbf{ ELECTRONIC}\\ |
| 309 |
\textbf{ COMMUNICATIONS}\\ |
| 310 |
\textbf{ in PROBABILITY}\\ |
| 311 |
\rule[.08in]{1.3in}{1.6pt}}}% |
| 312 |
}%ECPLOGO |
| 313 |
\def\@doiprefix{https://doi.org/} |
| 314 |
\def\printdoi{\texttt{\href{\@doiprefix\@DOI}{\@doiprefix\@DOI}}} |
| 315 |
\def\msc@url{https://ams.org/mathscinet/msc/msc2020.html} |
| 316 |
%% for multiple thanks/support in title |
| 317 |
\def\title@makefnmark{% |
| 318 |
\setbox\@tempboxa\hbox{\@textsuperscript{\normalfont\@thefnmark}}% |
| 319 |
\@ifundefined{prev@makefnmark@wd}% |
| 320 |
{\edef\prev@makefnmark@wd{0pt}}% |
| 321 |
{\edef\prev@makefnmark@wd{\the\dimexpr\prev@makefnmark@wd+\wd\@tempboxa\relax}}% |
| 322 |
\rlap{\hskip\prev@makefnmark@wd\unhbox\@tempboxa}% |
| 323 |
} |
| 324 |
\def\title@thanks#1{\unskip\unkern\orig@thanks{#1}\ignorespaces}% |
| 325 |
%% make title long |
| 326 |
\renewcommand\title[1]{\gdef\@title{#1}} |
| 327 |
%% Macro handling the first page |
| 328 |
\def\papernum@name{no.} |
| 329 |
\newcommand{\FIRSTPAGE}{% |
| 330 |
\setcounter{page}{\@PAGESTART}% |
| 331 |
\title{\small |
| 332 |
\let\orig@thanks\thanks |
| 333 |
\ifx\@EJP\undefined\else |
| 334 |
\if@ejpecp@preprint |
| 335 |
\phantom{\@EJPLOGO}\par |
| 336 |
\else |
| 337 |
\@EJPLOGO |
| 338 |
\fi |
| 339 |
\bigskip |
| 340 |
\if@ejpecp@preprint |
| 341 |
\null\null |
| 342 |
\else |
| 343 |
\centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\ |
| 344 |
\papernum@name\ \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}% |
| 345 |
\centerline{ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}} % |
| 346 |
\ifx\@DOI\undefined\else |
| 347 |
\ \printdoi |
| 348 |
\fi}% |
| 349 |
\fi |
| 350 |
\bigskip |
| 351 |
\bigskip |
| 352 |
\bgroup |
| 353 |
\@ifundefined{no@title@thanks@support}{% |
| 354 |
\let\thanks\title@thanks |
| 355 |
\let\@makefnmark\title@makefnmark |
| 356 |
\let\support\thanks |
| 357 |
}{}% |
| 358 |
\Large\bfseries\@TITLE\par |
| 359 |
\egroup |
| 360 |
\fi |
| 361 |
\ifx\@ECP\undefined |
| 362 |
\else |
| 363 |
\parbox[t]{9cm}{% |
| 364 |
\if@ejpecp@preprint |
| 365 |
\else |
| 366 |
\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR), |
| 367 |
\papernum@name\ \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\ |
| 368 |
\ifx\@DOI\undefined |
| 369 |
\else |
| 370 |
\ \printdoi |
| 371 |
\fi \\ |
| 372 |
ISSN:\ \texttt{\href{\@FULLURL}{\@ISSN}}% |
| 373 |
\fi |
| 374 |
}% |
| 375 |
\hfill |
| 376 |
\if@ejpecp@preprint |
| 377 |
\phantom{\@ECPLOGO}% |
| 378 |
\else |
| 379 |
\@ECPLOGO |
| 380 |
\fi\\ |
| 381 |
\bigskip |
| 382 |
\bigskip |
| 383 |
\bgroup |
| 384 |
\@ifundefined{no@title@thanks@support}{% |
| 385 |
\let\thanks\title@thanks |
| 386 |
\let\@makefnmark\title@makefnmark |
| 387 |
\let\support\thanks |
| 388 |
}{}% |
| 389 |
\Large\@TITLE\par |
| 390 |
\egroup |
| 391 |
\fi |
| 392 |
}% end title |
| 393 |
\date{% |
| 394 |
\ifx\@DEDICATORY\undefined |
| 395 |
\else |
| 396 |
\noindent |
| 397 |
\emph{\small\sffamily\@DEDICATORY}% |
| 398 |
\fi}% |
| 399 |
\maketitle\thispagestyle{empty}% |
| 400 |
\begin{abstract}% |
| 401 |
\noindent |
| 402 |
\@ABSTRACT\par\vskip 1em\relax |
| 403 |
{\footnotesize |
| 404 |
\noindent\textbf{Keywords: }\@KEYWORDS.\par |
| 405 |
\noindent\href\msc@url{\textbf{MSC2020 subject classifications: }}% |
| 406 |
\ifx\@AMSSUBJSECONDARY\undefined |
| 407 |
\noindent |
| 408 |
\@AMSSUBJ.\par |
| 409 |
\else |
| 410 |
\noindent |
| 411 |
Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.\par |
| 412 |
\fi |
| 413 |
\if@ejpecp@preprint |
| 414 |
\mbox{}\par |
| 415 |
\else |
| 416 |
\noindent |
| 417 |
Submitted to \@JOURNAL\ on \@SUBMITTED, |
| 418 |
final version accepted on \@ACCEPTED.\par |
| 419 |
\fi |
| 420 |
\ifx\@ARXIVID\undefined |
| 421 |
\else |
| 422 |
\noindent |
| 423 |
Supersedes |
| 424 |
\texttt{\href{https://arXiv.org/abs/\@ARXIVID}{arXiv:\@ARXIVID}}.% |
| 425 |
\fi\par |
| 426 |
\ifx\@HALID\undefined |
| 427 |
\else |
| 428 |
\noindent |
| 429 |
Supersedes |
| 430 |
\texttt{\href{https://hal.archives-ouvertes.fr/\@HALID}{HAL:\@HALID}}.% |
| 431 |
\fi\par |
| 432 |
}%footnotesize |
| 433 |
\end{abstract} |
| 434 |
|
| 435 |
\smallskip |
| 436 |
|
| 437 |
}%END-FIRSTPAGE |
| 438 |
%% Macro setting the PDF title |
| 439 |
\newcommand{\PDFFIELDS}{% |
| 440 |
\if@ejpecp@preprint |
| 441 |
\else |
| 442 |
\hypersetup{% |
| 443 |
pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), \papernum@name\ \@PAPERNUM, \@doiprefix\@DOI}}% |
| 444 |
\hypersetup{pdfproducer={\@JOURNAL\ Managing Editor https://\@URL}}% |
| 445 |
\hypersetup{pdfauthor={Please see \@doiprefix\@DOI}}% |
| 446 |
\fi |
| 447 |
\hypersetup{pdfkeywords={\@KEYWORDS}}% |
| 448 |
\hypersetup{pdfcreator={LaTeX with ejpecp.cls \@nameuse{[email protected]}}}% |
| 449 |
\hypersetup{pdfsubject={Probability Theory}}% |
| 450 |
}%END-PDFFIELDS |
| 451 |
|
| 452 |
%% Supplement |
| 453 |
\def\supplement@name{Supplementary Material} |
| 454 |
\def\stitle#1{\def\@stitle{#1}} |
| 455 |
\def\stitle@fmt#1{\textbf{#1.}\ } |
| 456 |
\def\sdescription#1{\def\@sdescription{#1}} |
| 457 |
\def\suppsection@fmt{\section*{\supplement@name}} |
| 458 |
\long\def\supplement{\@ifnextchar[{\@supplement}{\@supplement[]}} |
| 459 |
\long\def\@supplement[#1]{% |
| 460 |
\suppsection@fmt |
| 461 |
\global\let\suppsection@fmt\smallskip |
| 462 |
} |
| 463 |
\def\endsupplement{% |
| 464 |
\@ifundefined{@stitle}% |
| 465 |
{}% |
| 466 |
{\stitle@fmt{\@stitle}}% |
| 467 |
% |
| 468 |
\@ifundefined{@sdescription}{}{\@sdescription}% |
| 469 |
\par |
| 470 |
} |
| 471 |
|
| 472 |
%% Bibliography |
| 473 |
\def\@MRExtract#1 #2!{#1} % thanks, Martin! |
| 474 |
\newcommand{\MR}[1]{% we need to strip the "(...)" |
| 475 |
\xdef\@MRSTRIP{\@MRExtract#1 !}% |
| 476 |
\href{https://mathscinet.ams.org/mathscinet-getitem?mr=\@MRSTRIP}{MR\@MRSTRIP}} |
| 477 |
\newcommand{\ARXIV}[1]{\href{https://arXiv.org/abs/#1}{arXiv:#1}} |
| 478 |
\def\bibliography@size{\small} |
| 479 |
\renewenvironment{thebibliography}[1] |
| 480 |
{% |
| 481 |
\section*{\refname |
| 482 |
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}% |
| 483 |
\phantomsection |
| 484 |
\addcontentsline{toc}{section}{\refname}% |
| 485 |
\list{\@biblabel{\@arabic\c@enumiv}}% |
| 486 |
{\settowidth\labelwidth{\@biblabel{#1}}% |
| 487 |
\bibliography@size |
| 488 |
\setlength{\labelsep}{0.4em}% |
| 489 |
\setlength{\leftmargin}{\labelwidth}% |
| 490 |
\addtolength{\leftmargin}{\labelsep}% |
| 491 |
\setlength{\itemsep}{-.25em}% |
| 492 |
\@openbib@code |
| 493 |
\usecounter{enumiv}% |
| 494 |
\let\p@enumiv\@empty |
| 495 |
\renewcommand\theenumiv{\@arabic\c@enumiv}}% |
| 496 |
\sloppy\clubpenalty4000\@clubpenalty\clubpenalty\widowpenalty4000% |
| 497 |
\sfcode`\.\@m |
| 498 |
}{% |
| 499 |
\def\@noitemerr{% |
| 500 |
\@latex@warning{Empty `thebibliography' environment}}% |
| 501 |
\endlist |
| 502 |
} |
| 503 |
%% Theorem styles |
| 504 |
\ifx\@NOAMS\undefined |
| 505 |
\newtheoremstyle{ejpecpbodyit}% name % cf. thmtest.tex of AMSLaTeX |
| 506 |
{3pt} % Space above |
| 507 |
{3pt} % Space below |
| 508 |
{\itshape} % Body font |
| 509 |
{} % Indent amount (empty = no indent, |
| 510 |
% \parindent = para indent) |
| 511 |
{\bfseries\sffamily} % Thm head font |
| 512 |
{.} % Punctuation after thm head |
| 513 |
{ } % Space after thm head: " " = normal interword space; |
| 514 |
% \newline = linebreak |
| 515 |
{} % Thm head spec (can be left empty, meaning `normal') |
| 516 |
\newtheoremstyle{ejpecpbodyrm}% name % cf. thmtest.tex of AMSLaTeX |
| 517 |
{3pt} % Space above |
| 518 |
{3pt} % Space below |
| 519 |
{} % Body font |
| 520 |
{} % Indent amount (empty = no indent, |
| 521 |
% \parindent = para indent) |
| 522 |
{\bfseries\sffamily} % Thm head font |
| 523 |
{.} % Punctuation after thm head |
| 524 |
{ } % Space after thm head: " " = normal interword space; |
| 525 |
% \newline = linebreak |
| 526 |
{} % Thm head spec (can be left empty, meaning `normal') |
| 527 |
\fi |
| 528 |
%% |
| 529 |
\ifx\@NOAMS\undefined |
| 530 |
\theoremstyle{ejpecpbodyit} |
| 531 |
\fi |
| 532 |
\newtheorem{theorem}{Theorem}[section] |
| 533 |
\newtheorem{assumptions}[theorem]{Assumptions} |
| 534 |
\newtheorem{assumption}[theorem]{Assumption} |
| 535 |
\newtheorem{claim}[theorem]{Claim} |
| 536 |
\newtheorem{condition}[theorem]{Condition} |
| 537 |
\newtheorem{conjecture}[theorem]{Conjecture} |
| 538 |
\newtheorem{corollary}[theorem]{Corollary} |
| 539 |
\newtheorem{definitions}[theorem]{Definitions} |
| 540 |
\newtheorem{definition}[theorem]{Definition} |
| 541 |
\newtheorem{facts}[theorem]{Facts} |
| 542 |
\newtheorem{fact}[theorem]{Fact} |
| 543 |
\newtheorem{heuristics}[theorem]{Heuristics} |
| 544 |
\newtheorem{hypothesis}[theorem]{Hypothesis} |
| 545 |
\newtheorem{hypotheses}[theorem]{Hypotheses} |
| 546 |
\newtheorem{lemma}[theorem]{Lemma} |
| 547 |
\newtheorem{notations}[theorem]{Notations} |
| 548 |
\newtheorem{notation}[theorem]{Notation} |
| 549 |
\newtheorem{proposition}[theorem]{Proposition} |
| 550 |
\ifx\@NOAMS\undefined |
| 551 |
\theoremstyle{ejpecpbodyrm} |
| 552 |
\fi |
| 553 |
\newtheorem{example}[theorem]{Example} |
| 554 |
\newtheorem{exercise}[theorem]{Exercise} |
| 555 |
\newtheorem{problem}[theorem]{Problem} |
| 556 |
\newtheorem{question}[theorem]{Question} |
| 557 |
\newtheorem{remark}[theorem]{Remark} |
| 558 |
%% Numbering |
| 559 |
\ifx\@NOAMS\undefined |
| 560 |
\numberwithin{equation}{section} |
| 561 |
\fi |
| 562 |
%% Itemize and enumerate for bera |
| 563 |
\newcommand{\@reduceitemsep}{\addtolength{\itemsep}{-0.5\baselineskip}} |
| 564 |
\let\OLD@itemize\itemize |
| 565 |
\renewcommand\itemize{\OLD@itemize\@reduceitemsep} |
| 566 |
\let\OLD@enumerate\enumerate |
| 567 |
\renewcommand\enumerate{\OLD@enumerate\@reduceitemsep} |
| 568 |
%% Replace \mathbb by \mathds except if we require the contrary |
| 569 |
\ifx\@NODS\undefined |
| 570 |
\let\realmathbb=\mathbb |
| 571 |
\let\mathbb=\mathds |
| 572 |
\fi |
| 573 |
%% Headings |
| 574 |
\def\write@ejpecp@lastpage{\immediate\write\@auxout{\string\xdef\string\ejpecp@lastpage{\the\c@page}}} |
| 575 |
\newcommand{\@HBLOB}{% |
| 576 |
\href{\@doiprefix\@DOI}% |
| 577 |
{\@JOURNAL\ \textbf{\@VOLUME}\, (\@YEAR),\ paper \@PAPERNUM.}} |
| 578 |
\renewcommand{\@evenfoot}{% |
| 579 |
\normalfont\footnotesize\if@ejpecp@preprint\mbox{}\else\@HBLOB\fi\hfil |
| 580 |
\small |
| 581 |
\write@ejpecp@lastpage |
| 582 |
\raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil |
| 583 |
\footnotesize\if@ejpecp@preprint\mbox{}\else\href{\@FULLURL}{https://\@URL}\fi} |
| 584 |
\renewcommand{\@oddfoot}{\@evenfoot} |
| 585 |
\renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil} |
| 586 |
\renewcommand{\@oddhead}{\@evenhead} |
| 587 |
%% smaller sections titles |
| 588 |
\renewcommand{\section}{% |
| 589 |
\@startsection |
| 590 |
{section} |
| 591 |
{1} |
| 592 |
{0em} |
| 593 |
{\baselineskip} |
| 594 |
{0.5\baselineskip} |
| 595 |
{\normalfont\large\bfseries}} |
| 596 |
\renewcommand{\subsection}{% |
| 597 |
\@startsection |
| 598 |
{subsection} |
| 599 |
{2} |
| 600 |
{0em} |
| 601 |
{\baselineskip} |
| 602 |
{0.25\baselineskip} |
| 603 |
{\normalfont\bfseries}} |
| 604 |
\RequirePackage{afterpackage} |
| 605 |
\AfterPackage{natbib} |
| 606 |
{% |
| 607 |
\def\bibcleanup{\vskip-\lastskip\vskip10\p@}% |
| 608 |
\renewcommand{\bibfont}{\small}% |
| 609 |
\newlength{\standard@parsep}% |
| 610 |
\newlength{\standard@itemsep}% |
| 611 |
\setlength{\standard@parsep}{4.0pt plus 2.0pt minus 1.0pt}% |
| 612 |
\setlength{\standard@itemsep}{-2.02498pt}% |
| 613 |
\setlength{\bibsep}{\standard@parsep}% |
| 614 |
\addtolength{\bibsep}{\standard@itemsep}% |
| 615 |
\renewcommand\NAT@bibsetnum[1]% |
| 616 |
{% |
| 617 |
\settowidth\labelwidth{\@biblabel{#1}}% |
| 618 |
\setlength{\leftmargin}{\labelwidth}\addtolength{\leftmargin}{\labelsep}% |
| 619 |
\setlength{\labelsep}{3pt}% |
| 620 |
\setlength{\itemsep}{\bibsep}\setlength{\parsep}{\z@}% |
| 621 |
\ifNAT@openbib |
| 622 |
\addtolength{\leftmargin}{\bibindent}% |
| 623 |
\setlength{\itemindent}{-\bibindent}% |
| 624 |
\setlength{\listparindent}{\itemindent}% |
| 625 |
\setlength{\parsep}{0pt}% |
| 626 |
\fi |
| 627 |
}% |
| 628 |
}% |
| 629 |
\def\amp{&}% |
| 630 |
\InputIfFileExists{ejpecp.cfg} |
| 631 |
{} |
| 632 |
{\def\papernum@name{article no.}} |
| 633 |
%% Macros |
| 634 |
\AtBeginDocument{\FIRSTPAGE\PDFFIELDS} |
| 635 |
\AtEndDocument{\vfill} |
| 636 |
\endinput |
| 637 |
%% |
| 638 |
%% End of file `ejpecp.cls'. |
| 639 |
%% Macros |
| 640 |
\AtBeginDocument{\FIRSTPAGE\PDFFIELDS} |
| 641 |
\AtEndDocument{\vfill} |
| 642 |
% \end{macrocode} |
| 643 |
% \Finale |
| 644 |
\endinput |