diff options
author | Karl Berry <karl@freefriends.org> | 2011-11-27 23:13:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-11-27 23:13:23 +0000 |
commit | 8255a373ae03cbe4e01a189f867937ab90cde662 (patch) | |
tree | 4ec6aec0ce66b67361aa776b2a77f8278589593a /Master/texmf-dist/source/latex/ejpecp | |
parent | a1cf1b5f054668d9a5c3c3372e2b13ef48c94674 (diff) |
new latex package ejpecp (26nov11)
git-svn-id: svn://tug.org/texlive/trunk@24673 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ejpecp')
-rw-r--r-- | Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx | 400 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/ejpecp/ejpecp.ins | 57 |
2 files changed, 457 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx new file mode 100644 index 00000000000..3fe396960b7 --- /dev/null +++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx @@ -0,0 +1,400 @@ +% \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 +% 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> + [2011/11/26 v0.5 .dtx ejpecp file] +%</class> +%<class>\ClassInfo{ejpecp}{Copyright (c) BURDZY and CHAFAI for EJP-ECP, 2011.} +% +%<*driver> +\documentclass{ltxdoc} +\usepackage{hyperref} +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\begin{document} + \DocInput{ejpecp.dtx} +\end{document} +%</driver> +% \fi +% +% \CheckSum{561} +% +% \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.} +% \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}}} +% +% \maketitle +% +% \section{Introduction} +% +% The \textsc{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 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}} + \makeatother +} +\DeclareOption{ECP}{% + \makeatletter + \newcommand{\@JOURNAL}{ECP} + \newcommand{\@JOURNALL}{Electronic Communications in Probability} + \newcommand{\@ECP}{} + \newcommand{\@URL}{\href{http://ecp.ejpecp.org/}{ecp.ejpecp.org}} + \makeatother +} +\DeclareOption{NODS}{% asks to avoid renaming \mathbb into \mathds + \makeatletter + \newcommand{\@NODS}{} + \makeatother +} +\DeclareOption*{% + \PackageWarning{ejpecp}{Unknown option ‘\CurrentOption’}% +} +%\ExecuteOptions{EJP} +\ProcessOptions\relax +%%%% 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{charter} % Ph. Carmona +\RequirePackage{bera} +\RequirePackage[pdftex]{hyperref} +\hypersetup{colorlinks=false,urlcolor=black,citecolor=black} +\hypersetup{pdfcreator=PDFLaTeX with ejpecp class} +%%%% Macros et Environments +%% General macros +\makeatletter% +\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}{0} +\newcommand{\@PAGEEND}{0} +\newcommand{\@SUBMITTED}{FIXME!} +\newcommand{\@ACCEPTED}{FIXME!} +\newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}} +\newcommand{\THANKS}[1]{\gdef\@THANKS{#1}} +\newcommand{\SHORTTITLE}[1]{\renewcommand{\@SHORTTITLE}{#1}} +\newcommand{\AUTHORS}[1]{\author{#1}} +\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{http://dx.doi.org/#1}} +\newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}} +\makeatother +%% Logos +\makeatletter +\newcommand{\@EJPLOGO}{% designed by KB. + \centerline {% + \hbox {% + %\vrule height -0.4 pt depth 0.8 pt width 26.5 em\space % + \vrule height -0.4 pt depth 0.8 pt width 27.7 em\space % + %\kern -26.5 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 % %BEST! + \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.6in}{\noindent\rule{1.6in}{1.6pt}\\ + \textbf{ ELECTRONIC}\\ + \textbf{ COMMUNICATIONS}\\ + \textbf{ in PROBABILITY}\\ + \rule[.08in]{1.6in}{2pt}}} +}%ECPLOGO +\makeatother +%% Macro handling the first page +\makeatletter +\newcommand{\FIRSTPAGE}{% + \thispagestyle{empty} + \title{\small% + \ifx\@EJP\undefined\else% + \@EJPLOGO + \bigskip + \centerline{Vol.\,\@VOLUME\, (\@YEAR),\ % + Paper no. \@PAPERNUM, pages \,\@PAGESTART--\@PAGEEND.} + \bigskip + \bigskip + {\Large\bfseries\@TITLE}\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi + \fi%EJP + \ifx\@ECP\undefined\else% + \emph{Elect. Comm. in Probab.} + \textbf{\@VOLUME} (\@YEAR), \@PAGESTART--\@PAGEEND + \hfill + \@ECPLOGO\\ + \bigskip + \bigskip + {\Large\scshape\@TITLE\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi} + \fi%ECP + } % end title + \date{}% + \maketitle\thispagestyle{empty}% + \begin{abstract}% + \noindent% + \@ABSTRACT\\[1.5em]% + \textbf{Key words: }% + \@KEYWORDS.\\[.2em]% + \textbf{AMS 2010 Subject Classification: }% + \ifx\@AMSSUBJSECONDARY\undefined + \@AMSSUBJ. + \else + Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY. + \fi\\[.2em]% + Submitted to \@JOURNAL\ on \,\@SUBMITTED, % + final version accepted \,\@ACCEPTED.\\[.2em]% + \ifx\@ARXIVID\undefined\else% + Supersedes % + \texttt{\href{http://arXiv.org/abs/\@ARXIVID}{arXiv:\@ARXIVID}}% + .\\[.2em] + \fi% + + \end{abstract} +}%END-FIRSTPAGE +\makeatother +%% Bibliography +\makeatletter +\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}} +\makeatother +\newcommand{\ARXIV}[1]{\href{http://arXiv.org/abs/#1}{arXiv:#1}} +\makeatletter +\renewenvironment{thebibliography}[1]{% + \section*{\refname + \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}% + \list{\@biblabel{\@arabic\c@enumiv}}{% + \small% + \setlength{\labelwidth}{0em}% + \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} +\makeatother +%% Theorem styles +\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') +%% +\theoremstyle{ejpecpbodyit} +\newtheorem{theorem}{Theorem}[section]% +\newtheorem{corollary}[theorem]{Corollary}% +\newtheorem{proposition}[theorem]{Proposition}% +\newtheorem{lemma}[theorem]{Lemma}% +\newtheorem{definition}[theorem]{Definition}% +\newtheorem{hypothesis}[theorem]{Hypothesis}% +\newtheorem{heuristics}[theorem]{Heuristics}% +\newtheorem{conjecture}[theorem]{Conjecture}% +\theoremstyle{ejpecpbodyrm}% +\newtheorem{example}[theorem]{Example}% +\newtheorem{exercise}[theorem]{Exercise}% +\newtheorem{problem}[theorem]{Problem}% +\newtheorem{remark}[theorem]{Remark}% +%%%% Commands to be executed before \begin{document} +%% 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} +\renewcommand{\@oddfoot}{\@evenfoot} +\renewcommand{\@evenhead} +{\small\upshape {\thepage}\ \hfil\@SHORTTITLE\hfil} +\renewcommand{\@oddhead} +{\small\hfil\@SHORTTITLE\hfil \upshape\ \thepage} +\makeatother +%% smaller sections titles +\makeatletter +\renewcommand{\section}{\@startsection% + {section}% % name + {1}% % level + {0em}% % indent + {\baselineskip}% % beforeskip + {0.5\baselineskip}% % afterskip + {\normalfont\large\bfseries}}% % style +\renewcommand{\subsection}{\@startsection% + {subsection}% % name + {2}% % level + {0em}% % indent + {\baselineskip}% % beforeskip + {0.25\baselineskip}% % afterskip + {\normalfont\bfseries}% % style +} +\makeatother +%% Macros +%%%% Commands to be executed just after \begin{document} +\AtBeginDocument{% + \FIRSTPAGE% +} +%%%% Commands to be executed just before \end{document} +\AtEndDocument{\vfill} +% \end{macrocode} +% \Finale +\endinput diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins b/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins new file mode 100644 index 00000000000..56e5fea2f7e --- /dev/null +++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.ins @@ -0,0 +1,57 @@ +%% +%% Copyright (c), 2011 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), 2011 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 |