From 407d0a5adb654f3b1aad8739125e09abeb1eacce Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 30 Nov 2011 00:21:00 +0000 Subject: ejpecp 0.57 (29nov11) git-svn-id: svn://tug.org/texlive/trunk@24697 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx | 87 +++++++++++++++--------- 1 file changed, 56 insertions(+), 31 deletions(-) (limited to 'Master/texmf-dist/source/latex/ejpecp') diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx index 3fe396960b7..fb60a2de718 100644 --- a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx +++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx @@ -1,9 +1,7 @@ % \iffalse meta-comment % % Copyright (C), 2011 by Krzysztof BURDZY and Djalil CHAFAI for EJP and ECP -% This class uses logos for EJP and for ECP which were designed by -% the former Managing Editors of EJP and ECP. -% ------------------------------------------------------------------ +% ------------------------------------------------------------------------- % % This file may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.2 @@ -25,13 +23,14 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesClass{ejpecp} %<*class> - [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.} % %<*driver> -\documentclass{ltxdoc} +\documentclass[10pt]{ltxdoc} \usepackage{hyperref} +\usepackage[a4paper,margin=2.5cm]{geometry} \EnableCrossrefs \CodelineIndex \RecordChanges @@ -41,7 +40,7 @@ % % \fi % -% \CheckSum{561} +% \CheckSum{616} % % \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 @@ -60,18 +59,19 @@ % Right brace \} Tilde \~} % % \changes{v0.5}{2011/11/26}{Initial version.} +% \changes{v0.57}{2011/12/01}{Minor improvements, see the README file.} % \GetFileInfo{ejpecp.dtx} % % \DoNotIndex{\newcommand,\newenvironment} % % \title{The ejpecp class\thanks{\fileinfo\ v. \fileversion\ dated \filedate.}} -% \author{K. Burdzy\and \href{http://djalil.chafai.net/}{D. \textsc{Chafa\"\i}}} +% \author{K. Burdzy\and \href{http://djalil.chafai.net/}{D. Chafa\"\i}} % % \maketitle % % \section{Introduction} % -% The \textsc{ejpecp} \LaTeXe\ class is designed for the typesetting of +% 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). % @@ -101,15 +101,14 @@ % \section{Implementation} % % \begin{macrocode} -%% 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}{% @@ -117,7 +116,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 @@ -125,12 +125,20 @@ \newcommand{\@NODS}{} \makeatother } +\DeclareOption{draft}{% + \PassOptionsToClass{draft}{article} +} +\DeclareOption{final}{% + \PassOptionsToClass{final}{article} +} \DeclareOption*{% \PackageWarning{ejpecp}{Unknown option ‘\CurrentOption’}% } %\ExecuteOptions{EJP} \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} @@ -138,7 +146,7 @@ \RequirePackage{geometry} \geometry{a4paper,portrait,left=4.5cm,right=2.5cm,top=3.5cm,bottom=3.5cm} %\RequirePackage{charter} % Ph. Carmona -\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} @@ -172,12 +180,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 % @@ -234,7 +243,7 @@ %% Macro handling the first page \makeatletter \newcommand{\FIRSTPAGE}{% - \thispagestyle{empty} + \setcounter{page}{\@PAGESTART}% \title{\small% \ifx\@EJP\undefined\else% \@EJPLOGO @@ -252,7 +261,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{}% @@ -260,23 +269,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 @@ -284,7 +301,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 @@ -350,20 +367,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} -- cgit v1.2.3