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