summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-30 23:02:49 +0000
committerKarl Berry <karl@freefriends.org>2015-03-30 23:02:49 +0000
commit6975cb301d2e0be4f88a85bed1b3cebd3367e9f9 (patch)
tree4a8a1ba5f9821720b00c988c3b22c6b23aeef380 /Master/texmf-dist
parent3befc460d3ea88fd2fba7e231a63bf44b365320f (diff)
ejpecp (30mar15)
git-svn-id: svn://tug.org/texlive/trunk@36678 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/README29
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdfbin0 -> 129734 bytes
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/sample.pdfbin160349 -> 155608 bytes
-rw-r--r--Master/texmf-dist/doc/latex/ejpecp/sample.tex34
-rw-r--r--Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx63
-rw-r--r--Master/texmf-dist/source/latex/ejpecp/ejpecp.ins4
-rw-r--r--Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls60
7 files changed, 82 insertions, 108 deletions
diff --git a/Master/texmf-dist/doc/latex/ejpecp/README b/Master/texmf-dist/doc/latex/ejpecp/README
index 396ab7e9fae..5c356181760 100644
--- a/Master/texmf-dist/doc/latex/ejpecp/README
+++ b/Master/texmf-dist/doc/latex/ejpecp/README
@@ -1,15 +1,16 @@
-DESCRIPTION
+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://ejp.ejpecp.org/ and http://ecp.ejepecp.org/
COPYRIGHT
- Copyright (c) 2011, 2012, by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
+ Copyright (c) 2011/2/3/4 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 mgetmref.py script is Copyright (c) 2004 S. TOLUSIS and J. PITMAN
+ 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
@@ -24,6 +25,10 @@ FILE LIST
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
@@ -35,18 +40,24 @@ INSTRUCTIONS FOR EJP-ECP AUTHORS
EJP: http://ejp.ejpecp.org/ ECP: http://ecp.ejpecp.org/
DEPENDENCIES
- ejpecp is a LaTeX2e document class which works only with a pdflatex engine.
+ 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.
+ bera, dsfont, hyperref, geometry, graphicx, lastpage, latexsym, mathtools,
+ fixltx2e, microtype. It was also successfully tested with the next
+ generation engine lualatex.
LATEST VERSION
The latest version is on the CTAN at http://www.ctan.org/pkg/ejpecp
-HOW TO REBUILD
- pdflatex ejpecp.ins # produces ejpecp.cls
- pdflatex ejpecp.dtx # produces ejpecp.pdf
-
CHANGELOG
+ 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)
diff --git a/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf b/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf
new file mode 100644
index 00000000000..75d3ea8af1b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/ejpecp/sample.pdf b/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
index a187f26e764..f3f961f18db 100644
--- a/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
+++ b/Master/texmf-dist/doc/latex/ejpecp/sample.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/ejpecp/sample.tex b/Master/texmf-dist/doc/latex/ejpecp/sample.tex
index 282b1033d74..3230af53622 100644
--- a/Master/texmf-dist/doc/latex/ejpecp/sample.tex
+++ b/Master/texmf-dist/doc/latex/ejpecp/sample.tex
@@ -51,7 +51,7 @@
\SHORTTITLE{Introduction to the \emph{ejpecp} Class}
-\TITLE{Introduction to the \emph{ejpecp} Class Version 1.0\thanks{Supported
+\TITLE{Introduction to the \emph{ejpecp} Class Version 1.1\thanks{Supported
by the Institute of Mathematical Statistics (IMS) and the Bernoulli
Society.}} % \thanks is optional. Insert line breaks with \\
@@ -64,11 +64,11 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\AUTHORS{%
- Krzysztof~Burdzy\footnote{University of Washington, USA.
+ 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-Est Marne-la-Vall\'ee,
- France. \BEMAIL{djalil@chafai.net} \url{http://djalil.chafai.net/}}}%AUTHORS
+ 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.
@@ -91,8 +91,8 @@
\AMSSUBJ{NA} % Edit. Separate items with ;
%\AMSSUBJSECONDARY{FIXME:} % Optional, separate items with ;
-\SUBMITTED{January 1, 2012} % Edit.
-\ACCEPTED{December 31, 2012} % Edit.
+\SUBMITTED{January 2, 2013} % Edit.
+\ACCEPTED{December 13, 2014} % Edit.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
@@ -101,7 +101,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\ARXIVID{NNNN.NNNNvn} % Edit.
-%\ARXIVPASSWORD{xxxxx} % Edit.
%\HALID{hal-NNN} % Edit.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -170,7 +169,7 @@ 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.
+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
@@ -195,9 +194,10 @@ The \emph{ejpecp} document class loads automatically the following packages:
\begin{center}
\ttfamily
amsmath, amsthm, amsfonts, amssymb, bera, dsfont, \\
- hyperref, geometry, graphicx, lastpage, latexsym.
+ hyperref, geometry, graphicx, lastpage, latexsym, \\
+ mathtools, fixltx2e, microtype.
\end{center}
-It is therefore not necessary to add \verb+\usepackage+ load commands for
+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
@@ -315,7 +315,7 @@ indicators of sets.
\section{Page numbering}
-EJP and ECP are purely electronic journals and their volumes will never be
+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.
@@ -366,11 +366,10 @@ You may include graphics in PDF or EPS or JPEG or PNG format as follows
\begin{verbatim}
\begin{figure}[htbp]
- \begin{center}
- \includegraphics[scale=1.0]{filename}
- \caption{This is my figure.}
- \label{fi:myfigure}
- \end{center}
+ \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}
@@ -473,7 +472,6 @@ links by using the \verb+mgetmref.py+ Python script provided by the
\emph{Python} installed on your system to run this script (you can download
\emph{Python} here \url{http://www.python.org/}).
-
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,
@@ -526,7 +524,7 @@ identifier. It is acceptable to leave arXiv links in the bibliography
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ACKNO{We thank Martin Hairer who provided a nice \texttt{MR} macro.}
+\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.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
index 68b41d0e3d6..a1b9ded8a23 100644
--- a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
+++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C), 2011, 2012 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
+% Copyright (C), 2011, 2012, 2014 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
% ---------------------------------------------------------------------------
%
% This file may be distributed and/or modified under the
@@ -23,9 +23,9 @@
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{ejpecp}
%<*class>
- [2012/12/12 v1.0 .dtx ejpecp file]
+ [2014/12/13 v1.1 .dtx ejpecp file]
%</class>
-%<class>\ClassInfo{ejpecp}{Copyright (c), 2011, 2012, BURDZY and CHAFAI for EJP-ECP.}
+%<class>\ClassInfo{ejpecp}{Copyright (c), 2011, 2012, 2014 BURDZY and CHAFAI for EJP-ECP.}
%
%<*driver>
\documentclass[10pt]{ltxdoc}
@@ -41,7 +41,7 @@
%</driver>
% \fi
%
-% \CheckSum{736}
+% \CheckSum{721}
%
% \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
@@ -66,6 +66,7 @@
% \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.}
% \GetFileInfo{ejpecp.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
@@ -109,34 +110,30 @@
% \begin{macrocode}
%% We declare and handle our class options
\DeclareOption{EJP}{%
- \makeatletter
\newcommand{\@EJP}{}
\newcommand{\@JOURNAL}{EJP}
\newcommand{\@JOURNALA}{Electron. J. Probab.}
\newcommand{\@JOURNALL}{Electronic Journal of Probability}
\newcommand{\@ISSN}{1083-6489}
\newcommand{\@URL}{ejp.ejpecp.org}
- \makeatother
}
\DeclareOption{ECP}{%
- \makeatletter
\newcommand{\@ECP}{}
\newcommand{\@JOURNAL}{ECP}
\newcommand{\@JOURNALA}{Electron. Commun. Probab.}
\newcommand{\@JOURNALL}{Electronic Communications in Probability}
\newcommand{\@ISSN}{1083-589X}
\newcommand{\@URL}{ecp.ejpecp.org}
- \makeatother
}
\DeclareOption{NOAMS}{% prevents the load of AMS packages
- \makeatletter
\newcommand{\@NOAMS}{}
- \makeatother
}
\DeclareOption{NODS}{% asks to avoid renaming \mathbb into \mathds
- \makeatletter
\newcommand{\@NODS}{}
- \makeatother
+}
+\DeclareOption{PSTRICKS}{% pstricks and pspicture.
+ % File must be compiled with "latex --shell-escape", then use dvipdf
+ \newcommand{\@PSTRICKS}{}
}
\DeclareOption{draft}{%
\PassOptionsToClass{draft}{article}
@@ -152,14 +149,21 @@
%% We use the standard article class
\LoadClass[a4paper,10pt,twoside]{article}
%% Packages and their options
+\ifx\@PSTRICKS\undefined%
\RequirePackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG}
+\else%
+\RequirePackage{graphicx}
+\RequirePackage[pdf]{pstricks}
+\RequirePackage{auto-pst-pdf}
+\fi
+\RequirePackage{mathtools}
+\RequirePackage{fixltx2e}
+\RequirePackage{microtype}
\RequirePackage{lastpage}
\RequirePackage{latexsym}
-\makeatletter
\ifx\@NODS\undefined\RequirePackage{dsfont}\fi
\ifx\@NOAMS\undefined\RequirePackage{amsmath,amsfonts,amssymb,amsthm}\fi
-\makeatother
\RequirePackage{geometry}
\geometry{a4paper,portrait,left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm}
%\RequirePackage{charter} % Ph. Carmona
@@ -167,7 +171,11 @@
%%\RequirePackage[expert]{lucbmath} % Y&Y's Lucida cf. doc/fonts/bera/bera.txt
%%\def\DeclareLucidaFontShape#1#2#3#4#5#6{%
%%\DeclareFontShape{#1}{#2}{#3}{#4}{<->s*[0.90]#5}{#6}}
+\ifx\@PSTRICKS\undefined%
\RequirePackage[pdftex,pagebackref=false]{hyperref}
+\else%
+\RequirePackage[pagebackref=false]{hyperref}
+\fi%
%\hypersetup{colorlinks=false} % useless with our zero borders
\hypersetup{pdfborder=0 0 0}
\hypersetup{pdfstartview={FitH}}
@@ -177,7 +185,6 @@
%\pdfobjcompresslevel=3
%%%% Macros et Environments
%% General macros
-\makeatletter%
\newcommand{\@TITLE}{FIXME!}
\newcommand{\@SHORTTITLE}{FIXME!}
\newcommand{\@KEYWORDS}{FIXME!}
@@ -208,13 +215,10 @@
\newcommand{\DOI}[1]{\gdef\@DOI{10.1214/\@JOURNAL.#1}}
\newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}}
\newcommand{\HALID}[1]{\gdef\@HALID{#1}}
-\newcommand{\ARXIVPASSWORD}[1]{}
\newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1}
-\newcommand{\EMAIL}[1]{E-mail:~\texttt{\href{mailto:#1}{#1}}}
+\def\EMAIL#1{E-mail:~\texttt{\href{mailto:#1}{\nolinkurl{#1}}}}
\newcommand{\BEMAIL}[1]{\newline\hspace*{1.8em}\EMAIL{#1}} % useful in ftnotes
-\makeatother
%% Logos
-\makeatletter
\newcommand{\@EJPLOGO}{% designed by KB.
% This version is for bera 10pt (depends on the font via "em" and "ex")
\centerline {%
@@ -269,9 +273,7 @@
\textbf{ in PROBABILITY}\\
\rule[.08in]{1.3in}{1.6pt}}}
}%ECPLOGO
-\makeatother
%% Macro handling the first page
-\makeatletter
\newcommand{\FIRSTPAGE}{%
\setcounter{page}{\@PAGESTART}%
\title{\small%
@@ -344,9 +346,7 @@
\smallskip
}%END-FIRSTPAGE
-\makeatother
%% Macro setting the PDF title
-\makeatletter
\newcommand{\PDFFIELDS}{%
\hypersetup{%
pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), no. \@PAPERNUM, DOI: \@DOI}}%
@@ -356,17 +356,13 @@
\hypersetup{pdfsubject={Probability Theory}}%
\hypersetup{pdfauthor={Please see http://dx.doi.org/\@DOI}}%
}%END-PDFFIELDS
-\makeatother
%% Bibliography
-\makeatletter
\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}}
-\makeatother
\newcommand{\ARXIV}[1]{\href{http://arXiv.org/abs/#1}{arXiv:#1}}
-\makeatletter
\renewenvironment{thebibliography}[1]{%
\section*{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
@@ -388,9 +384,7 @@
\def\@noitemerr{%
\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
-\makeatother
%% Theorem styles
-\makeatletter
\ifx\@NOAMS\undefined%
\newtheoremstyle{ejpecpbodyit}% name % cf. thmtest.tex of AMSLaTeX
{3pt}% Space above
@@ -415,7 +409,6 @@
% \newline = linebreak
{}% Thm head spec (can be left empty, meaning `normal')
\fi
-\makeatother
%%
\ifx\@NOAMS\undefined\theoremstyle{ejpecpbodyit}\fi%
\newtheorem{theorem}{Theorem}[section]%
@@ -444,27 +437,20 @@
\newtheorem{remark}[theorem]{Remark}%
%%%% Commands to be executed before \begin{document}
%% Numbering
-\makeatletter
\ifx\@NOAMS\undefined\numberwithin{equation}{section}\fi
-\makeatother
%% Itemize and enumerate for bera
-\makeatletter
\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}
-\makeatother
%% Replace \mathbb by \mathds except if we require the contrary
-\makeatletter
\ifx\@NODS\undefined%
\let\realmathbb=\mathbb
\let\mathbb=\mathds
\else%
\fi
-\makeatother
%% Headings
-\makeatletter
\newcommand{\@HBLOB}{%
\href{http://dx.doi.org/\@DOI}%
{\@JOURNAL\ \textbf{\@VOLUME}\, (\@YEAR),\ paper \@PAPERNUM.}}%
@@ -475,9 +461,7 @@
\renewcommand{\@oddfoot}{\@evenfoot}
\renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
\renewcommand{\@oddhead}{\@evenhead}
-\makeatother
%% smaller sections titles
-\makeatletter
\renewcommand{\section}{\@startsection%
{section}% % name
{1}% % level
@@ -493,7 +477,6 @@
{0.25\baselineskip}% % afterskip
{\normalfont\bfseries}% % style
}
-\makeatother
%% Macros
%%%% Commands to be executed just after \begin{document}
\AtBeginDocument{\FIRSTPAGE\PDFFIELDS}
diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins b/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
index 56e5fea2f7e..73aab1d4079 100644
--- a/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
+++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins
@@ -1,5 +1,5 @@
%%
-%% Copyright (c), 2011 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
+%% Copyright (c), 2011, 2012, 2014 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
@@ -21,7 +21,7 @@
This is a generated file.
-Copyright (c), 2011 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
+Copyright (c), 2011, 2012, 2014 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
diff --git a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
index a4156da0816..ba17d534058 100644
--- a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
+++ b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (c), 2011 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP
+%% Copyright (c), 2011, 2012, 2014 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
@@ -22,38 +22,34 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ejpecp}
- [2012/12/12 v1.0 .dtx ejpecp file]
-\ClassInfo{ejpecp}{Copyright (c), 2011, 2012, BURDZY and CHAFAI for EJP-ECP.}
+ [2014/12/13 v1.1 .dtx ejpecp file]
+\ClassInfo{ejpecp}{Copyright (c), 2011, 2012, 2014 BURDZY and CHAFAI for EJP-ECP.}
%% We declare and handle our class options
\DeclareOption{EJP}{%
- \makeatletter
\newcommand{\@EJP}{}
\newcommand{\@JOURNAL}{EJP}
\newcommand{\@JOURNALA}{Electron. J. Probab.}
\newcommand{\@JOURNALL}{Electronic Journal of Probability}
\newcommand{\@ISSN}{1083-6489}
\newcommand{\@URL}{ejp.ejpecp.org}
- \makeatother
}
\DeclareOption{ECP}{%
- \makeatletter
\newcommand{\@ECP}{}
\newcommand{\@JOURNAL}{ECP}
\newcommand{\@JOURNALA}{Electron. Commun. Probab.}
\newcommand{\@JOURNALL}{Electronic Communications in Probability}
\newcommand{\@ISSN}{1083-589X}
\newcommand{\@URL}{ecp.ejpecp.org}
- \makeatother
}
\DeclareOption{NOAMS}{% prevents the load of AMS packages
- \makeatletter
\newcommand{\@NOAMS}{}
- \makeatother
}
\DeclareOption{NODS}{% asks to avoid renaming \mathbb into \mathds
- \makeatletter
\newcommand{\@NODS}{}
- \makeatother
+}
+\DeclareOption{PSTRICKS}{% pstricks and pspicture.
+ % File must be compiled with "latex --shell-escape", then use dvipdf
+ \newcommand{\@PSTRICKS}{}
}
\DeclareOption{draft}{%
\PassOptionsToClass{draft}{article}
@@ -68,27 +64,37 @@
%% We use the standard article class
\LoadClass[a4paper,10pt,twoside]{article}
%% Packages and their options
+\ifx\@PSTRICKS\undefined%
\RequirePackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG}
+\else%
+\RequirePackage{graphicx}
+\RequirePackage[pdf]{pstricks}
+\RequirePackage{auto-pst-pdf}
+\fi
+\RequirePackage{mathtools}
+\RequirePackage{fixltx2e}
+\RequirePackage{microtype}
\RequirePackage{lastpage}
\RequirePackage{latexsym}
-\makeatletter
\ifx\@NODS\undefined\RequirePackage{dsfont}\fi
\ifx\@NOAMS\undefined\RequirePackage{amsmath,amsfonts,amssymb,amsthm}\fi
-\makeatother
\RequirePackage{geometry}
\geometry{a4paper,portrait,left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm}
\RequirePackage{bera} % beware that the logo is sensitive to default font change
%%\RequirePackage[expert]{lucbmath} % Y&Y's Lucida cf. doc/fonts/bera/bera.txt
%%\def\DeclareLucidaFontShape#1#2#3#4#5#6{%
%%\DeclareFontShape{#1}{#2}{#3}{#4}{<->s*[0.90]#5}{#6}}
+\ifx\@PSTRICKS\undefined%
\RequirePackage[pdftex,pagebackref=false]{hyperref}
+\else%
+\RequirePackage[pagebackref=false]{hyperref}
+\fi%
\hypersetup{pdfborder=0 0 0}
\hypersetup{pdfstartview={FitH}}
%% PDF level and compression % it is actually better to do it externally
%%%% Macros et Environments
%% General macros
-\makeatletter%
\newcommand{\@TITLE}{FIXME!}
\newcommand{\@SHORTTITLE}{FIXME!}
\newcommand{\@KEYWORDS}{FIXME!}
@@ -119,13 +125,10 @@
\newcommand{\DOI}[1]{\gdef\@DOI{10.1214/\@JOURNAL.#1}}
\newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}}
\newcommand{\HALID}[1]{\gdef\@HALID{#1}}
-\newcommand{\ARXIVPASSWORD}[1]{}
\newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1}
-\newcommand{\EMAIL}[1]{E-mail:~\texttt{\href{mailto:#1}{#1}}}
+\def\EMAIL#1{E-mail:~\texttt{\href{mailto:#1}{\nolinkurl{#1}}}}
\newcommand{\BEMAIL}[1]{\newline\hspace*{1.8em}\EMAIL{#1}} % useful in ftnotes
-\makeatother
%% Logos
-\makeatletter
\newcommand{\@EJPLOGO}{% designed by KB.
% This version is for bera 10pt (depends on the font via "em" and "ex")
\centerline {%
@@ -180,9 +183,7 @@
\textbf{ in PROBABILITY}\\
\rule[.08in]{1.3in}{1.6pt}}}
}%ECPLOGO
-\makeatother
%% Macro handling the first page
-\makeatletter
\newcommand{\FIRSTPAGE}{%
\setcounter{page}{\@PAGESTART}%
\title{\small%
@@ -255,9 +256,7 @@
\smallskip
}%END-FIRSTPAGE
-\makeatother
%% Macro setting the PDF title
-\makeatletter
\newcommand{\PDFFIELDS}{%
\hypersetup{%
pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), no. \@PAPERNUM, DOI: \@DOI}}%
@@ -267,17 +266,13 @@
\hypersetup{pdfsubject={Probability Theory}}%
\hypersetup{pdfauthor={Please see http://dx.doi.org/\@DOI}}%
}%END-PDFFIELDS
-\makeatother
%% Bibliography
-\makeatletter
\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}}
-\makeatother
\newcommand{\ARXIV}[1]{\href{http://arXiv.org/abs/#1}{arXiv:#1}}
-\makeatletter
\renewenvironment{thebibliography}[1]{%
\section*{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
@@ -299,9 +294,7 @@
\def\@noitemerr{%
\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
-\makeatother
%% Theorem styles
-\makeatletter
\ifx\@NOAMS\undefined%
\newtheoremstyle{ejpecpbodyit}% name % cf. thmtest.tex of AMSLaTeX
{3pt}% Space above
@@ -326,7 +319,6 @@
% \newline = linebreak
{}% Thm head spec (can be left empty, meaning `normal')
\fi
-\makeatother
%%
\ifx\@NOAMS\undefined\theoremstyle{ejpecpbodyit}\fi%
\newtheorem{theorem}{Theorem}[section]%
@@ -355,27 +347,20 @@
\newtheorem{remark}[theorem]{Remark}%
%%%% Commands to be executed before \begin{document}
%% Numbering
-\makeatletter
\ifx\@NOAMS\undefined\numberwithin{equation}{section}\fi
-\makeatother
%% Itemize and enumerate for bera
-\makeatletter
\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}
-\makeatother
%% Replace \mathbb by \mathds except if we require the contrary
-\makeatletter
\ifx\@NODS\undefined%
\let\realmathbb=\mathbb
\let\mathbb=\mathds
\else%
\fi
-\makeatother
%% Headings
-\makeatletter
\newcommand{\@HBLOB}{%
\href{http://dx.doi.org/\@DOI}%
{\@JOURNAL\ \textbf{\@VOLUME}\, (\@YEAR),\ paper \@PAPERNUM.}}%
@@ -386,9 +371,7 @@
\renewcommand{\@oddfoot}{\@evenfoot}
\renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
\renewcommand{\@oddhead}{\@evenhead}
-\makeatother
%% smaller sections titles
-\makeatletter
\renewcommand{\section}{\@startsection%
{section}% % name
{1}% % level
@@ -404,7 +387,6 @@
{0.25\baselineskip}% % afterskip
{\normalfont\bfseries}% % style
}
-\makeatother
%% Macros
%%%% Commands to be executed just after \begin{document}
\AtBeginDocument{\FIRSTPAGE\PDFFIELDS}