summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ejpecp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-14 00:11:20 +0000
committerKarl Berry <karl@freefriends.org>2012-12-14 00:11:20 +0000
commit31e75a7188c101e1e179a6848f4cd4cc1236c9b4 (patch)
tree66b5b29070c9f2a690959e2a0dfe9a00fc987646 /Master/texmf-dist/tex/latex/ejpecp
parent2071d59f0fa2c729b7b112423d8659ef92ebc0d7 (diff)
ejpecp (14dec12)
git-svn-id: svn://tug.org/texlive/trunk@28525 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ejpecp')
-rw-r--r--Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls202
1 files changed, 127 insertions, 75 deletions
diff --git a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
index 7dcd4dea25a..a4156da0816 100644
--- a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
+++ b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ejpecp}
- [2012/01/09 v0.57721 .dtx ejpecp file]
+ [2012/12/12 v1.0 .dtx ejpecp file]
\ClassInfo{ejpecp}{Copyright (c), 2011, 2012, BURDZY and CHAFAI for EJP-ECP.}
%% We declare and handle our class options
\DeclareOption{EJP}{%
@@ -45,6 +45,11 @@
\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}{}
@@ -66,15 +71,21 @@
\RequirePackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG}
\RequirePackage{lastpage}
-\RequirePackage{amsmath,amsfonts,amssymb,amsthm,latexsym,dsfont}
+\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=4.5cm,right=2.5cm,top=3.5cm,bottom=3.5cm}
+\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}}
\RequirePackage[pdftex,pagebackref=false]{hyperref}
-\hypersetup{colorlinks=false}
-\hypersetup{pdfborder=0}
-\hypersetup{pdfcreator=pdflatex engine with ejpecp class}
+\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%
@@ -92,6 +103,7 @@
\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}}
\newcommand{\KEYWORDS}[1]{\renewcommand{\@KEYWORDS}{#1}}
\newcommand{\AMSSUBJ}[1]{\renewcommand{\@AMSSUBJ}{#1}}
@@ -106,8 +118,11 @@
\newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}}
\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}}}
+\newcommand{\BEMAIL}[1]{\newline\hspace*{1.8em}\EMAIL{#1}} % useful in ftnotes
\makeatother
%% Logos
\makeatletter
@@ -182,44 +197,58 @@
\fi} %
\bigskip
\bigskip
- {\Large\bfseries\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi
+ {\Large\bfseries\@TITLE}%
\fi%EJP
\ifx\@ECP\undefined\else%
\parbox[t]{9cm}{%
\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR), %
- no. \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\ %
+ no. \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\%
\ifx\@DOI\undefined\else%
\ DOI: \texttt{\href{http://dx.doi.org/\@DOI}{\@DOI}}%
\fi \\ %
- ISSN:\ \texttt{\href{http://\@URL/}{\@ISSN}}%
+ ISSN:\ \texttt{\href{http://\@URL/}{\@ISSN}}
}%
\hfill
\@ECPLOGO\\
\bigskip
\bigskip
- {\Large\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi
+ {\Large\@TITLE}%
\fi%ECP
} % end title
- \date{}%
+ \date{%
+ \ifx\@DEDICATORY\undefined%
+ \else%
+ \noindent%
+ \emph{\small\sffamily\@DEDICATORY}
+ \fi%
+}%
\maketitle\thispagestyle{empty}%
\begin{abstract}%
\noindent%
\@ABSTRACT\\[1em]%
- {\footnotesize\newlength{\@DH}\setlength{\@DH}{-.2em}%
- \textbf{Keywords: }%
- \@KEYWORDS.\\[\@DH]%
- \textbf{AMS 2010 Subject Classification: }%
- \ifx\@AMSSUBJSECONDARY\undefined
- \@AMSSUBJ.
- \else
- Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.
- \fi\\[0.5em]
- Submitted to \@JOURNAL\ on \@SUBMITTED, %
- final version accepted on \@ACCEPTED.\\[\@DH]%
- \ifx\@ARXIVID\undefined\else%
- Supersedes %
+ {\footnotesize%
+ \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%
+ \fi\par%
+ \ifx\@HALID\undefined\else%
+ \noindent%
+ Supersedes %
+ \texttt{\href{http://hal.archives-ouvertes.fr/\@HALID}{HAL:\@HALID}}.%
+ \fi\par%
}%footnotesize
\end{abstract}
@@ -227,6 +256,19 @@
}%END-FIRSTPAGE
\makeatother
+%% Macro setting the PDF title
+\makeatletter
+\newcommand{\PDFFIELDS}{%
+ \hypersetup{%
+ pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), no. \@PAPERNUM, DOI: \@DOI}}%
+ \hypersetup{pdfkeywords={\@KEYWORDS}}%
+ \hypersetup{pdfproducer={\@JOURNAL\ Managing Editor http://\@URL/}}%
+ \hypersetup{pdfcreator={LaTeX with ejpecp.cls v1.0}}%
+ \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!
@@ -239,9 +281,11 @@
\renewenvironment{thebibliography}[1]{%
\section*{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
- \list{\@biblabel{\@arabic\c@enumiv}}{%
+ \phantomsection%
+ \addcontentsline{toc}{section}{\refname}%
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
\small%
- \setlength{\labelwidth}{0em}%
\setlength{\labelsep}{0.4em}%
\setlength{\leftmargin}{\labelwidth}%
\addtolength{\leftmargin}{\labelsep}%
@@ -250,58 +294,70 @@
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
+ \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')
+\makeatletter
+\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
+\makeatother
%%
-\theoremstyle{ejpecpbodyit}
+\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{proposition}[theorem]{Proposition}%
-\newtheorem{lemma}[theorem]{Lemma}%
+\newtheorem{definitions}[theorem]{Definitions}%
\newtheorem{definition}[theorem]{Definition}%
+\newtheorem{facts}[theorem]{Facts}%
\newtheorem{fact}[theorem]{Fact}%
-\newtheorem{notation}[theorem]{Notation}%
-\newtheorem{hypothesis}[theorem]{Hypothesis}%
\newtheorem{heuristics}[theorem]{Heuristics}%
-\newtheorem{conjecture}[theorem]{Conjecture}%
-\theoremstyle{ejpecpbodyrm}%
+\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}%
%%%% Commands to be executed before \begin{document}
%% Numbering
-\numberwithin{equation}{section}
+\makeatletter
+\ifx\@NOAMS\undefined\numberwithin{equation}{section}\fi
+\makeatother
%% Itemize and enumerate for bera
\makeatletter
\newcommand{\@reduceitemsep}{\addtolength{\itemsep}{-0.5\baselineskip}}
@@ -320,18 +376,16 @@
\makeatother
%% Headings
\makeatletter
-\renewcommand{\@evenfoot}
-{\small\normalfont%
- \newcommand{\@ARTICLEBLOB}{\@JOURNALA\normalfont\ %
- \textbf{\@VOLUME}\, (\@YEAR),\ %
- no. \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}
- \href{http://dx.doi.org/\@DOI}{\@ARTICLEBLOB}\ %
- \hfil\href{http://\@URL}{\@URL}}
+\newcommand{\@HBLOB}{%
+ \href{http://dx.doi.org/\@DOI}%
+ {\@JOURNAL\ \textbf{\@VOLUME}\, (\@YEAR),\ paper \@PAPERNUM.}}%
+\renewcommand{\@evenfoot}%
+{\normalfont\footnotesize\@HBLOB\hfil%
+ \small\raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil%
+ \footnotesize\href{http://\@URL/}{\@URL}}
\renewcommand{\@oddfoot}{\@evenfoot}
-\renewcommand{\@evenhead}
-{\small\upshape {\thepage}\ \hfil\@SHORTTITLE\hfil}
-\renewcommand{\@oddhead}
-{\small\hfil\@SHORTTITLE\hfil \upshape\ \thepage}
+\renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
+\renewcommand{\@oddhead}{\@evenhead}
\makeatother
%% smaller sections titles
\makeatletter
@@ -353,9 +407,7 @@
\makeatother
%% Macros
%%%% Commands to be executed just after \begin{document}
-\AtBeginDocument{%
- \FIRSTPAGE%
-}
+\AtBeginDocument{\FIRSTPAGE\PDFFIELDS}
%%%% Commands to be executed just before \end{document}
\AtEndDocument{\vfill}
\endinput