summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ejpecp
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ejpecp')
-rw-r--r--macros/latex/contrib/ejpecp/LPPL318
-rw-r--r--macros/latex/contrib/ejpecp/README125
-rw-r--r--macros/latex/contrib/ejpecp/ejpecp.dtx545
-rw-r--r--macros/latex/contrib/ejpecp/ejpecp.ins63
-rw-r--r--macros/latex/contrib/ejpecp/ejpecp.pdfbin0 -> 138470 bytes
-rw-r--r--macros/latex/contrib/ejpecp/mgetmref.py401
-rw-r--r--macros/latex/contrib/ejpecp/sample.pdfbin0 -> 155520 bytes
-rw-r--r--macros/latex/contrib/ejpecp/sample.tex524
8 files changed, 1976 insertions, 0 deletions
diff --git a/macros/latex/contrib/ejpecp/LPPL b/macros/latex/contrib/ejpecp/LPPL
new file mode 100644
index 0000000000..5b05fe8689
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/LPPL
@@ -0,0 +1,318 @@
+
+The LaTeX Project Public License
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+LPPL Version 1.2 1999-09-03
+
+Copyright 1999 LaTeX3 Project
+ Everyone is allowed to distribute verbatim copies of this
+ license document, but modification of it is not allowed.
+
+
+PREAMBLE
+========
+
+The LaTeX Project Public License (LPPL) is the license under which the
+base LaTeX distribution is distributed.
+
+You may use this license for any program that you have written and wish
+to distribute. This license may be particularly suitable if your
+program is TeX-related (such as a LaTeX package), but you may use it
+even if your program is unrelated to TeX. The section `WHETHER AND HOW
+TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE', below, gives instructions,
+examples, and recommendations for authors who are considering
+distributing their programs under this license.
+
+In this license document, `The Program' refers to any program
+distributed under this license.
+
+This license gives conditions under which The Program may be distributed
+and conditions under which modified versions of The Program may be
+distributed. Individual files of The Program may bear supplementary
+and/or superseding conditions on modification of themselves and on the
+distribution of modified versions of themselves, but *no* file of The
+Program may bear supplementary or superseding conditions on the
+distribution of an unmodified copy of the file. A distributor wishing
+to distribute a complete, unmodified copy of The Program therefore
+needs to check the conditions only in this license and nowhere else.
+
+Activities other than distribution and/or modification of The Program
+are not covered by this license; they are outside its scope. In
+particular, the act of running The Program is not restricted.
+
+We, the LaTeX3 Project, believe that the conditions below give you
+the freedom to make and distribute modified versions of The Program
+that conform with whatever technical specifications you wish while
+maintaining the availability, integrity, and reliability of
+The Program. If you do not see how to achieve your goal while
+meeting these conditions, then read the document `cfgguide.tex'
+in the base LaTeX distribution for suggestions.
+
+
+CONDITIONS ON DISTRIBUTION AND MODIFICATION
+===========================================
+
+You may distribute a complete, unmodified copy of The Program.
+Distribution of only part of The Program is not allowed.
+
+You may not modify in any way a file of The Program that bears a legal
+notice forbidding modification of that file.
+
+You may distribute a modified file of The Program if, and only if, the
+following eight conditions are met:
+
+ 1. You must meet any additional conditions borne by the file on the
+ distribution of a modified version of the file as described below
+ in the subsection `Additional Conditions on Individual Files of
+ The Program'.
+
+ 2. If the file is a LaTeX software file, then you must meet any
+ applicable additional conditions on the distribution of a modified
+ version of the file that are described below in the subsection
+ `Additional Conditions on LaTeX Software Files'.
+
+ 3. You must not distribute the modified file with the filename of the
+ original file.
+
+ 4. In the modified file, you must acknowledge the authorship and
+ name of the original file, and the name (if any) of the program
+ which contains it.
+
+ 5. You must change any identification string in the file to indicate
+ clearly that the modified file is not part of The Program.
+
+ 6. You must change any addresses in the modified file for the
+ reporting of errors in the file or in The Program generally to
+ ensure that reports for files no longer maintained by the original
+ maintainers will be directed to the maintainers of the modified
+ files.
+
+ 7. You must distribute the modified file under a license that forbids
+ distribution both of the modified file and of any files derived
+ from the modified file with the filename of the original file.
+
+ 8. You must do either (A) or (B):
+
+ (A) distribute a copy of The Program (that is, a complete,
+ unmodified copy of The Program) together with the modified
+ file; if your distribution of the modified file is made by
+ offering access to copy the modified file from a designated
+ place, then offering equivalent access to copy The Program
+ from the same place meets this condition, even though third
+ parties are not compelled to copy The Program along with the
+ modified file;
+
+ (B) provide to those who receive the modified file information
+ that is sufficient for them to obtain a copy of The Program;
+ for example, you may provide a Uniform Resource Locator (URL)
+ for a site that you expect will provide them with a copy of
+ The Program free of charge (either the version from which
+ your modification is derived, or perhaps a later version).
+
+Note that in the above, `distribution' of a file means making the
+file available to others by any means. This includes, for instance,
+installing the file on any machine in such a way that the file is
+accessible by users other than yourself. `Modification' of a file
+means any procedure that produces a derivative file under any
+applicable law -- that is, a file containing the original file or
+a significant portion of it, either verbatim or with modifications
+and/or translated into another language.
+
+Changing the name of a file (other than as necessitated by the file
+conventions of the target file systems) is considered to be a
+modification of the file.
+
+The distribution conditions in this license do not have to be
+applied to files that have been modified in accordance with the
+above conditions. Note, however, that Condition 7. does apply to
+any such modified file.
+
+The conditions above are not intended to prohibit, and hence do not
+apply to, the updating, by any method, of a file so that it becomes
+identical to the latest version of that file of The Program.
+
+
+
+A Recommendation on Modification Without Distribution
+-----------------------------------------------------
+
+It is wise never to modify a file of The Program, even for your own
+personal use, without also meeting the above eight conditions for
+distributing the modified file. While you might intend that such
+modified files will never be distributed, often this will happen by
+accident -- you may forget that you have modified the file; or it may
+not occur to you when allowing others to access the modified file
+that you are thus distributing it and violating the conditions of
+this license. It is usually in your best interest to keep your copy
+of The Program identical with the public one. Many programs provide
+ways to control the behavior of that program without altering its
+licensed files.
+
+
+Additional Conditions on Individual Files of The Program
+--------------------------------------------------------
+
+An individual file of The Program may bear additional conditions that
+supplement and/or supersede the conditions in this license if, and only
+if, such additional conditions exclusively concern modification of the
+file or distribution of a modified version of the file. The conditions
+on individual files of The Program therefore may differ only with
+respect to the kind and extent of modification of those files that
+is allowed, and with respect to the distribution of modified versions
+of those files.
+
+
+Additional Conditions on LaTeX Software Files
+---------------------------------------------
+
+If a file of The Program is intended to be used with LaTeX (that is,
+if it is a LaTeX software file), then the following additional
+conditions, which supplement and/or supersede the conditions
+above, apply to the file according to its filename extension:
+
+ - You may not modify any file with filename extension `.ins' since
+ these are installation files containing the legal notices that are
+ placed in the files they generate.
+
+ - You may distribute modified versions of files with filename
+ extension `.fd' (LaTeX font definition files) under the standard
+ conditions of the LPPL as described above. You may also distribute
+ such modified LaTeX font definition files with their original names
+ provided that:
+ (1) the only changes to the original files either enable use of
+ available fonts or prevent attempts to access unavailable fonts;
+ (2) you also distribute the original, unmodified files (TeX input
+ paths can be used to control which set of LaTeX font definition
+ files is actually used by TeX).
+
+ - You may distribute modified versions of files with filename
+ extension `.cfg' (configuration files) with their original names.
+ The Program may (and usually will) specify the range of commands
+ that are allowed in a particular configuration file.
+
+Because of portability and exchangeability issues in LaTeX software,
+The LaTeX3 Project deprecates the distribution of modified versions of
+components of LaTeX or of generally available contributed code for them,
+but such distribution can meet the conditions of this license.
+
+
+NO WARRANTY
+===========
+
+There is no warranty for The Program. Except when otherwise stated in
+writing, The Copyright Holder provides The Program `as is', without
+warranty of any kind, either expressed or implied, including, but not
+limited to, the implied warranties of merchantability and fitness for
+a particular purpose. The entire risk as to the quality and performance
+of The Program is with you. Should The Program prove defective, you
+assume the cost of all necessary servicing, repair, or correction.
+
+In no event unless agreed to in writing will The Copyright Holder, or
+any author named in the files of The Program, or any other party who may
+distribute and/or modify The Program as permitted above, be liable to
+you for damages, including any general, special, incidental or
+consequential damages arising out of any use of The Program or out of
+inability to use The Program (including, but not limited to, loss of
+data, data being rendered inaccurate, or losses sustained by anyone as
+a result of any failure of The Program to operate with any other
+programs), even if The Copyright Holder or said author or said other
+party has been advised of the possibility of such damages.
+
+
+WHETHER AND HOW TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE
+=========================================================
+
+This section contains important instructions, examples, and
+recommendations for authors who are considering distributing their
+programs under this license. These authors are addressed as `you' in
+this section.
+
+
+Choosing This License or Another License
+----------------------------------------
+
+If for any part of your program you want or need to use *distribution*
+conditions that differ from those in this license, then do not refer to
+this license anywhere in your program but instead distribute your
+program under a different license. You may use the text of this license
+as a model for your own license, but your license should not refer to
+the LPPL or otherwise give the impression that your program is
+distributed under the LPPL.
+
+The document `modguide.tex' in the base LaTeX distribution explains
+the motivation behind the conditions of this license. It explains,
+for example, why distributing LaTeX under the GNU General Public
+License (GPL) was considered inappropriate. Even if your program is
+unrelated to LaTeX, the discussion in `modguide.tex' may still be
+relevant, and authors intending to distribute their programs under any
+license are encouraged to read it.
+
+
+How to Use This License
+-----------------------
+
+To use this license, place in each of the files of your program both
+an explicit copyright notice including your name and the year and also
+a statement that the distribution and/or modification of the file is
+constrained by the conditions in this license.
+
+Here is an example of such a notice and statement:
+
+ %% pig.dtx
+ %% Copyright 2001 M. Y. Name
+ %
+ % This program 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
+ % http://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.
+ %
+ % This program consists of the files pig.dtx and pig.ins
+
+Given such a notice and statement in a file, the conditions given in
+this license document would apply, with `The Program' referring to the
+two files `pig.dtx' and `pig.ins', and `The Copyright Holder' referring
+to the person `M. Y. Name'.
+
+
+Important Recommendations
+-------------------------
+
+ Defining What Constitutes The Program
+
+ The LPPL requires that distributions of The Program contain all the
+ files of The Program. It is therefore important that you provide a
+ way for the licensee to determine which files constitute The Program.
+ This could, for example, be achieved by explicitly listing all the
+ files of The Program near the copyright notice of each file or by
+ using a line like
+
+ % This program consists of all files listed in manifest.txt.
+
+ in that place. In the absence of an unequivocal list it might be
+ impossible for the licensee to determine what is considered by you
+ to comprise The Program.
+
+ Noting Exceptional Files
+
+ If The Program contains any files bearing additional conditions on
+ modification, or on distribution of modified versions, of those
+ files (other than those listed in `Additional Conditions on LaTeX
+ Software Files'), then it is recommended that The Program contain a
+ prominent file that defines the exceptional conditions, and either
+ lists the exceptional files or defines one or more categories of
+ exceptional files.
+
+ Files containing the text of a license (such as this file) are
+ often examples of files bearing more restrictive conditions on
+ modification. LaTeX configuration files (with filename extension
+ `.cfg') are examples of files bearing less restrictive conditions
+ on the distribution of a modified version of the file. The
+ additional conditions on LaTeX software given above are examples
+ of declaring a category of files bearing exceptional additional
+ conditions.
+
+
+
diff --git a/macros/latex/contrib/ejpecp/README b/macros/latex/contrib/ejpecp/README
new file mode 100644
index 0000000000..074bb1792d
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/README
@@ -0,0 +1,125 @@
+DESCRIPTION
+ "ejpecp" is a LaTeX2e document class for typesetting articles for the
+ mathematical research periodicals "Electronic Journal of Probability" (EJP)
+ and "Electronic Communications in Probability" (ECP). The websites of these
+ electronic journals are http://www.imstat.org/ejp/ and http://www.imstat.org/ecp/
+
+COPYRIGHT
+ Copyright (c) 2019 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
+ The original ECP logo was designed when Ren\'e CARMONA was in charge of ECP
+ The original EJP logo was designed by Krzysztof BURDZY
+ The current \MR macro was provided by Martin HAIRER
+ The class internals benefited from the comments of S\'ebastien GOU\"EZEL
+ The mgetmref.py script is Copyright (c) 2004 S. TOLUSIS and Jim PITMAN
+ The mgetmref.py script is free software licensed under the GPL
+ See http://www.e-publications.org/ims/support/batchmref.html
+
+FILE LIST
+ sample.tex sample article for EJP or ECP (source file)
+ sample.pdf sample article for EJP or ECP (PDF compiled)
+ LPPL a copy of the LaTeX Project Public License
+ README this file itself!
+ mgetref.py Python script to add MR URLs in bibliographies
+ ejpecp.dtx class source file
+ ejpecp.ins class install file
+ ejpecp.pdf class documentation
+
+HOW TO BUILD ejpecp.cls
+ pdflatex ejpecp.ins # produces ejpecp.cls
+ pdflatex ejpecp.dtx # produces ejpecp.pdf
+
+INSTRUCTIONS FOR EJP-ECP AUTHORS
+ You only need ejpecp.cls, sample.tex, and sample.pdf
+ Take the time to read sample.pdf
+ Copy sample.tex into yourname.tex
+ Edit yourname.tex (update metadata and the content of the paper)
+ Be sure to have ejpecp.cls in the same directory (or any dir scanned for cls)
+ Compile yourname.tex with a pdflatex engine producing yourname.pdf
+ More detailed instructions for authors are available on Internet:
+ EJP: http://www.imstat.org/ejp/ ECP: http://www.imstat.org/ecp/
+
+DEPENDENCIES
+ 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,
+ microtype, afterpackage. It was also successfully tested with the next
+ generation engine lualatex.
+
+LATEST VERSION
+ The latest version is on the CTAN at
+ http:/mirror.ctan.org/macros/latex/contrib/ejpecp/
+
+CHANGELOG
+ 2019/04/04 v1.7
+ Merged changes with production version:
+ fixltx2e dependency removed
+ natbib setup with afterpackage
+ cosmetic changes
+ 2019/03/28 v1.6
+ Full url doi links, new package maintainer, shorttitle info
+ 2016/09/06 v1.5
+ hypertexnames=false configuration for hyperref package
+ 2016/04/06 v1.4
+ Abstract baselineskip correction - paragraph ending inserted at the end of abstract
+ 2016/02/23 v1.3
+ Updated journal URLs and DOI output format
+ 2015/12/23 v1.2
+ Adapt sample.tex to EJMS/VTEX transition.
+ 2014/12/13 v1.1
+ Added class option PSTRICKS for problematic graphics
+ Added Sébastien Gouëzel to \ACKNO in sample.tex
+ Added load of mathtools,fixltx2e,microtype (suggested by Sébastien Gouëzel)
+ Replaced \begin/end{center} by \centering for figure in sample.tex (idem)
+ Removed \makeatletter/other from class file (idem)
+ Removed \ARXIVPASSWORD
+ Modified macro \EMAIL to allow special characters
+ 2012/12/12 v1.0
+ Added macro \BEMAIL for new lines in footnotes
+ Added macro \DEDICATORY (suggested by Richard Bass)
+ Added class option NOAMS for problematic papers
+ Added trailing / in journal URL appearing in page foot
+ Added support for hyperref pdftitle and other fields
+ Added several environments derived from the theorem environment
+ Added more comments on mgetmref.py and on environments in sample.tex
+ Added more comments on \TITLE and \AUTHORS in sample.tex
+ Added reference list (bibliography) to table of contents and PDF support
+ Added macro \HALID for Hyper Article en Ligne (French preprints)
+ Fixed incorrect key spacing in bibliography (reported by Martin Hairer)
+ Fixed hyperref options pdfborder and colorlinks
+ Modified paragraph on source file preparation in sample.tex (clarification)
+ Modified margins (now left and right margins are identical)
+ Modified headings (shorter paper reference, rational page number on foot)
+ Modified "AMS Subject Classification 2010" into "AMS MSC 2010"
+ Modified spacing after abstract for keywords, AMS-MSC, etc
+ 2012/01/09 v0.57721
+ Added \EMAIL macro and updated sample.tex accordingly
+ Added environments "fact" and "notations" and updated sample.tex
+ Modified headings, now DOI and ISSN are in first page headings
+ Modified "Key words" into "Keywords"
+ Modified ECP logo (length and width of horizontal rules)
+ 2011/12/24 v0.5772
+ Added dependency on lastpage package
+ Modified hyperref options (no link borders + other tweaks)
+ Modified sample.tex (page numbering and lastpage)
+ Modified \@PAGEEND using lastpage package
+ Removed \PAGESTART and \PAGEEND from sample.tex
+ 2011/12/12 v0.577
+ Added macro \ACKNO
+ Added script mgetmref.py (suggested by Ph. Carmona)
+ Modified \MR macro (thanks, Martin!) and removal of xstring dependency
+ Modified sample.tex with more comments
+ Removed \THANKS in favor of the standard \thanks
+ 2011/12/01 v0.57
+ Added ISSN and support for DOI and for arXiv
+ Added new class options "draft" and "final" (passed to the article class)
+ Added customized \thebibliography with reduced \itemsep (due to bera)
+ Added customized \itemize and \enumerate with reduced \itemsep (due to bera)
+ Modified \MR (prints now "MR-#" instead of "MR #")
+ Modified sample.tex (includes corrections after Anton's comments)
+ 2011/11/26 v0.5
+ Initial version
+
+EOF
diff --git a/macros/latex/contrib/ejpecp/ejpecp.dtx b/macros/latex/contrib/ejpecp/ejpecp.dtx
new file mode 100644
index 0000000000..ca4cb819ea
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/ejpecp.dtx
@@ -0,0 +1,545 @@
+% \iffalse meta-comment
+%
+% Copyright (c) 2019 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:
+%
+% http://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>
+ [2019/04/04 v1.7 class for EJP and ECP journals]
+%</class>
+%<class>\ClassInfo{ejpecp}{Copyright (c) 2019 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{785}
+%
+% \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}
+% \GetFileInfo{ejpecp.dtx}
+%
+% \DoNotIndex{\newcommand,\newenvironment}
+%
+% \title{The ejpecp class\thanks{\fileinfo\ \fileversion\ dated \filedate.}%
+% \thanks{Current maintainer of class file is
+% \href{http://www.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}
+ }
+\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}
+ }
+\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}
+ }
+\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}
+\RequirePackage{lastpage}
+\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}
+%\RequirePackage{charter} % Ph. Carmona
+\RequirePackage{bera} % beware that the logo is sensitive to default font change
+\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}{\pageref{LastPage}} % using lastpage package
+\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]{\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\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}}}
+%% make title long
+\renewcommand\title[1]{\gdef\@title{#1}}
+%% Macro handling the first page
+\newcommand{\FIRSTPAGE}{%
+ \setcounter{page}{\@PAGESTART}%
+ \title{\small
+ \ifx\@EJP\undefined\else
+ \@EJPLOGO
+ \bigskip
+ \centerline{\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),\
+ no. \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}%
+ \centerline{ISSN:\ \texttt{\href{http://\@URL/}{\@ISSN}} %
+ \ifx\@DOI\undefined\else
+ \ \printdoi
+ \fi}%
+ \bigskip
+ \bigskip
+ {\Large\bfseries\@TITLE\par}%
+ \fi
+ \ifx\@ECP\undefined
+ \else
+ \parbox[t]{9cm}{%
+ \@JOURNALA\ \textbf{\@VOLUME} (\@YEAR),
+ no. \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\
+ \ifx\@DOI\undefined
+ \else
+ \ \printdoi
+ \fi \\
+ ISSN:\ \texttt{\href{http://\@URL/}{\@ISSN}}%
+ }%
+ \hfill
+ \@ECPLOGO\\
+ \bigskip
+ \bigskip
+ {\Large\@TITLE\par}%
+ \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\textbf{AMS MSC 2010: }%
+ \ifx\@AMSSUBJSECONDARY\undefined
+ \noindent
+ \@AMSSUBJ.\par
+ \else
+ \noindent
+ Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.\par
+ \fi
+ \noindent
+ Submitted to \@JOURNAL\ on \@SUBMITTED,
+ final version accepted on \@ACCEPTED.\par
+ \ifx\@ARXIVID\undefined
+ \else
+ \noindent
+ Supersedes
+ \texttt{\href{http://arXiv.org/abs/\@ARXIVID}{arXiv:\@ARXIVID}}.%
+ \fi\par
+ \ifx\@HALID\undefined
+ \else
+ \noindent
+ Supersedes
+ \texttt{\href{http://hal.archives-ouvertes.fr/\@HALID}{HAL:\@HALID}}.%
+ \fi\par
+ }%footnotesize
+ \end{abstract}
+
+ \smallskip
+
+ }%END-FIRSTPAGE
+%% Macro setting the PDF title
+\newcommand{\PDFFIELDS}{%
+ \hypersetup{%
+ pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), no. \@PAPERNUM, \@doiprefix\@DOI}}%
+ \hypersetup{pdfkeywords={\@KEYWORDS}}%
+ \hypersetup{pdfproducer={\@JOURNAL\ Managing Editor http://\@URL/}}%
+ \hypersetup{pdfcreator={LaTeX with ejpecp.cls v1.4}}%
+ \hypersetup{pdfsubject={Probability Theory}}%
+ \hypersetup{pdfauthor={Please see \@doiprefix\@DOI}}%
+ }%END-PDFFIELDS
+
+%% Bibliography
+\def\@MRExtract#1 #2!{#1} % thanks, Martin!
+\newcommand{\MR}[1]{% we need to strip the "(...)"
+ \xdef\@MRSTRIP{\@MRExtract#1 !}%
+ \href{http://www.ams.org/mathscinet-getitem?mr=\@MRSTRIP}{MR-\@MRSTRIP}}
+\newcommand{\ARXIV}[1]{\href{http://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
+\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{http://\@URL/}{http://\@URL/}}
+\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
+ }%
+}%
+\InputIfFileExists{ejpecp.cfg}{}{}
+%% Macros
+\AtBeginDocument{\FIRSTPAGE\PDFFIELDS}
+\AtEndDocument{\vfill}
+\endinput
+%%
+%% End of file `ejpecp.cls'.
+%% Macros
+\AtBeginDocument{\FIRSTPAGE\PDFFIELDS}
+\AtEndDocument{\vfill}
+% \end{macrocode}
+% \Finale
+\endinput
diff --git a/macros/latex/contrib/ejpecp/ejpecp.ins b/macros/latex/contrib/ejpecp/ejpecp.ins
new file mode 100644
index 0000000000..fb44b8d82c
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/ejpecp.ins
@@ -0,0 +1,63 @@
+%%
+%% Copyright (c) 2019 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
+%%
+%% 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:
+%%
+%% http://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.
+%%
+
+\input docstrip.tex
+\keepsilent
+
+\usedir{tex/latex/ejpecp}
+
+\preamble
+
+This is a generated file.
+
+Copyright (c) 2019 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
+
+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:
+
+ http://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.
+
+\endpreamble
+
+\generate{\file{ejpecp.cls}{\from{ejpecp.dtx}{class}}}
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{* *}
+\Msg{* The ejpecp LaTeX2e class. *}
+\Msg{* *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* file into a directory searched by TeX: *}
+\Msg{* *}
+\Msg{* ejpecp.cls *}
+\Msg{* *}
+\Msg{* To produce the documentation run the file ejpecp.dtx *}
+\Msg{* through LaTeX. *}
+\Msg{* *}
+\Msg{* Happy TeXing! *}
+\Msg{* *}
+\Msg{*************************************************************}
+
+\endbatchfile
diff --git a/macros/latex/contrib/ejpecp/ejpecp.pdf b/macros/latex/contrib/ejpecp/ejpecp.pdf
new file mode 100644
index 0000000000..4241d28a1e
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/ejpecp.pdf
Binary files differ
diff --git a/macros/latex/contrib/ejpecp/mgetmref.py b/macros/latex/contrib/ejpecp/mgetmref.py
new file mode 100644
index 0000000000..8910556c82
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/mgetmref.py
@@ -0,0 +1,401 @@
+#! /usr/bin/env python
+##################################################################################
+#
+# getmref.py - gets the references links to MathSciNet throught the BatchMRef:
+# http://www.ams.org/batchref?qdata=xmldocument
+#
+# Copyright (C) 2004 Sigitas Tolusis, VTeX Ltd. and Jim Pitman, Dept. Statistics,
+# U.C. Berkeley
+# E-mail: sigitas@vtex.let
+# http://www.stat.berkeley.edu/users/pitman
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# Requires python ver. 2.2
+#
+# Usage:
+# getmref.py <bbl or tex file>
+#
+# Program (description):
+# - makes inputfile copy to <inputfilename>.getmref.bak;
+# - for each successful bibitem reference search adds line \MR{<mrid>},
+# where <mrid> is data from XML tag <mrid> without front symbols "MR";
+# - writes all adds to <inputfilename>;
+# - generates log file <inputfilename>.getmref.log;
+# - writes to stdout log info
+#
+# Changes:
+# 2004/04/26 - \bibitem line removed from the query
+#
+#
+###################################################################################
+SVNinfo = "$Id: getmref.py 46 2006-03-30 07:02:14Z sigitas $"
+
+import sys, urllib, re, os.path, time, string
+from xml.dom.minidom import parseString
+import xml.parsers.expat as par
+
+starttime = time.time()
+res = re.search(r'\S+:\s\S+\s+(.*?)\s.*\$', SVNinfo)
+if res:
+ ver = res.group(1)
+else:
+ ver = '0.0'
+print "# getmref, v. %s #" % ver
+
+#
+# bbl file parsing /begin
+#
+
+def escapetex(instr):
+ res = reduce(lambda a,b: string.replace(a, b[0], b[1]), (instr, ("\\&", '&amp;'), ("<", '&lt;'), (">", '&gt;')))
+ return res
+
+def query(instring, bibID, address = 'http://www.ams.org/batchmref'):
+ domas = None; res = None; err = 0
+ escapetexstring = escapetex(instring)
+ querystring = r'''<?xml version = "1.0" encoding = "UTF-8"?>
+<mref_batch>
+<mref_item outtype="tex">
+<inref>
+%s
+</inref>
+<myid>%s</myid>
+</mref_item>
+</mref_batch>''' % (escapetexstring, bibID)
+ try:
+ indom = parseString(querystring)
+ except par.ExpatError, err:
+ print >>sys.stderr,"[parse query]: %s" % querystring
+ print >>sys.stderr,sys.exc_info()
+ pass
+ else:
+ queryinfo = {}
+ queryinfo['qdata'] = querystring
+ queryval = urllib.urlencode(queryinfo)
+ try:
+ batchmref = urllib.urlopen(address, queryval)
+ res = batchmref.read()
+ domas = parseString(res)
+ except err:
+ print >>sys.stderr,"[parse res]: %s" % res
+ print >>sys.stderr,sys.exc_info()
+ pass
+ return domas, res, err
+
+def remcomm(line):
+ "Removes TeX comments"
+ bibre = re.compile(r'\s*(.*?)(?<!\\)%.*\n$')
+ fmtline = re.sub('^%.*\n$','', line)
+ if fmtline:
+ matchobj = bibre.search(fmtline)
+ if matchobj:
+ return matchobj.groups(1)[0]
+ else:
+ return fmtline
+ else:
+ return fmtline
+
+def formatbibitem(bibID, domas):
+ errstring = None; outtype = None; mrid = None; myid = bibID; outref = None; err = 0
+ try:
+ mref = domas.getElementsByTagName("mref_batch")[0]
+ mref_errors = mref.getElementsByTagName("batch_error")
+ if len(mref_errors):
+ errlist = [ mref_error.childNodes[0].nodeValue() for mref_error in mref_errors ]
+ errstring = ''.join(errlist)
+ err = -2
+ else:
+ mref_items = [item for item in mref.getElementsByTagName("mref_item")]
+ matches = mref_items[0].getElementsByTagName("matches")[0].childNodes[0]._get_nodeValue()
+ if matches == '1':
+ for item in mref_items:
+ outtype = dict(item.attributes.items())["outtype"]
+ mrid = item.getElementsByTagName("mrid")[0].childNodes[0]._get_nodeValue()
+ err = 0
+ if mrid[:2] == "MR":
+ mrid = mrid[2:]
+ myids = item.getElementsByTagName("myid")
+ if len(myids):
+ myid = myids[0].childNodes[0]._get_nodeValue()
+ else:
+ myid = bibID
+ outref = string.strip(item.getElementsByTagName("outref")[0].childNodes[0]._get_nodeValue())
+ else:
+ err = -1
+ except:
+ err = -3
+ print >>sys.stderr,"[formatbibitem]: %s" % bibID
+ print >>sys.stderr,sys.exc_info()
+ pass
+ return mrid, outref, err
+
+
+def handlebibitem(lines, bibID, biblabel=None):
+ res = 0; err = None; outref = None
+ outstring = string.strip(''.join(lines))
+ lines[:] = [re.sub(r'\\MR\{.*?\}', '', a) for a in lines]
+ biblines = [x for x in [remcomm(a) for a in lines] if x]
+ bibstring = re.sub(r'\n', ' ', ''.join(biblines))
+ match = re.search(r'\\bibitem\s*?(?:\[.*?\])?\s?\{(?:.*?)\}(.*)(\\endbibitem)?$',bibstring.strip())
+ if match:
+ querystring = match.group(1).strip()
+ else:
+ querystring = bibstring
+ domas = None
+ try:
+ domas, xmlres, err = query(querystring, bibID)
+ except:
+ res = -2
+ print >>sys.stderr,"[parse query]: %s" % querystring
+ print >>sys.stderr,sys.exc_info()
+ print 'Error',
+ else:
+ mrid, outref, err = formatbibitem(bibID, domas)
+ if not mrid:
+ print 'Not Found',
+ res = -1
+ else:
+ print mrid,
+ if mrid[:2] == "MR":
+ outstring = bibstring + '\\MR{%s}' % mrid[2:].rjust(7,'0')
+ else:
+ outstring = bibstring + '\\MR{%s}' % mrid.rjust(7,'0')
+ outstrip, nsub = re.subn(r'\\endbibitem',r'',outstring)
+ if nsub:
+ outstrip += '\n\\endbibitem'
+ outstring = re.sub(r' ', r' ', outstrip)
+ if not outref:
+ outref = "Not found!"
+ else:
+ outref = re.sub(r'(?<!\\)#',r'\#', outref)
+ if biblabel:
+ print >>datafile, '\\bibitem%s{%s}\n%s\n' % (biblabel, bibID, outref)
+ else:
+ print >>datafile, '\\bibitem{%s}\n%s\n' % (bibID, outref)
+ return '%s\n' % outstring, res
+
+def handleextra(extralines):
+ if len(extralines):
+ print >>outputfile, ''.join(extralines),
+
+def handlebbl(inputfile, out=sys.stdout, data=sys.stdout):
+ print "Job started:",
+ total = 0; successful = 0; errors = 0; state = 0; pseudobibID = 0; readbib = ''
+ bibl_begin = re.compile(r'\s*\\begin\s*\{thebibliography\}.*$')
+ bibre = re.compile(r'^\s*\\bibitem.*')
+ bibreF = re.compile(r'\s*\\bibitem\s*(\[.*?\])*?\s?\{(.*?)\}.*$',re.S)
+ comments = re.compile(r'\s*%.*$')
+ bibl_end = re.compile(r'\s*\\end\s*\{thebibliography\}.*$')
+ for line in inputfile:
+ if len(readbib):
+ readbib += line
+ matchobj = bibreF.search(readbib)
+ if matchobj:
+ line = "%s" % readbib
+ readbib = ''
+ else:
+ continue
+ if line:
+ if state == 0:
+ matchobj = bibl_begin.search(line)
+ if matchobj:
+ print >>data,matchobj.group(0)
+ print >>data,"\\csname bibmessage\\endcsname\n"
+ state = 1
+ print >>out, line,
+ continue
+ elif state == 1:
+ matchobj = bibre.search(line)
+ if matchobj:
+ matchobj = bibreF.search(line)
+ if matchobj:
+ biblabel, bibID = matchobj.groups()
+ if not len(bibID):
+ pseudobibID += 1
+ bibID = '%s' % pseudobibID
+ state = 2
+ lines = [line]
+ extralines = []
+ continue
+ else:
+ readbib = line
+ continue
+ else:
+ print >>out, line,
+ continue
+ elif state == 2:
+ matchobj = bibre.search(line)
+ if matchobj:
+ matchobj = bibreF.search(line)
+ if matchobj:
+ total += 1
+ print >>data,line
+ outstring, sres = handlebibitem(lines, bibID, biblabel)
+ if not sres:
+ successful += 1
+ else:
+ errors += 1
+ print >>out, outstring,
+ handleextra(extralines)
+ lines = [line]
+ extralines = []
+ biblabel, bibID = matchobj.groups()
+ if not len(bibID):
+ pseudobibID += 1
+ bibID = '%s' % pseudobibID
+ continue
+ else:
+ readbib = line
+ continue
+ else:
+ matchobj = bibl_end.search(line)
+ if matchobj:
+ state = 0
+ total += 1
+ outstring, sres = handlebibitem(lines, bibID, biblabel)
+ if not sres:
+ successful += 1
+ else:
+ errors += 1
+ print >>out, outstring,
+ handleextra(extralines)
+ print >>out, line,
+ print >>data,matchobj.group(0)
+ continue
+ else:
+ if line[:-1] == '':
+ state = 3
+ extralines = [line]
+ continue
+ matchobj = comments.search(line)
+ if matchobj:
+ state = 3
+ extralines = [line]
+ continue
+ lines.append(line)
+ continue
+ elif state == 3:
+ matchobj = bibre.search(line)
+ if matchobj:
+ matchobj = bibreF.search(line)
+ if matchobj:
+ state = 2
+ total += 1
+ outstring, sres = handlebibitem(lines, bibID, biblabel)
+ if not sres:
+ successful += 1
+ else:
+ errors += 1
+ print >>out, outstring,
+ handleextra(extralines)
+ lines = [line]
+ extralines = []
+ biblabel, bibID = matchobj.groups()
+ if not len(bibID):
+ pseudobibID += 1
+ bibID = '%s' % pseudobibID
+ continue
+ else:
+ readbib = line
+ continue
+ else:
+ matchobj = bibl_end.search(line)
+ if matchobj:
+ state = 0
+ total += 1
+ outstring, sres = handlebibitem(lines, bibID, biblabel)
+ if not sres:
+ successful += 1
+ else:
+ errors += 1
+ print >>out, outstring,
+ handleextra(extralines)
+ print >>out, line,
+ print >>data,matchobj.group(0)
+ continue
+ else:
+ if line[:-1] == '':
+ extralines.append(line)
+ continue
+ matchobj = comments.search(line)
+ if matchobj:
+ extralines.append(line)
+ continue
+ state = 2
+ lines.extend(extralines)
+ lines.append(line)
+ extralines = []
+ continue
+ else:
+ break
+ print "Job ended"
+ print "Total: %s, found: %s, errors: %s" % (total, successful, errors)
+ return (total, successful, errors)
+
+#
+# bbl file parsing /end
+#
+
+if len(sys.argv) < 2:
+ progname = os.path.basename(sys.argv[0])
+ print "Usage:\n %s <bbl or tex file>" % progname
+ sys.exit(1)
+infilename = sys.argv[1]
+filebase = os.path.splitext(infilename)[0]
+outfilename = "%s.getmref.tmp" % filebase
+datafilename = "%s.getmref.data" % filebase
+logfilename = "%s.getmref.log" % filebase
+
+inputfile = file(infilename, 'r')
+outputfile = file(outfilename, 'w')
+datafile = file(datafilename, 'w')
+logfile = file(logfilename, 'w')
+if os.path.isfile("%s.getmref.bak" % filebase):
+ os.unlink("%s.getmref.bak" % filebase)
+
+sys.stderr = file("%s.getmref.err" % filebase, 'w')
+total = 0; successful = 0; errors = 0
+print >>logfile, "File: %s" % infilename
+try:
+ total, successful, errors = handlebbl(inputfile, outputfile, datafile)
+except:
+ print >>sys.stderr,"[handlebbl]"
+ print >>sys.stderr,sys.exc_info()
+print >>logfile, " total: %s, found: %s, errors: %s, time: %ss" % (total, successful,
+ errors, int(round(time.time()-starttime)))
+
+inputfile.close()
+outputfile.close()
+datafile.close()
+logfile.close()
+sys.stderr.close()
+sys.stderr = sys.__stderr__
+if os.path.isfile("%s.getmref.err" % filebase):
+ if not os.stat("%s.getmref.err" % filebase)[6]:
+ os.unlink("%s.getmref.err" % filebase)
+if os.path.isfile("%s.getmref.bak" % filebase):
+ os.unlink("%s.getmref.bak" % filebase)
+os.rename(infilename, "%s.getmref.bak" % filebase)
+
+#mes modif
+#os.rename(outfilename, infilename)
+f=open(outfilename,"r")
+g=open(infilename,"w")
+x=f.read()
+g.write(re.sub(r"\r"," ",x))
+
+#fin de la modif
+
+print 'Job completed in %ss' % int(round(time.time()-starttime))
+
+
+
diff --git a/macros/latex/contrib/ejpecp/sample.pdf b/macros/latex/contrib/ejpecp/sample.pdf
new file mode 100644
index 0000000000..b832e404a3
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/sample.pdf
Binary files differ
diff --git a/macros/latex/contrib/ejpecp/sample.tex b/macros/latex/contrib/ejpecp/sample.tex
new file mode 100644
index 0000000000..8ff684b7da
--- /dev/null
+++ b/macros/latex/contrib/ejpecp/sample.tex
@@ -0,0 +1,524 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% This is the sample.tex file for the ejpecp document class. %%
+%% This file is for ejpecp version 1.0 %%
+%% Please be sure that you are using the lastest version: %%
+%% http://mirror.ctan.org/macros/latex/contrib/ejpecp/ %%
+%% %%
+%% The ejpecp class works *only* with a pdflatex engine. %%
+%% You need the ejpecp.cls in your current directory or in any %%
+%% directory scanned for cls files by your pdflatex engine. %%
+%% %%
+%% Manual inclusion of page layout commands is useless. %%
+%% %%
+%% Note that any complex file will produce delayed publication! %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Journal selection: ECP or EJP. %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\documentclass[ECP]{ejpecp} % replace ECP by EJP if needed.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Please uncomment and adapt to your encoding if needed: %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%\usepackage[T1]{fontenc}
+%\usepackage[utf8]{inputenc}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Please add here your own packages (be minimalistic please!): %%
+%% Please avoid using exotic packages and keep things simple. %%
+%% It is not necessary to include ams* and graphicx packages %%
+%% since they are automatically included by the ejpecp class. %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%\usepackage{enumerate} % uncomment to use this package
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Shorttitle (please edit and customize for running heading): %%
+%% Title (please edit and customize): %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\SHORTTITLE{Introduction to the \emph{ejpecp} Class}
+
+\TITLE{Introduction to the \emph{ejpecp} Class Version 1.7\thanks{Supported
+ by the Institute of Mathematical Statistics (IMS) and the Bernoulli
+ Society.}\
+ \thanks{Current maintainer of class file is
+ \href{http://www.vtex.lt}{VTeX, Lithuania}. Please send all queries to
+ \href{mailto:latex-support@vtex.lt}{\texttt{latex-support@vtex.lt}}.}} % \thanks is optional. Insert line breaks with \\
+
+%\DEDICATORY{Dedicated to the memory of ...} % Optional
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Authors (please edit and customize): %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\AUTHORS{%
+ Krzysztof~Burdzy\footnote{University of Washington, United States of America.
+ \EMAIL{burdzy@math.washington.edu}}
+ \and %% remove this line and below if single author
+ Djalil~Chafa\"{\i}\footnote{Universit\'e Paris-Dauphine,
+ France. \BEMAIL{djalil@chafai.net} \url{http://djalil.chafai.net}}}%AUTHORS
+%% Type \and between all consecutive authors (not only before the last author).
+%% Note: you may use \BEMAIL to force a line break before e-mail display.
+
+%% Here is a compact example with two authors with same affiliation
+%% \AUTHORS{%
+%% Michael~First\footnote{Some University. \EMAIL{mf,js@uni.edu}
+%% \and
+%% John~Second\footnotemark[2]}%AUTHORS
+%% Note: The \footnotemark is the footnote number that you wish to reuse. Here
+%% it is [2] (we took into account the footnote generated by \thanks in title).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Please edit and customize the following items: %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\KEYWORDS{EJP ; ECP ; typesetting ; LaTeX} % Separate items with ;
+
+\AMSSUBJ{NA} % Edit. Separate items with ;
+%\AMSSUBJSECONDARY{FIXME:} % Optional, separate items with ;
+
+\SUBMITTED{January 2, 2013} % Edit.
+\ACCEPTED{December 13, 2014} % Edit.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Please uncomment and edit if you have an arXiv ID: %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%\ARXIVID{NNNN.NNNNvn} % Edit.
+%\HALID{hal-NNN} % Edit.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% The following items will be set by the Managing Editor. %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\VOLUME{0}
+\YEAR{2016}
+\PAPERNUM{0}
+\DOI{10.1214/YY-TN}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Please edit and customize the abstract: %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\ABSTRACT{The $\LaTeXe$ class \emph{ejpecp} is designed for typesetting of
+ articles to be published in the research periodicals \emph{Electronic
+ Journal of Probability} (EJP) and \emph{Electronic Communications in
+ Probability} (ECP).}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Please add your own macros and environments below: %%
+%% %%
+%% If possible, avoid using \def and use instead \newcommand %%
+%% If possible, avoid defining your own environments, and use %%
+%% instead the environments already defined by ejpecp: %%
+%% assumption, assumptions, claim, condition, conjecture, %%
+%% corollary, definition, definitions, example, exercise, fact, %%
+%% facts, heuristics, hypothesis, hypotheses, lemma, notation, %%
+%% notations, problem, proposition, remark, theorem %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\newcommand{\ABS}[1]{\left(#1\right)} % example of author macro
+\newcommand{\veps}{\varepsilon} % another example of author macro
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% No macro definitions below this line please! %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\begin{document}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% No need for \maketitle. %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Please replace what follows by the body of your article %%
+%% (up to the bibliography): %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+The $\LaTeXe$ class \emph{ejpecp} is designed for typesetting of articles for
+the Electronic Journal of Probability (EJP) and Electronic Communications in
+Probability (ECP). Please check on \url{http://www.ctan.org/pkg/ejpecp} that
+your are using the latest version of \emph{ejpecp}. The \emph{ejpecp} class
+comes with a commented sample file called \texttt{sample.tex}. You are
+probably reading the pdf version of this sample file, compiled with a pdflatex
+engine\footnote{The \emph{ejpecp} class was also successfully tested with the lualatex next generation engine.}.
+
+\textbf{An easy way to prepare an article for publication in EJP/ECP is to
+ edit the source file \texttt{sample.tex} for this document. Replace the main
+ body of the file with the main body of your article. Supply all metadata
+ (title, authors, abstract, keywords, etc) that are requested in the latex
+ file.}
+
+The \emph{ejpecp} class works only with the pdflatex engine, generating pdf
+files. You need a copy of the \texttt{ejpecp.cls} file in your
+directory\footnote{Or in any location scanned for \texttt{cls} files by your
+ pdflatex engine.} in order to compile documents based on the \emph{ejpecp}
+class, such as \texttt{sample.tex}. To configure the \emph{ejpecp} class for
+ECP, use
+\begin{verbatim}
+\documentclass[ECP]{ejpecp}
+\end{verbatim}
+while for EJP, use
+\begin{verbatim}
+\documentclass[EJP]{ejpecp}
+\end{verbatim}
+The \emph{ejpecp} document class loads automatically the following packages:
+\begin{center}
+ \ttfamily
+ amsmath, amsthm, amsfonts, amssymb, bera, dsfont, \\
+ hyperref, geometry, graphicx, lastpage, latexsym, \\
+ mathtools, microtype, afterpackage.
+\end{center}
+It is thus not necessary to add \verb+\usepackage+ load commands for
+these packages to your latex file. However, you may want to load additional
+packages, such as the \emph{enumerate} package by using a \verb+\usepackage+
+command. The precise location of these extra load commands is clearly
+mentioned in the \texttt{sample.tex} file. The \emph{ejpecp} class provides
+various environments, and also important commands such as \verb+\AUTHORS+,
+\verb+\TITLE+, etc.
+
+\section{Standard predefined environments}
+
+One of the main features of the \emph{ejpecp} class is its predefined
+environments.
+
+ \begin{theorem}[My theorem]\label{th:1}
+ This is the body of the theorem. This theorem has a name between
+ parentheses, and this is implemented by adding an optional parameter
+ between square brackets to the theorem environment, namely
+\begin{verbatim}
+ \begin{theorem}[My theorem] \label{th:1}
+ This is the body of ...
+ \end{theorem}
+\end{verbatim}
+ \end{theorem}
+
+ \begin{proof}[Proof of Theorem \ref{th:1}]
+ This is the body of the proof of the theorem above. This proof has a name,
+ and this is implemented by adding an optional parameter between square
+ brackets to the proof environment, namely
+ \begin{verbatim}
+ \begin{proof}[Proof of Theorem \ref{th:1}]
+ This is the body of the proof of ...
+ \end{proof}
+ \end{verbatim}
+ We recommend that you give names to most of your theorem-like environments.
+ You cannot imagine how this helps your readers! The proof ends at the
+ square box.
+ \end{proof}
+
+ Note that a square box $\square$ is automatically added at the end of the
+ proof by the environment ``proof''. The \emph{ejpecp} class provides several
+ default environments:
+\begin{center}
+ \small\ttfamily assumption, assumptions, claim, condition, conjecture,
+ corollary, definition, definitions, example, exercise, fact, facts,
+ heuristics, hypothesis, hypotheses, lemma, notation, notations, problem,
+ proposition, question, remark, theorem
+\end{center}
+
+Let us give some more examples of environments in action.
+
+ \begin{lemma}[My lemma]
+ Body of the Lemma.
+ \end{lemma}
+
+ \begin{proof}
+ This is the body of a proof environment without name, obtained using
+\begin{verbatim}
+\begin{proof}
+ This is the body of ...
+\end{proof}
+\end{verbatim}
+ Note again the automatic inclusion of a square box at the right place $\to$
+ \end{proof}
+
+Here are some more examples of predefined environments:
+
+ \begin{lemma}
+ Body of the Lemma. This lemma does not have a name.
+ \end{lemma}
+
+ \begin{proposition}[My proposition]
+ Body of the proposition.
+ \end{proposition}
+
+ \begin{corollary}[My corollary]
+ Body of the corollary.
+ \end{corollary}
+
+ \begin{definition}[My definition]
+ Body of the definition.
+ \end{definition}
+
+ \begin{conjecture}[My conjecture]
+ Body of the conjecture.
+ \end{conjecture}
+
+ \begin{remark}[My remark]
+ Body of the remark. Note that the style of the body differs from the one
+ used for theorems.
+ \end{remark}
+
+ \begin{example}[My example]
+ Body of the example.
+ \end{example}
+
+ \begin{problem}[My problem]
+ Body of the problem.
+ \end{problem}
+
+ These environments cover most author's needs. It is possible -- but not
+ recommended! -- to define additional environments based on the theorem
+ environment.
+
+\section{Fonts}
+
+The default font used by the \emph{ejpecp} class is \emph{bera}\footnote{This
+ is the name of the \LaTeX\ package for \emph{bitstream} fonts.}. This font
+looks good but does not come with ``small capitals'' shape, making the command
+\verb+\textsc{...}+ ineffective. The \emph{ejpecp} class uses the \emph{double
+ stroke font} as a replacement for \verb+\mathbb+. For instance
+\verb+\mathbb{B}+ will produce $\mathbb{B}$ instead of $\realmathbb{B}$.
+However, the original \verb+\mathbb+ command is still available via the
+command \verb+\realmathbb{...}+ (please avoid using it if possible). Note that
+\verb+\mathbb{1}+ produces $\mathbb{1}$, which is particularly attractive for
+indicators of sets.
+
+\section{Page numbering}
+
+EJP and ECP are purely electronic journals. Their volumes will never be
+printed. Each paper published in EJP and ECP has pages numbered starting from
+$1$. This numbering scheme, used starting from 2012, was already used for the
+first volumes of EJP.
+
+\section{Section headings and equation numbering}\label{se:mysection}
+
+The default size for section titles in \LaTeX\ is a bit large. As you might have
+noticed, the \emph{ejpecp} class provides smaller section titles. Here are some
+sub-sections:
+
+\subsection{A sub-section}
+
+\subsection{Another sub-section}
+
+\subsubsection{A sub-sub-section}
+
+The following numbered displayed equation is the first in section \ref{se:mysection}:
+
+\begin{equation}\label{eq:myequation}
+ \int_{-\infty}^{+\infty}\!e^{-t-e^{-t}}\,dt = 1
+ \quad\text{and}\quad
+ \int_{-\infty}^{+\infty}\!te^{-t-e^{-t}}\,dt = \gamma.
+\end{equation}
+It is produced with the following source code:
+\begin{verbatim}
+\begin{equation}\label{eq:myequation}
+ \int_{-\infty}^{+\infty}\!e^{-t-e^{-t}}\,dt = 1
+ \quad\text{and}\quad
+ \int_{-\infty}^{+\infty}\!te^{-t-e^{-t}}\,dt = \gamma.
+\end{equation}
+\end{verbatim}
+You may refer to it by using \verb+\eqref{eq:myequation}+ which
+produces \eqref{eq:myequation}. Here is another numbered displayed equation
+\begin{equation}
+ \int_{-\infty}^{+\infty}\!(t-\gamma)^2e^{-t-e^{-t}}\,dt
+ = \zeta(2)
+ = \frac{\pi^2}{6},
+\end{equation}
+and yet another one, just for fun!
+\begin{equation}
+ \int_{-\infty}^{+\infty}\!(t-\gamma)^3e^{-t-e^{-t}}\,dt
+ = 2\zeta(3).
+\end{equation}
+
+\section{How to include graphics}
+
+You may include graphics in PDF or EPS or JPEG or PNG format as follows
+
+\begin{verbatim}
+\begin{figure}[htbp]
+ \centering % gives better spacing than \begin{center}...\end{center}
+ \includegraphics[scale=1.0]{filename}
+ \caption{This is my figure.}
+ \label{fi:myfigure}
+\end{figure}
+\end{verbatim}
+
+Note that in a figure environment, the \verb+\label+ should always appear
+after a \verb+\caption+ in order to produce a valid reference to the figure.
+You may play with the options \verb+[htbp]+ (see the \LaTeXe\ documentation
+for their meaning) and with the options of the \verb+\includegraphics+ command
+(see the documentation of the graphicx package).
+
+\section{About your source file for EJP and ECP}
+
+\textbf{Papers using the \LaTeX\ class \emph{ejpecp} are quickly published},
+usually within a month. Some authors prefer \TeX\ instead of \LaTeX. Every
+author has his own preferences and habits. We believe that \TeX\ is a good
+program. However EJP and ECP need a standardized layout for all papers, and
+this is easier done with \LaTeX\ than with \TeX. For that reason, you are
+strongly encouraged to use the \LaTeX\ class \emph{ejpecp} for your papers.
+
+The aim of EJP and ECP is to publish excellent mathematical articles. All
+mathematicians believe that the mathematical results are the most important
+elements of an article. Many of them believe that the aesthetic aspects of the
+proof are also important. Some of them believe that even the writing style is
+important. Few of them believe that the \LaTeX\ code needs to be elegant. A
+good \LaTeX\ code is easier to maintain, to convert, and to read. It helps
+your co-authors, and helps to speed up the publication process. The current
+major version of \LaTeX\ is called \LaTeXe. Without being mandatory, it is
+useful to learn how to write genuine \LaTeXe\ code, rather than a mixture of
+\TeX\ and old \LaTeX\ (prior to \LaTeXe). Here are some suggestions:
+
+\begin{itemize}
+\item never use \verb+\def+ for defining macros, use instead
+ \verb+\newcommand+
+\item never use \verb+$$+ for displayed equations, use instead the brackets
+ \verb+\[ \]+
+\item use \verb+\textbf{}+, \verb+\textit{}+, and \verb+\emph{}+ instead of
+ \verb+{\bf }+, \verb+{\it }+, and \verb+{\em }+
+\item never use one letter names for macros or for environments
+\item never use strange names for macros and environments
+\item use the environment proof provided by amsmath (as in \emph{ejpecp})
+\item use \verb+\newenvironment+ to define new environments
+\item use \verb+\binom{n}{k}+ instead of \verb+n \choose k+
+\item use \verb+\frac{a}{b}+ instead of a \verb+\over b+
+\item never use an exotic package if you do not really need it
+\item indent your code and avoid too long lines
+\item use prefixed labels such as \verb+eq:+ for equations and \verb+th:+ for
+ theorems
+\item to produce graphics, avoid using \emph{psfrag} or \emph{XFig} and use
+ instead \emph{\href{http://en.wikipedia.org/wiki/Ipe_(program)}{Ipe}}
+\item learn how to interpret the error messages generated during compilation
+\item read the wiki-books on \href{http://en.wikibooks.org/wiki/LaTeX}{LaTeX}
+ and \href{http://en.wikibooks.org/wiki/LaTeX/Mathematics}{LaTeX Mathematics}
+\end{itemize}
+
+\section{How to help us}
+
+We (KB and DC) do not consider ourselves \LaTeXe\ experts.
+We will be happy to receive comments and suggestions for improvement
+(especially constructive ones).
+
+\section{How to include bibliography}
+
+The bibliography should be included in your document (not a separate file),
+inside the standard environment \verb+thebibliography+. If you use bibtex,
+this can be accomplished by including the \texttt{bbl} file inside your
+document (after preliminary compilation with latex and bibtex). The
+bibliography should be sorted alphabetically according to authors names, and
+the records should be labeled by numbers. See the example below.
+
+Links to the Math Reviews should be included as in the sample below. The
+simplest way to get automatically these Math Reviews links is to get all your
+bibtex entries from MathSciNet, and to use
+\verb+\bibliographystyle{amsplain}+. This produces automatically the necessary
+\verb+\MR+ commands in your \verb+\bibitem+s, allowing \emph{ejpecp} to
+automatically produce the links as in the sample below. Alternatively, if you
+are not using MathSciNet and bibtex, you may simply produce the Math Reviews
+links by using
+\url{http://www.e-publications.org/ims/support/mref/}
+
+At your option, you may also manually provide the arXiv identifier for
+preprints or unpublished papers. It is your author responsibility to check if
+the preprint is actually published and referenced in the Mathematical Reviews,
+and in that case, you should provide the MR number instead of the arXiv
+identifier. It is acceptable to leave arXiv links in the bibliography
+(alongside MR links) even if the article has been published.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% Use the two commands below for producing your bibliography %%
+%% with bibtex, then comment again the commands and include the %%
+%% content of the .bbl file in this file below the commands. %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%\bibliographystyle{amsplain}
+%\bibliography{yourbibfilename}
+
+% add below the content of your .bbl file produced by bibtex.
+
+\begin{thebibliography}{99}
+
+\bibitem{doob} Doob, J. L.: Heuristic approach to the Kolmogorov-Smirnov
+ theorems. \emph{Ann. Math. Statistics} \textbf{20}, (1949), 393--403.
+ \MR{0030732}
+
+\bibitem{gnekol} Gnedenko, B. V. and Kolmogorov, A. N.: Limit distributions for
+ sums of independent random variables. Translated and annotated by K. L.
+ Chung. With an Appendix by J. L. Doob. \emph{Addison-Wesley}, Cambridge,
+ 1954. ix+264 pp. \MR{0062975}
+
+\bibitem{ito} It\^o, K.: Multiple Wiener integral. \emph{J. Math. Soc. Japan}
+ \textbf{3}, (1951), 157--169. \MR{0044064}
+
+\bibitem{levy} L\'evy, P.: Sur certains processus stochastiques homog\`enes.
+ \emph{Compositio Math.} \textbf{7}, (1939), 283--339. \MR{0000919}
+
+\bibitem{grisha} Perelman, G.: The entropy formula for the Ricci flow and its
+ geometric applications, \ARXIV{math.DG/0211159}
+
+\bibitem{smisch} Smirnov, S. and Schramm, O.: On the scaling limits of planar
+ percolation, \ARXIV{1101.5820}
+
+\end{thebibliography}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% 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.}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% You have reached the end of your document. %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\end{document}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% %%
+%% You may put below funny messages to the Managing Editor: %%
+%% %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%% EOF