summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ejpecp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-30 00:21:00 +0000
committerKarl Berry <karl@freefriends.org>2011-11-30 00:21:00 +0000
commit407d0a5adb654f3b1aad8739125e09abeb1eacce (patch)
tree49eb7852053362bde2f1123e9c66c5f4dfbcd3b1 /Master/texmf-dist/tex/latex/ejpecp
parent8fabf46c739e707ddfdf5c67a9e0aa52df38e1a0 (diff)
ejpecp 0.57 (29nov11)
git-svn-id: svn://tug.org/texlive/trunk@24697 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ejpecp')
-rw-r--r--Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls73
1 files changed, 49 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
index 485444117b0..49b5a077ae9 100644
--- a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
+++ b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
@@ -22,17 +22,16 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ejpecp}
- [2011/11/26 v0.5 .dtx ejpecp file]
+ [2011/12/01 v0.57 .dtx ejpecp file]
\ClassInfo{ejpecp}{Copyright (c) BURDZY and CHAFAI for EJP-ECP, 2011.}
-%% We use the standard article class
-\LoadClass[a4paper,10pt,twoside]{article}
%% We declare and handle our class options
\DeclareOption{EJP}{%
\makeatletter
\newcommand{\@JOURNAL}{EJP}
\newcommand{\@JOURNALL}{Electronic Journal of Probability}
\newcommand{\@EJP}{}
- \newcommand{\@URL}{\href{http://ejp.ejpecp.org/}{ejp.ejpecp.org}}
+ \newcommand{\@ISSN}{1083-6489}
+ \newcommand{\@URL}{ejp.ejpecp.org}
\makeatother
}
\DeclareOption{ECP}{%
@@ -40,7 +39,8 @@
\newcommand{\@JOURNAL}{ECP}
\newcommand{\@JOURNALL}{Electronic Communications in Probability}
\newcommand{\@ECP}{}
- \newcommand{\@URL}{\href{http://ecp.ejpecp.org/}{ecp.ejpecp.org}}
+ \newcommand{\@ISSN}{1083-589X}
+ \newcommand{\@URL}{ecp.ejpecp.org}
\makeatother
}
\DeclareOption{NODS}{% asks to avoid renaming \mathbb into \mathds
@@ -48,18 +48,26 @@
\newcommand{\@NODS}{}
\makeatother
}
+\DeclareOption{draft}{%
+ \PassOptionsToClass{draft}{article}
+}
+\DeclareOption{final}{%
+ \PassOptionsToClass{final}{article}
+}
\DeclareOption*{%
\PackageWarning{ejpecp}{Unknown option ‘\CurrentOption’}%
}
\ProcessOptions\relax
-%%%% Packages and their options
+%% We use the standard article class
+\LoadClass[a4paper,10pt,twoside]{article}
+%% Packages and their options
\RequirePackage{xstring}
\RequirePackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG}
\RequirePackage{amsmath,amsfonts,amssymb,amsthm,latexsym,dsfont}
\RequirePackage{geometry}
\geometry{a4paper,portrait,left=4.5cm,right=2.5cm,top=3.5cm,bottom=3.5cm}
-\RequirePackage{bera}
+\RequirePackage{bera} % beware that the logo is sensitive to default font change
\RequirePackage[pdftex]{hyperref}
\hypersetup{colorlinks=false,urlcolor=black,citecolor=black}
\hypersetup{pdfcreator=PDFLaTeX with ejpecp class}
@@ -93,12 +101,13 @@
\newcommand{\PAGEEND}[1]{\renewcommand{\@PAGEEND}{#1}}
\newcommand{\SUBMITTED}[1]{\renewcommand{\@SUBMITTED}{#1}}
\newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}}
-\newcommand{\DOI}[1]{\gdef\@DOI{http://dx.doi.org/#1}}
+\newcommand{\DOI}[1]{\gdef\@DOI{10.1214/\@JOURNAL.#1}}
\newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}}
\makeatother
%% Logos
\makeatletter
\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 26.5 em\space %
@@ -155,7 +164,7 @@
%% Macro handling the first page
\makeatletter
\newcommand{\FIRSTPAGE}{%
- \thispagestyle{empty}
+ \setcounter{page}{\@PAGESTART}%
\title{\small%
\ifx\@EJP\undefined\else%
\@EJPLOGO
@@ -173,7 +182,7 @@
\@ECPLOGO\\
\bigskip
\bigskip
- {\Large\scshape\@TITLE\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi}
+ {\Large\@TITLE\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi}
\fi%ECP
} % end title
\date{}%
@@ -181,23 +190,31 @@
\begin{abstract}%
\noindent%
\@ABSTRACT\\[1.5em]%
+ {\footnotesize\newlength{\@DH}\setlength{\@DH}{-.2em}%
\textbf{Key words: }%
- \@KEYWORDS.\\[.2em]%
+ \@KEYWORDS.\\[\@DH]%
\textbf{AMS 2010 Subject Classification: }%
\ifx\@AMSSUBJSECONDARY\undefined
\@AMSSUBJ.
\else
Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.
- \fi\\[.2em]%
+ \fi\\
+ \@JOURNALL\ (\@JOURNAL),\ ISSN:\ \texttt{\href{http://\@URL/}{\@ISSN}}.\\[\@DH]%
Submitted to \@JOURNAL\ on \,\@SUBMITTED, %
- final version accepted \,\@ACCEPTED.\\[.2em]%
+ final version accepted \,\@ACCEPTED.\\[\@DH]%
+ \ifx\@DOI\undefined\else%
+ Digital Object Identifier (DOI): %
+ \texttt{\href{http://dx.doi.org/\@DOI}{\@DOI}}\\[\@DH]%
+ \fi%
\ifx\@ARXIVID\undefined\else%
Supersedes %
- \texttt{\href{http://arXiv.org/abs/\@ARXIVID}{arXiv:\@ARXIVID}}%
- .\\[.2em]
- \fi%
-
+ \texttt{\href{http://arXiv.org/abs/\@ARXIVID}{arXiv:\@ARXIVID}}.%
+ \fi%
+ }%footnotesize
\end{abstract}
+
+ \smallskip
+
}%END-FIRSTPAGE
\makeatother
%% Bibliography
@@ -205,7 +222,7 @@
\newcommand{\MR}[1]{% we need to strip the "(...)"
\def\@MRBLOB{#1(} % add fake "(" to force presence of "("
\StrBefore{\@MRBLOB}{(}[\@MRSTRIP] % do the strip with xstring package!
- \href{http://www.ams.org/mathscinet-getitem?mr=\@MRSTRIP}{MR\@MRSTRIP}}
+ \href{http://www.ams.org/mathscinet-getitem?mr=\@MRSTRIP}{MR-\@MRSTRIP}}
\makeatother
\newcommand{\ARXIV}[1]{\href{http://arXiv.org/abs/#1}{arXiv:#1}}
\makeatletter
@@ -271,20 +288,28 @@
\newtheorem{problem}[theorem]{Problem}%
\newtheorem{remark}[theorem]{Remark}%
%%%% Commands to be executed before \begin{document}
+%% Numbering
+\numberwithin{equation}{section}
+%% 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\mathbb=\mathds\else\fi
\makeatother
%% Headings
\makeatletter
-\def\@PAPERBLOB{%
- \@JOURNAL\normalfont\ Vol. \@VOLUME\, (\@YEAR),\ %
- Paper no. \@PAPERNUM, pages \,\@PAGESTART--\@PAGEEND%
-}
\renewcommand{\@evenfoot}
{\small\normalfont%
- \ifx\@DOI\undefined\@PAPERBLOB\else\href{\@DOI}{\@PAPERBLOB}\fi.%
- \ \hfil\@URL}
+ \newcommand{\@ARTICLEBLOB}{\@JOURNAL\normalfont\ Vol. \@VOLUME\, (\@YEAR),\ %
+ Paper no. \@PAPERNUM, pages \,\@PAGESTART--\@PAGEEND.}
+ \href{http://dx.doi.org/\@DOI}{\@ARTICLEBLOB}\ %
+ \hfil\href{http://\@URL}{\@URL}}
\renewcommand{\@oddfoot}{\@evenfoot}
\renewcommand{\@evenhead}
{\small\upshape {\thepage}\ \hfil\@SHORTTITLE\hfil}